InAppLocationAttachment

Represents a location attachment.

Represents a location attachment and inherits from InAppAttachment.

Properties

NameReturn TypeDescription
latitudeDoubleThe latitude of the location.
longitudeDoubleThe longitude of the location.
contentTypeStringThe content type of the attachment.

Functions

toJson

Converts the location attachment to a JSONObject.

Syntax: fun toJson(): JSONObject

Return: The JSONObject converted from the location attachment.

Companion Functions

fromJson

Converts a JSONObject to an location attachment.

Syntax: fun fromJson(jsonObject: JSONObject): InAppThread

Return: The location attachment converted from the JSONObject.

Parameters:

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.