UserContextApi
Use this API to access and listen to the user's context.
UserContextApi API
addUserContextUpdateListener()
addUserContextUpdateListener()
Adds a listener to handle updates to the user's context.
Note: calling this method on an uninitialized SDK will throw an SdkException.
Parameters | |
---|---|
listener | A |
addUserContextUpdateListener()
addUserContextUpdateListener()
Adds a listener to handle updates to the user's context, with the option of filtering the context criteria.
Note: calling this method on an uninitialized SDK will throw an SdkException.
Parameters | |
---|---|
criteria | A list that filters which |
listener | A |
requestUserContext()
requestUserContext()
Retrieves the user's current context.
Note: calling this method on an uninitialized SDK will throw an SdkException.
removeUserContextUpdateListener()
removeUserContextUpdateListener()
Removes a previously set user context update listener.
Note: calling this method on an uninitialized SDK will throw an SdkException.
Parameters | |
---|---|
listener | A |
Last updated