TabContents

@CarProtocol
@RequiresCarApi(value = 6)
public class TabContents implements Content


Represents the contents to display for a selected tab in a TabTemplate. Only certain templates may be used as content. See Builder for more details.

Summary

Nested types

public final class TabContents.Builder

A builder of TabContents.

Constants

static final String
CONTENT_ID = "TAB_CONTENTS_CONTENT_ID"

Content ID for TabContents

Public methods

boolean
@NonNull String

Returns the static content ID associated with TabContents.

@NonNull Template

Returns the wrapped Template to display as the contents.

int
@NonNull String

Constants

CONTENT_ID

Added in 1.3.0
public static final String CONTENT_ID = "TAB_CONTENTS_CONTENT_ID"

Content ID for TabContents

This Content ID will be used to refresh the displayed template in the TabContents.

Public methods

equals

Added in 1.4.0-rc02
public boolean equals(@Nullable Object other)

getContentId

Added in 1.4.0-rc02
public @NonNull String getContentId()

Returns the static content ID associated with TabContents.

See also
CONTENT_ID

getTemplate

Added in 1.3.0
public @NonNull Template getTemplate()

Returns the wrapped Template to display as the contents.

hashCode

Added in 1.4.0-rc02
public int hashCode()

toString

Added in 1.4.0-rc02
public @NonNull String toString()