com.qualcommlabs.usercontext
Interface ContextConnectorStatusCallback


public interface ContextConnectorStatusCallback

The Interface ContextConnectorStatusCallback provides interface methods for requesting specific information regarding the status of the ContextCoreConnector.

See Also:
ContextCoreConnector

Method Summary
 void enabled(ContextConnectorPermissions contextConnectorPermissions)
          This callback method is invoked when everything is ok and will give you details on what permissions your user has set for your application.
 void failure(int statusCode, String errorMessage)
          In case of failures, generally due to network issue, environment issue, or simply issues in Gimbal, we use this call back to report the problem.
 void notInitialized()
          This callback method is invoked when Gimbal is not initialized.
 void notInstalled()
          This callback method is invoked when Gimbal is not installed on the device.
 void permissionDisabled(ContextConnectorPermissions contextConnectorPermissions)
          You are in a state where Gimbal is installed, terms are approved, initialized but your user has declined giving permissions to your application.
 void termsOfServiceNotYetAccepted()
          This callback method is invoked when your user has not approved the terms of services within Gimbal.
 

Method Detail

notInstalled

void notInstalled()
This callback method is invoked when Gimbal is not installed on the device. The logical next step to implement in such a case is to invoke the method showDownloadContextConnectorUI on your ContextConnector object.


notInitialized

void notInitialized()
This callback method is invoked when Gimbal is not initialized. Invoke the initialize method on your ContextConnector object.


termsOfServiceNotYetAccepted

void termsOfServiceNotYetAccepted()
This callback method is invoked when your user has not approved the terms of services within Gimbal. The next logical step to implement in such a case is to invoke the method showTermsOfServiceUI on your ContextConnector object.


enabled

void enabled(ContextConnectorPermissions contextConnectorPermissions)
This callback method is invoked when everything is ok and will give you details on what permissions your user has set for your application. Make sure you check these values in the parameter so that your application can decide which services are available.

Parameters:
contextConnectorPermissions - the context connector permissions

permissionDisabled

void permissionDisabled(ContextConnectorPermissions contextConnectorPermissions)
You are in a state where Gimbal is installed, terms are approved, initialized but your user has declined giving permissions to your application. In order to encourage your user to modify your application permissions, you can call showUpdatePermissionsUI on your ContextConnector object.

Parameters:
contextConnectorPermissions - the context connector permissions

failure

void failure(int statusCode,
             String errorMessage)
In case of failures, generally due to network issue, environment issue, or simply issues in Gimbal, we use this call back to report the problem.

Parameters:
statusCode - the status code
errorMessage - the error message


Copyright © 2014 Qualcomm Retail Solutions, Inc.. All Rights Reserved.