• BlackBerry Dynamics
  • Runtime library for Android applications
  • 9.2.0.99
GDEntitlementVersionsRequestCallback Interface Reference

Observer interface for entitlement check results. More...

Description

The result of a BlackBerry Dynamics entitlement check is handled by creating a class that implements this interface.

For details of the BlackBerry Dynamics entitlement check programming interface, see the GDAndroid.getEntitlementVersions reference documentation.

Public Member Functions

void onReceivedEntitlementVersions (int requestId, int status, List< GDVersion > versions)
 Entitlement check results callback. More...
 

Member Function Documentation

◆ onReceivedEntitlementVersions()

void onReceivedEntitlementVersions ( int  requestId,
int  status,
List< GDVersion versions 
)

This callback will be invoked when the results of an entitlement check are ready or when an error has occurred.

Parameters
requestIdint value that identifies the check. The same value will have been returned to the original call to getEntitlementVersions.
statusint value indicating the status of the check:
  • Zero (0): The check was made and the versions parameter, below, contains the results.
  • 400 to 599: One or more servers involved in the check encountered an error and the check could not be completed.
  • -1 to -50: A general error occurred.
In the case of an error, console logs will contain a descriptive message.
versionsList of GDVersion objects, each representing an entitlement version. If the end user does not have the entitlement for which a check was made then this list will have zero elements.