ICLocationAttachment

Represents location data that may be attached to a message.

Location data is comprised of latitude and longitude.

fromJSON

Returns a new ICLocationAttachment instantiated from data contained within a JSONObject. The JSONObject must contain valid location attachment data.

  Syntax: static ICLocationAttachment fromJSON(JSONObject jsonObj)

  Return Value: A new ICLocationAttachment instance, or null if jsonObj is null.

  Parameters:

ParameterTypeDescription
jsonObjJSONObjectA JSONObject instance containing valid location attachment data.

getLatitude

Gets the latitude value.

  Syntax: double getLatitude()

  Return Value: The latitude value.

getLongitude

Gets the longitude value.

  Syntax: double getLongitude()

  Return Value: The longitude value.

setLatitude

Sets the latitude value.

  Syntax: void setLatitude(double latitude)

  Parameters:

ParameterTypeDescription
latitudedoubleSpecifies the latitude value.

setLongitude

Sets the longitude value.

  Syntax: void setLongitude(double longitude)

  Parameters:

ParameterTypeDescription
longitudedoubleSpecifies the longitude value.