|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextCoreConnector
The ContextCoreConnector interface provide core API management. All connectors require this connector to be enabled. Other methods allow for the checking of the status of the ContextCoreConnector.
Method Summary | |
---|---|
void |
checkStatus(StatusCallback statusCallback)
Deprecated. |
void |
deleteAllUserData(Callback<Void> callback)
Deletes all user data associated with Gimbal including data on the server. |
void |
enable(android.app.Activity activity,
Callback<Void> serviceCallback)
This is the first method to call once you have acquired ContextConnector Instance. |
ContextCoreStatus |
getStatus()
Invoke this method to query the core connector for its current status. |
boolean |
isPermissionEnabled()
Invoke this method to see if the core connector has been enabled |
void |
requestContentHistory(Callback<List<ContentDescriptorHistory>> serviceCallback)
Returns a list of the content delivered to the device. |
void |
requestDetailedStatus(ContextConnectorStatusCallback statusCallback)
Invoke this method to get detailed status of Gimbal. |
void |
setCurrentActivity(android.app.Activity activity)
Informs the Gimbal SDK that the app has come into the foreground or gone into the background (by passing a null activity). |
void |
showUpdatePermissionsUI(android.app.Activity activity,
Callback<Void> serviceCallback)
Invoke this method when you have received a notification that your application has been disabled (permission disabled) by the user and you want to ask your user to turn permissions back on. |
Methods inherited from interface com.qualcommlabs.usercontext.privateapi.ContextPermissionNotifier |
---|
addPermissionChangeListener, removePermissionChangeListener |
Methods inherited from interface com.qualcommlabs.usercontext.ContextContentNotifier |
---|
addContentListener, removeContentListener |
Methods inherited from interface com.qualcommlabs.usercontext.ConnectorPermissionChangeNotifier |
---|
addConnectorPermissionChangeListener, removeConnectorPermissionChangeListener |
Method Detail |
---|
void enable(android.app.Activity activity, Callback<Void> serviceCallback)
activity
- the activityserviceCallback
- callback to asynchronously receive status and possibly states
to manage (success and unexpected failure)void deleteAllUserData(Callback<Void> callback)
callback
- The success method on the callback is called back after the
users data has been successfully purged from teh server and
the local device@Deprecated void checkStatus(StatusCallback statusCallback)
statusCallback
- callback to asynchronously receive status and possibly states
to manage (success and unexpected failure)Invoke this method to check the status of
Gimbal. It's good practice to call this when you are displaying the
status of Gimbal or when your application is resumed.
boolean isPermissionEnabled()
ContextCoreStatus getStatus()
void requestDetailedStatus(ContextConnectorStatusCallback statusCallback)
statusCallback
- the status callbackvoid showUpdatePermissionsUI(android.app.Activity activity, Callback<Void> serviceCallback)
activity
- serviceCallback
- callback to asynchronously receive status and possibly states
to managevoid requestContentHistory(Callback<List<ContentDescriptorHistory>> serviceCallback)
serviceCallback
- the service callbackvoid setCurrentActivity(android.app.Activity activity)
activity
- (or null if the actifity is being paused)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |