setPosition

@NonNull
open fun setPosition(@NonNull point: Point): MPLocation.Builder

Sets/updates the position (ONLY LAT/LNG are used)

Return

Builder

Parameters

point

@NonNull
open fun setPosition(@NonNull point: Point, durationMs: Int): MPLocation.Builder

Sets/updates the position (ONLY LAT/LNG are used)

Return

Builder

Parameters

point
durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

Throws

if the duration given was a negative value


@NonNull
open fun setPosition(@NonNull latLng: LatLng): MPLocation.Builder

Sets/updates the position

Return

Builder

Parameters

latLng

A LatLng


@NonNull
open fun setPosition(@NonNull latLng: LatLng, durationMs: Int): MPLocation.Builder

Sets/updates the position

Return

Builder

Parameters

latLng

A LatLng

durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

Throws

if the duration given was a negative value


@NonNull
open fun setPosition(latitude: Double, longitude: Double): MPLocation.Builder

Sets/updates the position

Return

Builder

Parameters

latitude
longitude

@NonNull
open fun setPosition(    latitude: Double,     longitude: Double,     durationMs: Int): MPLocation.Builder

Sets/updates the position

Return

Builder

Parameters

latitude
longitude
durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

Throws

if the duration given was a negative value