Skip to main content

createLocationMessage

Feature Introduction

Description

Creates a location message, containing the latitude and longitude of the location.

Note

The latitude and longitude need to be obtained independently.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
descriptionNSStringYesDescription
latitudedoubleYesLatitude
longitudedoubleYesLongitude

Return Value

NameTypeDescription
messageOIMMessageInfoSuccess Return

Code Example


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