Example #1
0
        private async void AnsCallBtn_Clicked(object sender, EventArgs e)
        {
            try
            {
                var action = await DisplayActionSheet("Operation", "Cancel", null, Enum.GetNames(typeof(CallAnswerType)));

                Log.Debug(Globals.LogTag, "Action: " + action);
                if (action != null)
                {
                    Log.Debug(Globals.LogTag, "Answer call start .. incoming call id  = " + incomingCallHandle);
                    CallAnswerType type = (CallAnswerType)Enum.Parse(typeof(CallAnswerType), action);
                    uint           x    = await call.AnswerCall(incomingCallHandle, type);

                    Log.Debug(Globals.LogTag, "Answer call end, call id = " + x);
                }
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "AnswerCall ,exception = " + ex.ToString());
            }
        }