addProvisionalAwareUserContextUpdateListenerWithCriteria
open fun addProvisionalAwareUserContextUpdateListenerWithCriteria(@NonNull criteria: List<UserContextUpdateCriteria>, @NonNull listener: UserContextUpdateListener)
Adds a listener that will be invoked when the user's current context is updated. You can filter the context criteria you are interested in.
The user context updates delivered by this listener may include provisional events, if any. See isProvisional to learn more about what a provisional event is.
If the listener instance provided has been previously added, then it will be replaced. The user context criteria of interest will also be replaced.
Parameters
criteria
The user context criteria you're interested in.
listener
The listener to be invoked when the user's current context is updated.
Throws
if the SDK is not initialized.