Enum ChatState
- All Implemented Interfaces:
Serializable
,Comparable<ChatState>
Represents the current state of a users interaction with another user. Implemented according to
XEP-0085.
-
Enum Constant Summary
Enum ConstantDescriptionUser is actively participating in the chat session.User is composing a message.User has effectively ended their participation in the chat session.User has not been actively participating in the chat session.User had been composing but now has stopped. -
Method Summary
-
Enum Constant Details
-
active
User is actively participating in the chat session. -
composing
User is composing a message. -
paused
User had been composing but now has stopped. -
inactive
User has not been actively participating in the chat session. -
gone
User has effectively ended their participation in the chat session.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-