@Document(name = "builtin:SportsOrganization")
public class SportsOrganization extends Organization

Known direct subclasses
SportsTeam

AppSearch document representing a SportsTeam entity.


AppSearch document representing a SportsOrganization entity.

Summary

Nested types

Public methods

@Nullable Color

Returns the accent colors of the sports organization as a Color, if set.

@NonNull String

Returns the sport of the sports organization, if set.

Inherited methods

From androidx.appsearch.builtintypes.Organization
@Nullable ImageObject

Returns the logo of the organization, if set.

From androidx.appsearch.builtintypes.Thing
@NonNull List<String>

Returns an unmodifiable list of aliases, if any, for this item.

long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

@Nullable String

Returns a description of this item.

int

Returns the intrinsic score (or importance) of this item.

long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

@NonNull String

Returns the unique identifier for this item.

@Nullable String

Returns the URL for an image of this item.

@Nullable String

Returns the name of this item.

@NonNull String

Returns the namespace (or logical grouping) for this item.

@NonNull List<PotentialAction>

Returns the actions that can be taken on this object.

@Nullable String

Returns the deeplink URL of this item.

Public methods

getAccentColor

Added in 1.2.0-alpha01
public @Nullable Color getAccentColor()

Returns the accent colors of the sports organization as a Color, if set.

getSport

Added in 1.2.0-alpha01
public @NonNull String getSport()

Returns the sport of the sports organization, if set.