UserContextApi

Use this API to access and listen to the user's context.

UserContextApi API

addUserContextUpdateListener()

void addUserContextUpdateListener(UserContextUpdateListener listener)

Adds a listener to handle updates to the user's context.

Note: calling this method on an uninitialized SDK will throw an SdkException.

addUserContextUpdateListener()

void addUserContextUpdateListener(List<UserContextUpdateCriteria> criteria, UserContextUpdateListener listener)

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.

requestUserContext()

PendingOperation<UserContext, RequestUserContextError> requestUserContext()

Retrieves the user's current context.

Note: calling this method on an uninitialized SDK will throw an SdkException.

removeUserContextUpdateListener()

void removeUserContextUpdateListener(UserContextUpdateListener listener)

Removes a previously set user context update listener.

Note: calling this method on an uninitialized SDK will throw an SdkException.

Last updated