Пример #1
0
        private void PrivilegeResponseHandler(object sender, RequestResponseEventArgs e)
        {
            if (e.cause == CallCause.Error)
            {
                return;
            }

            switch (e.result)
            {
            case RequestResult.AllowForever:
                CreateHRM();
                HRM.Start();
                break;

            case RequestResult.DenyForever:
            case RequestResult.DenyOnce:
                break;
            }
        }
Пример #2
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     SetupPrivilegeHandler();
     HRM?.Start();
 }