Skip to main content

createLocationMessage

Description

info

Create a location message, including the latitude, longitude, and description of the location.

Note

Latitude and longitude need to be obtained by yourself.

Function Prototype


+ (OIMMessageInfo *)createLocationMessage:(NSString *)description
latitude:(double)latitude
longitude:(double)longitude;

Input Parameters

Parameter NameParameter TypeRequiredDescription
descriptionNSStringYesDescription
latitudedoubleYesLatitude
longitudedoubleYesLongitude

Return Result

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example


OIMMessageInfo *message = [OIMMessageInfo createLocationMessage:@"" latitude:0 longitude:0];