private void InvokeIncomingEvent(object sender, VideoChatMessage e, User callerUser, List <User> opponents)
        {
            var handler = IncomingCallMessageEvent;

            if (handler != null)
            {
                var incomingCall = new IncomingCall()
                {
                    VideoChatMessage = e,
                    Caller           = callerUser,
                    Opponents        = opponents
                };

                handler.Invoke(sender, incomingCall);
            }

            Device.BeginInvokeOnMainThread(() =>
            {
                callOutgoingAudioTimer.Stop();
                callIncomingAudioTimer.Start();
            });
        }
Esempio n. 2
0
 private void IncomingCallMethod(object sender, IncomingCall incomingCall)
 {
     Device.BeginInvokeOnMainThread(() =>
                                    App.SetVideoCall(false, incomingCall.Caller, incomingCall.Opponents, incomingCall.VideoChatMessage));
 }