Success

class Success(val data: Location) : GeolocatorResult

Represents a successful geolocation operation.

Constructors

Link copied to clipboard
constructor(data: Location)

Properties

Link copied to clipboard

The result of the geolocation operation.

Link copied to clipboard
open val isError: Boolean

Check if the result was unsuccessful.

Functions

Link copied to clipboard

Get the error or null if the result was successful.

Link copied to clipboard
open fun getOrNull(): Location?

Get the result list data or null if the result was unsuccessful.

Link copied to clipboard

Perform an action if the result was unsuccessful.

Link copied to clipboard
open fun onSuccess(block: (Location) -> Unit): GeolocatorResult

Perform an action if the result was successful.