RCRealTimeLocationObserver Protocol Reference

Conforms to NSObject
Declared in RCRealTimeLocationManager.h

Overview

实时位置共享监听器

– onRealTimeLocationStatusChange:

实时位置共享状态改变的回调

- (void)onRealTimeLocationStatusChange:(RCRealTimeLocationStatus)status

Parameters

status

当前实时位置共享的状态

Discussion

实时位置共享状态改变的回调

Declared In

RCRealTimeLocationManager.h

– onReceiveLocation:fromUserId:

参与者位置发生变化的回调

- (void)onReceiveLocation:(CLLocation *)location fromUserId:(NSString *)userId

Parameters

location

参与者的当前位置

userId

位置发生变化的参与者的用户 ID

Discussion

参与者位置发生变化的回调

Warning: 已废弃,请改用 onReceiveLocation:type:fromUserId: 接口。

Declared In

RCRealTimeLocationManager.h

– onReceiveLocation:type:fromUserId:

参与者位置发生变化的回调

- (void)onReceiveLocation:(CLLocation *)location type:(RCRealTimeLocationType)type fromUserId:(NSString *)userId

Parameters

location

参与者的当前位置

type

坐标体系类型

userId

位置发生变化的参与者的用户 ID

Discussion

参与者位置发生变化的回调

Declared In

RCRealTimeLocationManager.h

– onParticipantsJoin:

有参与者加入实时位置共享的回调

- (void)onParticipantsJoin:(NSString *)userId

Parameters

userId

加入实时位置共享的参与者的用户 ID

Discussion

有参与者加入实时位置共享的回调

Declared In

RCRealTimeLocationManager.h

– onParticipantsQuit:

有参与者退出实时位置共享的回调

- (void)onParticipantsQuit:(NSString *)userId

Parameters

userId

退出实时位置共享的参与者的用户 ID

Discussion

有参与者退出实时位置共享的回调

Declared In

RCRealTimeLocationManager.h

– onUpdateLocationFailed:

更新位置信息失败的回调

- (void)onUpdateLocationFailed:(NSString *)description

Parameters

description

失败信息

Discussion

更新位置信息失败的回调

Declared In

RCRealTimeLocationManager.h

– onStartRealTimeLocationFailed:

发起实时位置共享失败后执行

- (void)onStartRealTimeLocationFailed:(long)messageId

Parameters

messageId

发起失败的消息 ID

Discussion

发起实时位置共享失败后执行

Declared In

RCRealTimeLocationManager.h