public class ApplicationFeatures
extends Object
Constructor and Description |
---|
ApplicationFeatures() |
Modifier and Type | Method and Description |
---|---|
void |
addProviderChangeListener(ProviderChangeListener l)
Standard callback for the "features" collectionModel.
|
void |
fireAnalyticsEvents(String eventName,
String event)
This api provides support for generating custom events for Analytics
declaratively using a DC method.
|
Object |
getApplicationIconBadgeNumber() |
oracle.adfmf.framework.ApplicationInformation |
getApplicationInformation()
Retrieves the application information of the current application
|
FeatureInformation[] |
getFeatures()
Retrieves the feature definition for all the features that are visible on
the springboard in the current application
|
static ApplicationFeatures |
getInstance() |
void |
gotoDefaultFeature()
Navigates the application to the default feature.
|
void |
gotoFeature(String featureId)
Navigates the application to the passed in feature.
|
void |
gotoPreferences()
Activates the preferences page
|
void |
gotoSpringboard()
Activates the springboard
|
void |
hideNavigationbar()
Hides the navigation bar if visible.
|
boolean |
isValidFeatureId(String featureId)
Check if given ID refers to a valid feature.
|
void |
removeProviderChangeListener(ProviderChangeListener l)
Standard callback for the "features" collectionModel.
|
void |
resetFeature(String fid)
Resets the state of the passed in feature (converted to use
EmbeddedToNativeRequest)
To reset the feature but not actually go to the feature use
ApplicationFeatures.resetFeature(String, Boolean)
|
void |
resetFeature(String fid,
Boolean gotoTheFeature)
Resets the state of the passed in feature (converted to use
EmbeddedToNativeRequest)
|
void |
setApplicationIconBadgeNumber(Integer badge) |
void |
showNavigationbar()
Shows the navigation bar.
|
void |
toggleSpringboard()
Toggles the springboard.
|
public static ApplicationFeatures getInstance()
public void fireAnalyticsEvents(String eventName, String event)
eventName
- - It is a String value which represents the name of the eventevent
- - It has to be a key-value pair and a String representation of the
JSONObject. It could also be an EL expression which returns String.
Hierarchical JSON, numbers, booleans, nulls, arrays and complex
objects are not supported.public oracle.adfmf.framework.ApplicationInformation getApplicationInformation()
ApplicationInformation
object containing various
attributes of the applicationpublic Object getApplicationIconBadgeNumber()
public FeatureInformation[] getFeatures()
FeatureInformation
object containing
various attributes of the featurepublic void gotoDefaultFeature()
public void gotoFeature(String featureId)
featureId
- - Id of the featurepublic void gotoSpringboard()
public void toggleSpringboard()
public void hideNavigationbar()
public void resetFeature(String fid)
fid
- - Id of the feature to be resetpublic void resetFeature(String fid, Boolean gotoTheFeature)
fid
- - Id of the feature to be resetgotoTheFeature
- - Whether or not to navigate to the featurepublic void setApplicationIconBadgeNumber(Integer badge)
public void showNavigationbar()
public void gotoPreferences()
public boolean isValidFeatureId(String featureId)
featureId
- feature IDpublic void addProviderChangeListener(ProviderChangeListener l)
l
- public void removeProviderChangeListener(ProviderChangeListener l)
l
-