UserContextApi
Use this API to access and listen to the user's context.
void addUserContextUpdateListener(UserContextUpdateListener listener)Adds a listener to handle updates to the user's context.
Parameters | Text |
---|---|
listener |
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.
Parameters | Text |
---|---|
criteria | |
listener |
PendingOperation<UserContext, RequestUserContextError> requestUserContext()Retrieves the user's current context.
void removeUserContextUpdateListener(UserContextUpdateListener listener)Removes a previously set user context update listener.
Parameters | |
listener |
Last modified 2mo ago