HyphenateChatSDK  4.6.0
构造函数 | 属性 | 所有成员列表
EMLocationMessageBody类 参考

#import <EMLocationMessageBody.h>

类 EMLocationMessageBody 继承关系图:
EMMessageBody

构造函数

(instancetype _Nonnull) - initWithLatitude:longitude:address:
 
(instancetype _Nonnull) - initWithLatitude:longitude:address:buildingName:
 
(instancetype _Nonnull) - NS_UNAVAILABLE
 

属性

double latitude
 
double longitude
 
NSString *_Nullable address
 
NSString *_Nullable buildingName
 
- 属性 继承自 EMMessageBody
EMMessageBodyType type
 
NSUInteger operationTime
 
NSString * operatorId
 
NSUInteger operatorCount
 

详细描述

EMLocationMessageBody.h 位置消息体

作者
Hyphenate
版本
3.00

位置消息体。

函数文档

- (instancetype _Nonnull) initWithLatitude: (double)  aLatitude
longitude: (double)  aLongitude
address: (NSString *_Nullable)  aAddress 

初始化位置消息体

参数
aLatitude纬度。
aLongitude经度。
aAddress地理位置信息。
返回
位置消息体实例。
- (instancetype _Nonnull) initWithLatitude: (double)  aLatitude
longitude: (double)  aLongitude
address: (NSString *_Nullable)  aAddress
buildingName: (NSString *_Nullable)  aBuildingName 

初始化位置消息体

参数
aLatitude纬度
aLongitude经度
aAddress地理位置信息
aBuildingName建筑物名称
返回
位置消息体实例

属性说明

- (NSString* _Nullable) address
readwritenonatomiccopy

地址信息。

- (NSString* _Nullable) buildingName
readwritenonatomiccopy

建筑物名称

- (double) latitude
readwritenonatomicassign

纬度。

- (double) longitude
readwritenonatomicassign

经度。


该类的文档由以下文件生成: