Android 12 Developer Preview is here! Try it out, and give us your feedback!

MetadataController

public class MetadataController
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.testing.model.MetadataController


A controller that allows testing of a Metadata.

This controller allows getting the following fields:

Summary

Public methods

Metadata get()

Retrieves the Metadata that this controller is controlling.

PlaceController getPlace()

Returns a PlaceController for the Place that is contained in the Row being controlled.

static MetadataController of(Metadata metadata)

Creates a MetadataController to control a Metadata for testing.

Inherited methods

Public methods

get

public Metadata get ()

Retrieves the Metadata that this controller is controlling.

Returns
Metadata

getPlace

public PlaceController getPlace ()

Returns a PlaceController for the Place that is contained in the Row being controlled.

The Place is the one set via Metadata.Builder.setPlace(Place), or null if none was set.

Returns
PlaceController

of

public static MetadataController of (Metadata metadata)

Creates a MetadataController to control a Metadata for testing.

Parameters
metadata Metadata

Returns
MetadataController