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