social-common / pragma.presence / PresencePlugin / updateRichPresenceFromBackend /

updateRichPresenceFromBackend #

abstract fun updateRichPresenceFromBackend(socialId: <ERROR CLASS>, gameShardId: <ERROR CLASS>, currentPresence: Presence.Presence?, backendRequestExt: ExtRichPresenceBackendRequest): ExtRichPresence

Called when a game server or backend plugin or custom service attempts to update a payer’s presence. Use to determine how the player’s presence should be updated. The player’s current presence will be null if this action is creating their presence.

Used by:

  • FriendService.setPresencePartnerV1

Parameters #

socialId

The social identifier for the player.

gameShardId

The game shard identifier the presence is associated with.

currentPresence

The current presence value for this player and game shard id.

backendRequestExt

The custom-defined ext sent by the game server or backend plugin or custom service.