PlaceController
public
class
PlaceController
extends Object
java.lang.Object | |
↳ | com.google.android.libraries.car.app.testing.model.PlaceController |
A controller that allows testing of a Place
.
This controller allows getting the following fields:
- The
LatLng
set viaPlace.Builder.setLatLng(LatLng)
.
Summary
Public methods | |
---|---|
Place
|
get()
Retrieves the |
LatLng
|
getLatLng()
Retrieves the |
static
PlaceController
|
of(Place place)
Creates a |
Inherited methods | |
---|---|
Public methods
getLatLng
public LatLng getLatLng ()
Retrieves the LatLng
that was set in the Place
being controlled via Place.Builder.setLatLng(LatLng)
or Place.builder(LatLng)
.
Returns | |
---|---|
LatLng |
of
public static PlaceController of (Place place)
Creates a PlaceController
to control a Place
for testing.
Parameters | |
---|---|
place |
Place |
Returns | |
---|---|
PlaceController |