コード例 #1
0
    /// <summary>
    /// uses BlockingPanel
    /// </summary>
    public async UniTask Start(UniTask operation)
    {
        await BlockingPanel.Show();

        try
        {
            await operation;
            BlockingPanel.Hide();
        }
        catch (BadUserInputException) //todo test if you can get bad user input exc here
        {
            BlockingPanel.Done("operation is not allowed");
            throw;
        }
    }
コード例 #2
0
ファイル: SignInPanel.cs プロジェクト: xAdamQ/Basra
 private void OnHuaweiLoginFailure(HMSException exc)
 {
     BlockingPanel.Done("failed huawei login with exception: " + exc);
 }