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
constructor(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

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

Link copied to clipboard

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.