UserLocations

Entity holding all personal locations of the current user of the application.

All modifications to the personal locations must be persisted using PersonalData.storeUserProfile.

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

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

All personal locations of the user.

Link copied to clipboard

The favorite locations of the user.

Link copied to clipboard

The user's home location.

Link copied to clipboard

The recent destinations of the user, ordered with the most recent one first.

Link copied to clipboard

The work location of the user.

Functions

Link copied to clipboard
fun create(types: Set<PersonalLocation.Type>, place: Place, name: String = "", hasPrivateCharger: Boolean = false): PersonalLocation

Saves the place as new bookmark.

Link copied to clipboard

Find a personal location by its identifier.

Link copied to clipboard

Checks whether this place is associated with any personal locations.

Link copied to clipboard

Removes the given personal location.

Link copied to clipboard

Updates the given personal location with the new types.