-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum PresenceMessage.ActionDescribes the possible actions members in the presence set can emit.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description absentA member is not present in the channel.
Spec: TP2
presentWhen 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.
Spec: TP2
enterA new member has entered the channel.
Spec: TP2
leaveA 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.
Spec: TP2
updateAn 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.
Spec: TP2
-
Method Summary
Modifier and Type Method Description intgetValue()static PresenceMessage.ActionfindByValue(int value)static Array<PresenceMessage.Action>values()static PresenceMessage.ActionvalueOf(String name)-
-
Method Detail
-
getValue
int getValue()
-
findByValue
static PresenceMessage.Action findByValue(int value)
-
values
static Array<PresenceMessage.Action> values()
-
valueOf
static PresenceMessage.Action valueOf(String name)
-
-
-
-