public async override void OnReceive(Context context, Intent intent)
 {
     if (intent.Action == Intent.ActionApplicationRestrictionsChanged)
     {
         await AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(context);
     }
 }
Пример #2
0
 protected override void OnResume()
 {
     base.OnResume();
     if (_deviceActionService.SupportsNfc())
     {
         try
         {
             _messagingService.Send("resumeYubiKey");
         }
         catch { }
     }
     var setRestrictions = AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this);
 }
Пример #3
0
 protected override void OnResume()
 {
     base.OnResume();
     Xamarin.Essentials.Platform.OnResume();
     AppearanceAdjustments();
     if (_deviceActionService.SupportsNfc())
     {
         try
         {
             _messagingService.Send("resumeYubiKey");
         }
         catch { }
     }
     AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this)
     .GetAwaiter()
     .GetResult();
 }
Пример #4
0
        protected override void OnResume()
        {
            base.OnResume();

            if (Intent.Data?.Scheme == "cozypass")
            {
                OnOpenURL(Intent.DataString);
            }

            if (_deviceActionService.SupportsNfc())
            {
                try
                {
                    _messagingService.Send("resumeYubiKey");
                }
                catch { }
            }
            var setRestrictions = AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this);
        }