Пример #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
 private void OnHuaweiLoginFailure(HMSException exc)
 {
     BlockingPanel.Done("failed huawei login with exception: " + exc);
 }