AgoraRtmPeerOnlineStatus Class Reference
Inherits from | NSObject |
---|---|
Declared in | AgoraRtmKit.h |
peerId
The user ID of the specified user.
@property (nonatomic, copy, nonnull) NSString *peerId
Declared In
AgoraRtmKit.h
isOnline
The online status of the peer. DEPRECATED as of v1.2.0.
Use state
instead.
@property (nonatomic, assign) BOOL isOnline
Discussion
- YES: The user is online (the user has logged in the Agora RTM system).
- NO: The user is offline (the user has logged out of the Agora RTM system, has not logged in, or has failed to logged in).
Declared In
AgoraRtmKit.h
state
The online state of the peer. See AgoraRtmPeerOnlineState.
@property (nonatomic, assign, readonly) AgoraRtmPeerOnlineState
state
Discussion
NOTE
-
The server will never return the
unreachable
state, if you query the online status of specified peers (queryPeersOnlineStatus). See also: AgoraRtmSubscriptionRequestBlock. -
The server may return the
unreachable
state, if you subscribe to the online status of specified peers (subscribePeersOnlineStatus). See also: PeersOnlineStatusChanged.
Declared In
AgoraRtmKit.h