game-common / pragma.friend / PresenceApi /

PresenceApi #

class PresenceApi(service: Service)

The backend entrypoint for sending service RPCs to the PresenceService.

Constructors #

PresenceApi

fun PresenceApi(service: Service)

Functions #

NameSummary

getForPlayer

suspend fun getForPlayer(socialId: <ERROR CLASS>): PragmaResult<FriendCommon.PresencesForSocialId, PragmaFailure>

Request to get the presences for a player.

setRichPresence

suspend fun setRichPresence(playerId: <ERROR CLASS>, requestExt: ExtRichPresenceBackendRequest): PragmaResult<Unit, PragmaFailure>

Request to set the rich presence for a player.