API reference

RichPresence Class

Modifiers: final
Rich Presence has been deprecated in favor of Group Presence.

Signature

class RichPresence

Constructors

RichPresence ()
Signature
constructor()
Returns
RichPresence

Methods

clear ()
DeprecatedGroupPresence.clear()
This method can return the following status codes: common status codes in RichPresenceStatusCode.
Signature
suspend fun clear()
getDestinations ( coroutineScope )
DeprecatedGroupPresence.get_destinations()
Gets all the Destination that the presence can be set to
This method can return the following status codes: common status codes in RichPresenceStatusCode.
Signature
fun getDestinations(coroutineScope: CoroutineScope): PagedResults<Destination>
Parameters
coroutineScope: CoroutineScope
Returns
PagedResults  A list of Destination objects.
set ( richPresenceOptions )
DeprecatedGroupPresence.set()
This method can return the following status codes: common status codes in RichPresenceStatusCode.
Signature
suspend fun set(richPresenceOptions: RichPresenceOptions)
Parameters
richPresenceOptions: RichPresenceOptions