addUserProfileUpdatedListener

Adds an update listener to be notified of any changes to any of the data within the user profile.

Updates might either originate from direct user interaction (storing the "home" location), indirectly through interaction with other parts of the application (starting navigation leading to a new recent destination) or from a remote system (user interaction in a companion app or inference models based on user behavior).

On update the listener might get passed either the same instance or a new instance of UserProfile. Clients should never rely on the same instance being passed and silently updated.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

listener

The listener to add.