Thing
@Document(name = "builtin:Thing")
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". |
ImageObject |
Represents an image file. |
MobileApplication |
Represents an installed app to enable searching using names, nicknames, and package names. |
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 |
AppSearch document representing a Thing, the most generic type of an item.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
(Mutable)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. |
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 |
String |
getId()Returns the unique identifier for this item. |
String? |
Returns the URL for an image of this item. |
String? |
getName()Returns the name of this item. |
String |
Returns the namespace (or logical grouping) for this item. |
(Mutable)List<PotentialAction!> |
Returns the actions that can be taken on this object. |
String? |
getUrl()Returns the deeplink URL of this item. |
Public functions
getAlternateNames
fun getAlternateNames(): (Mutable)List<String!>
Returns an unmodifiable list of aliases, if any, for this item.
getCreationTimestampMillis
fun getCreationTimestampMillis(): Long
Returns the creation timestamp, in milliseconds since Unix epoch, of this item.
getDocumentScore
fun getDocumentScore(): Int
Returns the intrinsic score (or importance) of this item.
getDocumentTtlMillis
fun getDocumentTtlMillis(): Long
Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.
getImage
@ExperimentalAppSearchApi
fun getImage(): String?
Returns the URL for an image of this item.
getNamespace
fun getNamespace(): String
Returns the namespace (or logical grouping) for this item.
getPotentialActions
@ExperimentalAppSearchApi
fun getPotentialActions(): (Mutable)List<PotentialAction!>
Returns the actions that can be taken on this object.
getUrl
fun getUrl(): String?
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 |