Location

data class Location(    val longitude: Double,     val latitude: Double,     val label: String? = null,     val rawData: String = "") : ContentData

Contains a location pin and an optional label, which can be used to enhance delivery notifications or connect recipients to physical experiences you offer. Represents the twilio/location content type.

Constructors

Link copied to clipboard
fun Location(    longitude: Double,     latitude: Double,     label: String? = null,     rawData: String = "")

Properties

Link copied to clipboard
val label: String? = null

Label to be displayed to the end user alongside the location pin.

Link copied to clipboard
val latitude: Double

The latitude value of the location pin you want to send.

Link copied to clipboard
val longitude: Double

The longitude value of the location pin you want to send.

Link copied to clipboard
open override val rawData: String

Full data as stringified JSON. Can be used for new content types and fields which are not supported in the current version of Conversations SDK.