Metadata.Builder

public static final class Metadata.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.model.Metadata.Builder


A builder for Metadata.

Summary

Public constructors

Builder()

Returns an empty Metadata.Builder instance.

Builder(Metadata metadata)

Returns a new Metadata.Builder with the data from the given Metadata instance.

Public methods

Metadata build()

Returns a Metadata instance defined by this builder.

Metadata.Builder setPlace(Place place)

Sets a Place used for showing Distance and PlaceMarker information.

Inherited methods

Public constructors

Builder

public Builder ()

Returns an empty Metadata.Builder instance.

Builder

public Builder (Metadata metadata)

Returns a new Metadata.Builder with the data from the given Metadata instance.

Parameters
metadata Metadata

Throws
NullPointerException if icon is null

Public methods

build

public Metadata build ()

Returns a Metadata instance defined by this builder.

Returns
Metadata

setPlace

public Metadata.Builder setPlace (Place place)

Sets a Place used for showing Distance and PlaceMarker information.

Parameters
place Place

Returns
Metadata.Builder

Throws
NullPointerException if place is null