Builder

class Builder

MPLocation builder class

Constructors

Link copied to clipboard
open fun Builder(@Nullable uniqueId: String)
Link copied to clipboard
open fun Builder(@NonNull srcLocation: MPLocation)
Sets up a new builder using another MPLocation as a starting point This will create a new MPLocation object keeping all the given one's dataData can then be altered using the builder's methods as usual

Functions

Link copied to clipboard
@NonNull
open fun build(): MPLocation
Builds an MPLocation object
Link copied to clipboard
@NonNull
open fun setActiveFrom(activeFromTime: Long): MPLocation.Builder
Sets the active-from property in UTC.
Link copied to clipboard
@NonNull
open fun setActiveTo(activeToTime: Long): MPLocation.Builder
Sets the active-to property in UTC.
Link copied to clipboard
@NonNull
open fun setAliases(@Nullable aliases: Array<String>): MPLocation.Builder
Sets the location's aliases property
Link copied to clipboard
@NonNull
open fun setBitmapDrawableIcon(@DrawableRes bitmapDrawableResId: Int): MPLocation.Builder
Overrides the current type icon using a android.graphics.drawable.BitmapDrawable resource Note that the size of the icon will be set to the default one set by setDisplayRuleDefaultIconSize
@NonNull
open fun setBitmapDrawableIcon(    @DrawableRes bitmapDrawableResId: Int,     width: Int,     height: Int): MPLocation.Builder
Overrides the current type icon using a android.graphics.drawable.BitmapDrawable resource
Link copied to clipboard
@NonNull
open fun setBitmapIcon(@NonNull bitmap: Bitmap): MPLocation.Builder
Overrides the current type icon being used with a BitmapNote that the size of the icon will be set to the default one set by setDisplayRuleDefaultIconSize
@NonNull
open fun setBitmapIcon(    @NonNull bitmap: Bitmap,     width: Int,     height: Int): MPLocation.Builder
Overrides the current type icon being used with a Bitmap
Link copied to clipboard
@NonNull
open fun setBuilding(@NonNull buildingAdministrativeId: String): MPLocation.Builder
Sets the location's building Only set a building when a POI is inside one.
Link copied to clipboard
@NonNull
open fun setCategories(@NonNull categories: List<String>): MPLocation.Builder
Sets the categories that this location belongs to, if any
Link copied to clipboard
@NonNull
open fun setContact(@NonNull contactData: HashMap<String, DataField>): MPLocation.Builder
Sets an optional set of contact data fields
Link copied to clipboard
@NonNull
open fun setDescription(@NonNull description: String): MPLocation.Builder
Sets a description text
Link copied to clipboard
@NonNull
open fun setExternalId(@NonNull externalId: String): MPLocation.Builder
Sets the external id property
Link copied to clipboard
@NonNull
open fun setFields(@NonNull dataFields: HashMap<String, DataField>): MPLocation.Builder
Sets an optional set of data fields
Link copied to clipboard
@NonNull
open fun setFloor(floorIndex: Int): MPLocation.Builder
Sets the location's floor (index)
Link copied to clipboard
@NonNull
open fun setFloorName(@NonNull floorName: String): MPLocation.Builder
Sets the location's floor name
Link copied to clipboard
@NonNull
open fun setGeometry(@NonNull point: Point): MPLocation.Builder
Sets the geometry for this MPLocation as a Point
@NonNull
open fun setGeometry(@NonNull geometry: PolygonGeometry): MPLocation.Builder
Sets the geometry for this MPLocation as a PolygonGeometry
Link copied to clipboard
@NonNull
open fun setIconAnchor(anchorU: Float, anchorV: Float): MPLocation.Builder
Sets the anchor point for the marker
Link copied to clipboard
@NonNull
open fun setLocationType(@NonNull locationType: String): MPLocation.Builder
Sets the location type.
Link copied to clipboard
@NonNull
open fun setName(@NonNull name: String): MPLocation.Builder
Sets the location's name property
Link copied to clipboard
@NonNull
open fun setPosition(@NonNull latLng: LatLng): MPLocation.Builder
@NonNull
open fun setPosition(@NonNull latLng: LatLng, durationMs: Int): MPLocation.Builder
@NonNull
open fun setPosition(latitude: Double, longitude: Double): MPLocation.Builder
@NonNull
open fun setPosition(    latitude: Double,     longitude: Double,     durationMs: Int): MPLocation.Builder
Sets/updates the position
@NonNull
open fun setPosition(@NonNull point: Point): MPLocation.Builder
@NonNull
open fun setPosition(@NonNull point: Point, durationMs: Int): MPLocation.Builder
Sets/updates the position (ONLY LAT/LNG are used)
Link copied to clipboard
@NonNull
open fun setRoomId(@NonNull roomId: String): MPLocation.Builder
Sets the roomId property
Link copied to clipboard
@NonNull
open fun setStatus(@Nullable status: Integer): MPLocation.Builder
Sets the status of the MPLocation
Link copied to clipboard
@NonNull
open fun setTint(tintColor: Int): MPLocation.Builder
Sets the icon tint color
Link copied to clipboard
@NonNull
open fun setType(@NonNull type: String): MPLocation.Builder
Sets this location type (office, meeting room, etc.
Link copied to clipboard
@NonNull
open fun setVectorDrawableIcon(@DrawableRes vectorDrawableResId: Int): MPLocation.Builder
Overrides the current type icon using a android.graphics.drawable.VectorDrawable resource Note that the size of the icon will be set to the default one set by setDisplayRuleDefaultIconSize
@NonNull
open fun setVectorDrawableIcon(    @DrawableRes vectorDrawableResId: Int,     width: Int,     height: Int): MPLocation.Builder
Overrides the current type icon using a android.graphics.drawable.VectorDrawable resource
Link copied to clipboard
@NonNull
open fun setVenue(@NonNull venueName: String): MPLocation.Builder
Sets the venue this location belongs to
Link copied to clipboard
@NonNull
open fun toString(): String

Properties

Link copied to clipboard
@Nullable
@set:NonNull
open var tag: Any