create

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

Saves the place as new bookmark.

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

The new bookmark will be assigned to the respective bookmark holding property of the user locations and returned.

Return

The newly created personal location.

Parameters

types

The types of the personal location. Is required to be non-empty, otherwise the method throws an IllegalArgumentException.

place

The place for which a personal location is created.

name

The name of the personal location.

hasPrivateCharger

Whether the personal location has a private charger.