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:

Parameter

Type

Description

jsonObj

JSONObject

A 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:

Parameter

Type

Description

latitude

double

Specifies the latitude value.

setLongitude


Sets the longitude value.

  Syntax: void setLongitude(double longitude)

  Parameters:

Parameter

Type

Description

longitude

double

Specifies the longitude value.