Thing
@Document(name = "builtin:Thing")
public class Thing
AlarmInstance |
AppSearch document representing an |
Alarm |
AppSearch document representing an |
ContactPoint |
A group of contact information corresponding to a label such as "Home" or "Work". |
Event |
AppSearch document representing an |
ImageObject |
Represents an image file. |
MobileApplication |
Represents an installed app to enable searching using names, nicknames, and package names. |
Organization |
AppSearch document representing an |
Person |
AppSearch document representing a Person entity modeled after Person. |
StopwatchLap |
An AppSearch document representing a |
Stopwatch |
An AppSearch document representing a |
Timer |
AppSearch document representing a |
WebPage |
AppSearch document representing a |
SportsEvent |
AppSearch document representing a |
SportsOrganization |
AppSearch document representing a |
SportsTeam |
AppSearch document representing a |
AppSearch document representing a Thing, the most generic type of an item.
Summary
Nested types |
|---|
@Document.BuilderProducerBuilder for |
Public methods |
|
|---|---|
@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 |
@NonNull String |
getId()Returns the unique identifier for this item. |
@Nullable String |
Returns the URL for an image of this item. |
@Nullable String |
getName()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 |
getUrl()Returns the deeplink URL of this item. |
Public methods
getAlternateNames
public @NonNull List<String> getAlternateNames()
Returns an unmodifiable list of aliases, if any, for this item.
getCreationTimestampMillis
public long getCreationTimestampMillis()
Returns the creation timestamp, in milliseconds since Unix epoch, of this item.
getDescription
public @Nullable String getDescription()
Returns a description of this item.
getDocumentScore
public int getDocumentScore()
Returns the intrinsic score (or importance) of this item.
getDocumentTtlMillis
public long getDocumentTtlMillis()
Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.
getImage
@ExperimentalAppSearchApi
public @Nullable String getImage()
Returns the URL for an image of this item.
getNamespace
public @NonNull String getNamespace()
Returns the namespace (or logical grouping) for this item.
getPotentialActions
@ExperimentalAppSearchApi
public @NonNull List<PotentialAction> getPotentialActions()
Returns the actions that can be taken on this object.
getUrl
public @Nullable String getUrl()
Returns the deeplink URL of this item.
This item can be opened (or viewed) by creating an ACTION_VIEW intent with this URL as the setData uri.
| See also | |
|---|---|
Intent Structure |