Chat SDK for Android v1.3.1
agora java chat SDK
Public Member Functions | List of all members
io.agora.chat.Presence Class Reference

Inherits io.agora.chat.EMBase< T >.

Public Member Functions

String getPublisher ()
 
Map< String, Integer > getStatusList ()
 
String getExt ()
 
long getLatestTime ()
 
long getExpiryTime ()
 

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.

Member Function Documentation

◆ getExpiryTime()

long io.agora.chat.Presence.getExpiryTime ( )
Returns
The expiration time of the presence subscription.

◆ getExt()

String io.agora.chat.Presence.getExt ( )
Returns
Gets the presence extension information. A custom presence can be set with PresenceManager#publishPresence(String, CallBack).

◆ getLatestTime()

long io.agora.chat.Presence.getLatestTime ( )
Returns
The presence update time, which is generated by the server.

◆ getPublisher()

String io.agora.chat.Presence.getPublisher ( )
Returns
The user ID of the presence publisher.

◆ getStatusList()

Map< String, Integer > io.agora.chat.Presence.getStatusList ( )
Returns
The current presence status of all devices of the publisher. key:The device ID of the publisher, which is in the format of (device platform)_xxxxxxx,such as "android_34f0bbf7-8eab-46db-b572-b56b02405690". value:The current presence state of the publisher, 0 is offline, 1 is online.

The documentation for this class was generated from the following file: