MessageBeaconInfoContent

@JsonClass(generateAdapter = true)
data class MessageBeaconInfoContent(    val msgType: String = MessageType.MSGTYPE_BEACON_INFO,     @Json(name = "body") val body: String = "",     @Json(name = "m.relates_to") val relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") val newContent: Content? = null,     @Json(name = "description") val description: String? = null,     @Json(name = "timeout") val timeout: Long? = null,     @Json(name = "live") val isLive: Boolean? = null,     @Json(name = "org.matrix.msc3488.ts") val unstableTimestampMillis: Long? = null,     @Json(name = "m.ts") val timestampMillis: Long? = null,     @Json(name = "org.matrix.msc3488.asset") val unstableLocationAsset: LocationAsset = LocationAsset(LocationAssetType.SELF),     @Json(name = "m.asset") val locationAsset: LocationAsset? = null) : MessageContent

Content of the state event of type EventType.STATE_ROOM_BEACON_INFO

It contains general info related to a live location share. Locations are sent in a different message related to the state event. See MessageBeaconLocationDataContent

Constructors

Link copied to clipboard
fun MessageBeaconInfoContent(    msgType: String = MessageType.MSGTYPE_BEACON_INFO,     @Json(name = "body") body: String = "",     @Json(name = "m.relates_to") relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") newContent: Content? = null,     @Json(name = "description") description: String? = null,     @Json(name = "timeout") timeout: Long? = null,     @Json(name = "live") isLive: Boolean? = null,     @Json(name = "org.matrix.msc3488.ts") unstableTimestampMillis: Long? = null,     @Json(name = "m.ts") timestampMillis: Long? = null,     @Json(name = "org.matrix.msc3488.asset") unstableLocationAsset: LocationAsset = LocationAsset(LocationAssetType.SELF),     @Json(name = "m.asset") locationAsset: LocationAsset? = null)

Functions

Link copied to clipboard
fun getBestLocationAsset(): LocationAsset
Link copied to clipboard
fun getBestTimestampMillis(): Long?

Properties

Link copied to clipboard
open override val body: String
Link copied to clipboard
val description: String? = null

Optional description of the beacon.

Link copied to clipboard
val isLive: Boolean? = null

Should be set true to start sharing beacon.

Link copied to clipboard
val locationAsset: LocationAsset? = null
Link copied to clipboard
open override val msgType: String

Local message type, not from server.

Link copied to clipboard
open override val newContent: Content? = null
Link copied to clipboard
open override val relatesTo: RelationDefaultContent? = null
Link copied to clipboard
val timeout: Long? = null

Beacon should be considered as inactive after this timeout as milliseconds.

Link copied to clipboard
val timestampMillis: Long? = null
Link copied to clipboard
val unstableLocationAsset: LocationAsset

Live location asset type.

Link copied to clipboard
val unstableTimestampMillis: Long? = null

Beacon creation timestamp.