Пример #1
0
        private async void loginBtn_Clicked(object sender, EventArgs e)
        {
            string userId = usernameId.Text;

            if (userId != null)
            {
                sinchService.StartSinchClient(userId);
                while (!IsSinchStarted())
                {
                    progress.Text = "Please wait app is starting to sinch service...";
                    await Task.Delay(500);
                }

                Debug.WriteLine(sinchService.IsSinchClientStarted().ToString());
                LaunchReciepientAsync();
            }
        }
Пример #2
0
        void OnButtonClicked(object sender, EventArgs args)
        {
            if (sinchService.IsSinchClientStarted())
            {
                Debug.WriteLine("SinchClient started");
                Label label = new Label
                {
                    Text     = "Sinch Client Started",
                    FontSize = 12
                };
                stack.Children.Add(label);
            }

            sinchService.CallVoice("*****@*****.**");
        }