SetVideoCall() public static method

public static SetVideoCall ( bool isCallInitiator, User mainUser, List opponents, VideoChatMessage videoMessage, bool isVideoCall = true ) : void
isCallInitiator bool
mainUser User
opponents List
videoMessage VideoChatMessage
isVideoCall bool
return void
Exemplo n.º 1
0
        private async void VideoCallCommandExecute(object obj)
        {
            if (IsBusy)
            {
                return;
            }

            this.IsBusy = true;
            var users = Users.Where(u => u.IsSelected).Select(u => u.User).ToList();

            if (users.Count > 0 && users.Count < 2)
            {
                App.SetVideoCall(true, App.MainUser, users, null);
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Error", "Please select one User to start call.", "Ok");
            }

            this.IsBusy = false;
        }
Exemplo n.º 2
0
 private void IncomingCallMethod(object sender, IncomingCall incomingCall)
 {
     Device.BeginInvokeOnMainThread(() =>
                                    App.SetVideoCall(false, incomingCall.Caller, incomingCall.Opponents, incomingCall.VideoChatMessage));
 }