@RequiresApi(api = Build.VERSION_CODES.O)
@Document(name = "builtin:Event")
class Event : Thing

Known direct subclasses
SportsEvent

AppSearch document representing a SportsEvent entity.


AppSearch document representing an Event entity.

Summary

Public functions

Duration?

Returns the duration of the event as a Duration, if set.

Instant?

Returns the end date of the event as a Instant, if set.

String?

Returns the location of the event, if set.

ImageObject?

Returns the logo of the event, if set.

Instant

Returns the start date of the event as a Instant.

Inherited functions

From androidx.appsearch.builtintypes.Thing
(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 getCreationTimestampMillis, for this item.

String

Returns the unique identifier for this item.

String?

Returns the URL for an image of this item.

String?

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?

Returns the deeplink URL of this item.

Public functions

getDuration

Added in 1.2.0-alpha01
fun getDuration(): Duration?

Returns the duration of the event as a Duration, if set.

getEndDate

Added in 1.2.0-alpha01
fun getEndDate(): Instant?

Returns the end date of the event as a Instant, if set.

getLocation

Added in 1.2.0-alpha01
fun getLocation(): String?

Returns the location of the event, if set. The location can be a venue name, a street address, or a string representation of a latitude/longitude pair. For example, "Some Place" or "123 Main Street, Anytown, CA" or "37.7749,-122.4194".

getLogo

Added in 1.2.0-alpha01
fun getLogo(): ImageObject?

Returns the logo of the event, if set.

getStartDate

Added in 1.2.0-alpha01
fun getStartDate(): Instant

Returns the start date of the event as a Instant.