void ButtonSetPresenceStateHandler() { Dictionary <string, object> state = new Dictionary <string, object>(); state.Add("k1", "v1"); pubnub.SetPresenceState().Channels(listChannels).ChannelGroups(listChannelGroups).State(state).Async((result, status) => { if (status.Error) { Debug.Log(string.Format("In Example, SetPresenceState Error: {0} {1} {2}", status.StatusCode, status.ErrorData, status.Category)); } else { Debug.Log(string.Format("DateTime {0}, In Example SetPresenceState, result:", DateTime.UtcNow)); if (result != null) { ShowStateResult(result.StateByChannels); } } }); }