Skip to main content
Version: 5.9.0

RegisterListenersForGroup

Registers the caller for RTT presence updates from the members of the given groupId. Caller must be a member of said group. If bidirectional is set to true, then also registers the targeted users for presence updates from the caller.

ServiceOperation
presenceREGISTER_LISTENERS_FOR_GROUP

Method Parameters

ParameterDescription
groupIdTarget group ID.
bidirectionalShould those profiles be mutually registered to listen to the current profile?

Usage

http://localhost:3000
string groupId = "aaa-bbb-ccc-ddd";
bool bidirectional = 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.RegisterListenersForGroup(platform, bidirectional, successCallback, failureCallback);
JSON Response
{
"data": {
"presence": [
{
"user": {
"id": "aaa-bbb-ccc-ddd",
"name": "",
"pic": null,
"cxs": [
"22284:fb416888-e76d-425d-a06d-a5529bdba8d9:id58ohotujj893gomctos244al"
]
},
"online": true,
"summaryFriendData": {},
"activity": {
"LOCATION": "POKER_TABLE",
"STATUS": "PLAYING_GAME"
}
}
]
},
"status": 200
}