hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMPresence Class Reference

Inherits com.hyphenate.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 com.hyphenate.chat.EMPresence.getExpiryTime ( )
Returns
The expiration time of the presence subscription.

◆ getExt()

String com.hyphenate.chat.EMPresence.getExt ( )
Returns
Gets the presence extension information. A custom presence can be set with EMPresenceManager#publishPresence(String, EMCallBack).

◆ getLatestTime()

long com.hyphenate.chat.EMPresence.getLatestTime ( )
Returns
The presence update time, which is generated by the server.

◆ getPublisher()

String com.hyphenate.chat.EMPresence.getPublisher ( )
Returns
The user ID of the presence publisher.

◆ getStatusList()

Map< String, Integer > com.hyphenate.chat.EMPresence.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: