Chat SDK for Unity and Windows v1.2.0
Properties | List of all members
AgoraChat.Presence Class Reference
Inheritance diagram for AgoraChat.Presence:

Properties

string Publisher [get, set]
 
List< PresenceDeviceStatusStatusList [get, set]
 
string StatusDescription [get, set]
 
long LatestTime [get, set]
 
long ExpiryTime [get, set]
 

Detailed Description

The presence property class that contains presence properties, including the publisher's user ID and current presence state, and the platform used by the online device, as well as the presence's extension information, update time, and subscription expiration time.

Property Documentation

◆ Publisher

string AgoraChat.Presence.Publisher
getset

Gets the user ID of the presence publisher.

Returns
The user ID of the presence publisher.

◆ StatusList

List<PresenceDeviceStatus> AgoraChat.Presence.StatusList
getset

Gets the details of the current presence state. The presence state details are a key-value structure, where the key can be "ios", "android", "linux", "win", or "webim", and the value is the current presence state of the publisher.

Returns
The details of the current presence state.

◆ StatusDescription

string AgoraChat.Presence.StatusDescription
getset

Gets the presence status description information.

Returns
The presence status description information.

◆ LatestTime

long AgoraChat.Presence.LatestTime
getset

Gets the presence update time.

Returns
The Unix timestamp when the presence state is updated. The unit is second.

◆ ExpiryTime

long AgoraChat.Presence.ExpiryTime
getset

Gets the expiration time of the presence subscription.

Returns
The Unix timestamp when the presence subscription expires. The unit is second.