public final class

Place.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.model.Place.Builder

Overview

A builder of Place.

Summary

Constructors
publicBuilder(CarLocation location)

Returns a builder instance for a CarLocation.

publicBuilder(Place place)

Returns a Place.Builder instance with the same data as the given Place instance.

Methods
public Placebuild()

Constructs the Place defined by this builder.

public Place.BuildersetMarker(PlaceMarker marker)

Sets the PlaceMarker that specifies how this place is to be displayed on a map.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(CarLocation location)

Returns a builder instance for a CarLocation.

Parameters:

location: the geographical location associated with the place

public Builder(Place place)

Returns a Place.Builder instance with the same data as the given Place instance.

Methods

public Place.Builder setMarker(PlaceMarker marker)

Sets the PlaceMarker that specifies how this place is to be displayed on a map.

Unless set with this method, the place will not have a marker.

public Place build()

Constructs the Place defined by this builder.