Class: Analytics

Analytics()

The Analytics object provides API to work with Analytics SDK

Constructor

new Analytics()

Properties:
Name Type Description
activityStatus String describes the feature activity status: 'active' for the active feature and 'inactive' otherwise. Note: this property is deprecated and 'activityStatus' is always 'active' now
Deprecated:
  • It will be removed in future versions, as Analytics library is now included in BlackBerry Dynamics SDK version 8.0+
Source:

Methods

getAnalyticsVersion(onSuccess) → {string}

This function returns a string containing BlackBerry Analytics Framework version in major.minor.build format. Note: this function is deprecated now and returns a string containing BlackBerry Dynamics SDK version instead
Parameters:
Name Type Description
onSuccess function Callback function to invoke when the function returns successfully.
Deprecated:
  • It will be removed in future versions, as Analytics library is now included in BlackBerry Dynamics SDK version 8.0+
Source:
Returns:
always
Type
string
Example
function success(result) {
    console.log('Retrieved Blackberry Dynamics SDK version: ' + result);
};

function getAnalyticsSDKVersion() {
    window.analytics.getAnalyticsVersion(success);
};