startRealTimeLocation

public abstract RealTimeLocationErrorCode startRealTimeLocation(ConversationType conversationType, String targetId)

发起位置共享。

Return

是否开启成功。对应具体的错误码 RealTimeLocationErrorCode。

Parameters

conversationType

发起位置共享的会话类型。

targetId

发起位置共享的会话 id。


public abstract RealTimeLocationErrorCode startRealTimeLocation(ConversationType conversationType, String targetId, MessagePushConfig messagePushConfig)

发起位置共享,并为发起消息设置推送配置。

推送配置仅作用于实时位置共享发起消息 RC:RLStart,不会用于位置状态、加入或退出消息。

Return

是否开启成功。对应具体的错误码 RealTimeLocationErrorCode。

Since

5.46.0

Parameters

conversationType

发起位置共享的会话类型。

targetId

发起位置共享的会话 id。

messagePushConfig

发起消息的推送配置,可为 null。