Agora RTC Objective-C API Reference  Refactor
Properties
AgoraRtmPresenceEvent Class Reference

Inherits <NSObject>.

Properties

AgoraRtmPresenceEventType type
 
AgoraRtmChannelType channelType
 
NSString * channelName
 
NSString * publisher
 
NSDictionary< NSString *, NSString * > * states
 
AgoraRtmPresenceIntervalInfointerval
 
NSArray< AgoraRtmUserState * > * snapshot
 
unsigned long long timestamp
 

Property Documentation

◆ type

- (AgoraRtmPresenceEventType) type
readwritenonatomicassign

Indicate presence event type

◆ channelType

- (AgoraRtmChannelType) channelType
readwritenonatomicassign

Which channel type, RTM_CHANNEL_TYPE_STREAM or RTM_CHANNEL_TYPE_MESSAGE

◆ channelName

- (NSString*) channelName
readwritenonatomiccopy

The channel which the presence event was triggered

◆ publisher

- (NSString*) publisher
readwritenonatomiccopy

The user who triggered this event.

◆ states

- (NSDictionary<NSString *, NSString *>*) states
readwritenonatomiccopy

The user states

◆ interval

- (AgoraRtmPresenceIntervalInfo*) interval
readwritenonatomiccopy

Only valid when in interval mode

◆ snapshot

- (NSArray<AgoraRtmUserState *>*) snapshot
readwritenonatomiccopy

Only valid when receive snapshot event

◆ timestamp

- (unsigned long long) timestamp
readwritenonatomicassign

RTM server UTC time