Skip to main content
Version: 5.7.0

SetVisibility

Update the presence data visible field for the caller. An RTT event will be sent to any registered listeners of the caller with their updated presence info.

ServiceOperation
presenceSET_VISIBILITY

Method Parameters

ParameterDescription
visibleShould user appear in presence? True by default.

Usage

http://localhost:3000
bool visible = true;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PresenceService.SetVisibility(visible, successCallback, failureCallback);
JSON Response
{
"data": null,
"status": 200
}