Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard
@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitFetchPhoto(photoMetadata: PhotoMetadata, actions: FetchPhotoRequest.Builder.() -> Unit = {}): FetchPhotoResponse

Wraps PlacesClient.fetchPhoto in a suspending function.

Link copied to clipboard
@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitFetchPlace(placeId: String, placeFields: List<Place.Field>): FetchPlaceResponse

Wraps PlacesClient.fetchPlace in a suspending function.

Link copied to clipboard
@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitFindAutocompletePredictions(actions: FindAutocompletePredictionsRequest.Builder.() -> Unit): FindAutocompletePredictionsResponse

Wraps PlacesClient.findAutocompletePredictions in a suspending function.

Link copied to clipboard
@ExperimentalCoroutinesApi
@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
suspend fun PlacesClient.awaitFindCurrentPlace(placeFields: List<Place.Field>): FindCurrentPlaceResponse

Wraps PlacesClient.findCurrentPlace in a suspending function.

Link copied to clipboard
@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitIsOpen(place: Place, utcTimeMillis: Long? = null): IsOpenResponse

Wraps PlacesClient.isOpen in a suspending function with the given Place object.

@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitIsOpen(placeId: String, utcTimeMillis: Long? = null): IsOpenResponse

Wraps PlacesClient.isOpen in a suspending function with the given placeId.

Link copied to clipboard
@ExperimentalCoroutinesApi
suspend fun PlacesClient.awaitSearchByText(textQuery: String, placeFields: List<Place.Field>, actions: SearchByTextRequest.Builder.() -> Unit = {}): SearchByTextResponse

Wraps PlacesClient.searchByText in a suspending function.

Link copied to clipboard
fun fetchPhotoRequest(photoMetadata: PhotoMetadata, actions: FetchPhotoRequest.Builder.() -> Unit? = null): FetchPhotoRequest

Builds a new FetchPhotoRequest.

Link copied to clipboard
fun fetchPlaceRequest(placeId: String, placeFields: List<Place.Field>, actions: FetchPlaceRequest.Builder.() -> Unit? = null): FetchPlaceRequest

Builds a new FetchPlaceRequest.

Link copied to clipboard
inline fun findAutocompletePredictionsRequest(actions: FindAutocompletePredictionsRequest.Builder.() -> Unit): FindAutocompletePredictionsRequest

Builds a new FindAutocompletePredictionsRequest.

Link copied to clipboard
fun findCurrentPlaceRequest(placeFields: List<Place.Field>, actions: FindCurrentPlaceRequest.Builder.() -> Unit? = null): FindCurrentPlaceRequest

Builds a new FindCurrentPlaceRequest.

Link copied to clipboard
fun isOpenRequest(place: Place, utcTimeMillis: Long? = null, actions: IsOpenRequest.Builder.() -> Unit? = null): IsOpenRequest
fun isOpenRequest(placeId: String, utcTimeMillis: Long? = null, actions: IsOpenRequest.Builder.() -> Unit? = null): IsOpenRequest

Builds a new IsOpenRequest.

Link copied to clipboard
fun searchByTextRequest(textQuery: String, placeFields: List<Place.Field>, actions: SearchByTextRequest.Builder.() -> Unit = {}): SearchByTextRequest

Builds a new SearchByTextRequest.

Link copied to clipboard
fun SearchByTextRequest.Builder.setPriceLevels(vararg priceLevels: PriceLevel): SearchByTextRequest.Builder
fun SearchByTextRequest.Builder.setPriceLevels(priceLevels: Collection<PriceLevel>): SearchByTextRequest.Builder