places-ktx / com.google.android.libraries.places.ktx.api.net / com.google.android.libraries.places.api.net.PlacesClient / awaitFindCurrentPlace

awaitFindCurrentPlace

suspend fun PlacesClient.awaitFindCurrentPlace(request: FindCurrentPlaceRequest): FindCurrentPlaceResponse

Wraps PlacesClient.findCurrentPlace in a suspending function.

Fetches the approximate current place of the user's device. Calling this method without granting the appropriate permissions will result in a SecurityException being thrown. In addition, if an error occurred while fetching the current place, an ApiException will be thrown.