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

public boolean equals(@Nullable Object other)

getContentId

Added in 1.7.0-beta02
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

public int hashCode()

toString

public @NonNull String toString()