onSuccess

open fun onSuccess(block: (Location) -> Unit): GeolocatorResult

Perform an action if the result was successful.

Return

The original result.

Parameters

block

The action to perform if the result was successful.