AppKinetics send Intent helper. More...
This class provides a helper programming interface that sends an Android Intent as an AppKinetics service request. This is an optional part of the service consumer side of AppKinetics.
An Intent can be sent by this helper if the following conditions are both met.
If either of these conditions isn't met then it won't be possible to send the Intent as an AppKinetics service request.
The typical sequence of programming interfaces used is as follows.
Public Member Functions | |
boolean | canGDConsume (final Intent intent) |
Check whether an Intent can be sent as a service request. More... | |
boolean | GDConsume (final Intent intent) throws GDServiceException |
Send an Intent as a service request. More... | |
Static Public Member Functions | |
static GDServiceHelper | getInstance () |
Get a reference to the interface object. More... | |
boolean canGDConsume | ( | final Intent | intent | ) |
Call this method to check whether an Intent can be sent as an AppKinetics service request. Conditions for this check are in the class description, above.
intent | Intent to be checked. |
true
if the Intent can be sent as a service request. false
otherwise. boolean GDConsume | ( | final Intent | intent | ) | throws GDServiceException |
Call this method to send an Intent as an AppKinetics service request. Only call this method if the canGDConsume method returned true
for the Intent.
intent | Intent to be sent. |
true
if the Intent will be sent as a service request. false
if the Intent can't be sent as a service request and the application must take some other action.GDServiceException |
|
static |
This method returns a reference to the AppKinetics send Intent helper interface object.
The AppKinetics send Intent helper is a "singleton class".