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.
listener
A UserContextUpdateListener
that gets triggered when the user context has changed.
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.
criteria
A list that filters which UserContextUpdateCriteria
to return.
listener
A UserContextUpdateListener
that gets triggered when the user context has changed.
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.
listener
A UserContextUpdateListener
that gets triggered when the user context has changed.
Last updated