FindCurrentPlaceRequest

public abstract class FindCurrentPlaceRequest implements Request


Request used by findCurrentPlace.

Use builder to get the Builder that constructs the .

Summary

Nested types

public abstract class FindCurrentPlaceRequest.Builder

Builder for FindCurrentPlaceRequest

Public constructors

Public methods

static FindCurrentPlaceRequest.Builder
builder(List<Place.Field> placeFields)

Returns a Builder.

abstract @Nullable CancellationToken

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

abstract List<Place.Field>

Returns the Place.Field list to be requested.

static FindCurrentPlaceRequest

Returns a FindCurrentPlaceRequest.

Public constructors

FindCurrentPlaceRequest

public FindCurrentPlaceRequest()

Public methods

builder

public static FindCurrentPlaceRequest.Builder builder(List<Place.Field> placeFields)

Returns a Builder.

Parameters
List<Place.Field> placeFields

The fields of the places to be returned. See Place.Field for the specifiable fields. Read more about Place Data Fields.

getCancellationToken

public abstract @Nullable CancellationToken getCancellationToken()

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

getPlaceFields

public abstract List<Place.FieldgetPlaceFields()

Returns the Place.Field list to be requested.

This list should not be modified.

newInstance

public static FindCurrentPlaceRequest newInstance(List<Place.Field> placeFields)

Returns a FindCurrentPlaceRequest.

Parameters
List<Place.Field> placeFields

The fields of the places to be returned. See Place.Field for the specifiable fields. Read more about Place Data Fields.