internal RealTimeEventListenerHelper SetOnP2PDisconnectedCallback( Action <NativeRealTimeRoom, MultiplayerParticipant> callback) { C.RealTimeEventListenerHelper_SetOnP2PDisconnectedCallback(SelfPtr(), InternalOnP2PDisconnectedCallback, Callbacks.ToIntPtr(callback)); return(this); }
internal RealTimeEventListenerHelper SetOnRoomConnectedSetChangedCallback( Action <NativeRealTimeRoom> callback) { C.RealTimeEventListenerHelper_SetOnRoomConnectedSetChangedCallback(SelfPtr(), InternalOnRoomConnectedSetChangedCallback, ToCallbackPointer(callback)); return(this); }
internal RealTimeEventListenerHelper SetOnDataReceivedCallback( Action <NativeRealTimeRoom, MultiplayerParticipant, byte[], bool> callback) { IntPtr onData = Callbacks.ToIntPtr(callback); Logger.d("OnData Callback has addr: " + onData.ToInt64()); C.RealTimeEventListenerHelper_SetOnDataReceivedCallback(SelfPtr(), InternalOnDataReceived, onData); return(this); }
protected override void CallDispose(HandleRef selfPointer) { C.RealTimeEventListenerHelper_Dispose(selfPointer); }
internal static RealTimeEventListenerHelper Create() { return(new RealTimeEventListenerHelper(C.RealTimeEventListenerHelper_Construct())); }