Photon Chat API Constants
- Source:
- Photon-Javascript_SDK.js, line 4092
Members
-
<static, readonly> UserStatus
Contains commonly used status values for Photon.Chat.ChatClient#setUserStatus.You can define your own.
While "online"(Online and up), the status message will be sent to anyone who has you on his friend list.
Define custom online status values as you like with these rules:
0: Means "offline".It will be used when you are not connected. In this status, there is no status message.
1: Means "invisible" and is sent to friends as "offline". They see status 0, no message but you can chat.
2: And any higher value will be treated as "online". Status can be set. -
- Source:
- Photon-Javascript_SDK.js, line 4146
Properties:
Name Type Description Offlinenumber Offline. Invisiblenumber Offline. Be invisible to everyone. Sends no message. Onlinenumber Online and available. Awaynumber Online but not available. Dndnumber Do not disturb. Lfgnumber Looking For Game / Group. Could be used when you want to be invited or do matchmaking. Playingnumber Could be used when in a room, playing.
Methods
-
<static> UserStatusToName(status) → {string}
Converts Photon.Chat.Constants.UserStatus element to string name.
-
Parameters:
Name Type Description statusPhoton.Chat.Constants.UserStatus User status enum element. - Source:
- Photon-Javascript_SDK.js, line 4185
Returns:
Specified element name or undefined if not found.- Type
- string