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
AgoraRtmPresenceIntervalInfo * | interval
NSArray< AgoraRtmUserState * > * | snapshot
unsigned long long | timestamp

## Property Documentation

## ◆ type

- (AgoraRtmPresenceEventType) type
| read write nonatomic assign

Indicate presence event type

## ◆ channelType

- (AgoraRtmChannelType) channelType
| read write nonatomic assign

Which channel type, RTM_CHANNEL_TYPE_STREAM or RTM_CHANNEL_TYPE_MESSAGE

## ◆ channelName

- (NSString*) channelName
| read write nonatomic copy

The channel which the presence event was triggered

## ◆ publisher

- (NSString*) publisher
| read write nonatomic copy

The user who triggered this event.

## ◆ states

- (NSDictionary<NSString *, NSString *>*) states
| read write nonatomic copy

The user states

## ◆ interval

- (AgoraRtmPresenceIntervalInfo*) interval
| read write nonatomic copy

Only valid when in interval mode

## ◆ snapshot

- (NSArray<AgoraRtmUserState *>*) snapshot
| read write nonatomic copy

Only valid when receive snapshot event

## ◆ timestamp

- (unsigned long long) timestamp
| read write nonatomic assign

RTM server UTC time