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

MessageInfoController

public class MessageInfoController
extends Object implements NavigationTemplateController.NavigationInfoController

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


A controller that allows testing of a MessageInfo.

This controller allows:

Summary

Public methods

MessageInfo get()

Retrieves the MessageInfo that this controller is controlling.

String getText()

Returns a string that contains the text message set in the MessageInfoController.

String getTitle()

Returns a string that contains the title set in the MessageInfoController.

static MessageInfoController of(MessageInfo messageInfo)

Creates a MessageInfoController to control an MessageInfo for testing.

Inherited methods

Public methods

get

public MessageInfo get ()

Retrieves the MessageInfo that this controller is controlling.

Returns
MessageInfo

getText

public String getText ()

Returns a string that contains the text message set in the MessageInfoController.

Returns
String

getTitle

public String getTitle ()

Returns a string that contains the title set in the MessageInfoController.

Returns
String

of

public static MessageInfoController of (MessageInfo messageInfo)

Creates a MessageInfoController to control an MessageInfo for testing.

Parameters
messageInfo MessageInfo

Returns
MessageInfoController