ICLocationAttachment

This class exposes data relating to location attachments that are received through In-app or Push, also used to send a location to outgoing In-app messages.

getLatitude

This method is used to get the latitude of the location passed in a message.

Syntax: double getLatitude()

Return Value: Returns the latitude of the location.

getLongitude

This method is used to get the longitude of the location passed in a message.

Syntax: double getLongitude()

Return Value: Returns the longitude of the location.

setLatitude

This method is used to set the latitude of the location passed in a message.

Syntax: void setLatitude(double latitude)

Parameters:

Parameter

Type

Description

latitude

double

Specifies the latitude of the location.


setLongitude

This method is used to set the longitude of the location passed in a message.

Syntax: void setLongitude(double longitude)

Parameters:

Parameter

Type

Description

longitude

double

Specifies the longitude of the location.