ARTPresenceAction
Objective-C
enum ARTPresenceAction : NSUInteger {}
Swift
enum ARTPresenceAction : UInt, @unchecked Sendable
Describes the possible actions members in the presence set can emit.
-
A member is not present in the channel.
Declaration
Objective-C
ARTPresenceAbsent
Swift
case absent = 0
-
When subscribing to presence events on a channel that already has members present, this event is emitted for every member already present on the channel before the subscribe listener was registered.
Declaration
Objective-C
ARTPresencePresent
Swift
case present = 1
-
A new member has entered the channel.
Declaration
Objective-C
ARTPresenceEnter
Swift
case enter = 2
-
A member who was present has now left the channel. This may be a result of an explicit request to leave or implicitly when detaching from the channel. Alternatively, if a member’s connection is abruptly disconnected and they do not resume their connection within a minute, Ably treats this as a leave event as the client is no longer present.
Declaration
Objective-C
ARTPresenceLeave
Swift
case leave = 3
-
An already present member has updated their member data. Being notified of member data updates can be very useful, for example, it can be used to update the status of a user when they are typing a message.
Declaration
Objective-C
ARTPresenceUpdate
Swift
case update = 4