Skip to main content
Version: 5.7.0

SysInitializePresence

tip

This method is available in Cloud Code scripts only.

Creates or updates the presence of profileId. visible is optional (defaults to true). activity is optional. expirySecs is optional (defaults to brainCloud property presPxExpirySecs). If activity is included, the same restrictions apply as those outlined in UpdateActivity.

ServiceOperation
presenceSYS_INITIALIZE_PRESENCE

Method Parameters

ParameterDescription
profileIdTarget profile ID.
visibleShould user appear in presence? True by default.
activityPresence activity record json.
expirySecsTime before this activity record expires.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": null,
"status": 200
}