Skip to Content
API ReferenceMapLocationButtonClickResult

LocationButtonClickResult

data class LocationButtonClickResult(val success: Boolean, val location: LzLocation? = null, val error: String? = null)

Result of a location button click operation.

This class provides information about the result of clicking the current location button, allowing clients to display custom messages or handle the result appropriately.

Constructors

LocationButtonClickResultconstructor(success: Boolean , location: LzLocation? = null, error: String ? = null)

Properties

error

val error: String? = null

Error message if the operation failed (null if operation succeeded)

location

val location: LzLocation? = null

Types: LzLocation

The location that was used to center the map (null if operation failed)

success

val success: Boolean

Whether the location was successfully obtained and the map was centered

Last updated on