
DescriptionMethod
Example:
QString userId = ADBMobile::getUserIdentifier();
Sets the user identifier to identifier.
setUserIdentifier
Syntax:
static void setUserIdentifier(QString identifier);
Example:
ADBMobile::setUserIdentifier("billybob");
Returns the current debug logging preference.
getDebugLogging
Default: false
Syntax:
static bool getDebugLogging();
Example:
bool debugging = ADBMobile::getDebugLogging();
Sets the debug logging preference to debugLogging.
setDebugLogging
Syntax:
static void setDebugLogging(bool debugLogging);
Example:
ADBMobile::setDebugLogging(true);
Indicates to the SDK that lifecycle data should be collected for use across all solutions in
the SDK. See Lifecycle Metrics.
collectLifecycleData
Syntax:
static void collectLifecycleData();
Example:
ApplicationUI::ApplicationUI(bb::cascades::Application *app): QObject(app)
{
//...
ADBMobile::collectLifecycleData();
}
Analytics Methods
Each of these methods is used to send data into your Adobe Analytics report suite.
DescriptionMethod
Tracks an app state with optional context data. States are the views that are available in
your app, such as "home dashboard", "app settings", "cart", and so on. These states are
similar to pages on a website, and trackState calls increment page views.
trackState
7Adobe Mobile Class and Method Reference
Komentáře k této Příručce