Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     SetupPrivilegeHandler();
     HRM?.Start();
 }