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
Source:

Methods

getAnalyticsVersion(onSuccess) → {string}

This function returns a string containing BlackBerry Analytics Framework version in major.minor.build format.
Parameters:
Name Type Description
onSuccess function Callback function to invoke when the function returns successfully.
Source:
Returns:
always
Type
string
Example
<pre class="prettyprint"><code>

function success(result) {
  console.log('Retrieved the Analytics SDK version: ' + result);
};

function getAnalyticsSDKVersion(){
window.analytics.getAnalyticsVersion(success);
};
</code></pre>