Beispiel #1
0
        private async Task ExternalDataChangedAsync(string sourceName)
        {
            if (!CheckIsUserSpeaking(true))
            {
                return;
            }

            AsynCallResult openDataResult = await _sdkService.OpenSharedCamera(sourceName);

            if (!HasErrorMsg(openDataResult.m_rc.ToString(), openDataResult.m_message))
            {
                _cancelSharingAction = async() =>
                {
                    AsynCallResult result = await _sdkService.CloseSharedCamera();

                    if (!HasErrorMsg(result.m_rc.ToString(), result.m_message))
                    {
                        SharingVisibility       = Visibility.Visible;
                        CancelSharingVisibility = Visibility.Collapsed;
                    }
                };

                SharingVisibility       = Visibility.Collapsed;
                CancelSharingVisibility = Visibility.Visible;
            }
        }