Share via


NotificationListenerService.ReasonLockdown Field

Definition

Caution

This constant will be removed in the future version. Use Android.Service.Notification.NotificationCancelReason enum directly instead of this field.

Notification was canceled when entering lockdown mode, which turns off Smart Lock, fingerprint unlocking, and notifications on the lock screen.

[Android.Runtime.Register("REASON_LOCKDOWN", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Service.Notification.NotificationCancelReason enum directly instead of this field.", true)]
public const Android.Service.Notification.NotificationCancelReason ReasonLockdown = 23;
[<Android.Runtime.Register("REASON_LOCKDOWN", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Service.Notification.NotificationCancelReason enum directly instead of this field.", true)>]
val mutable ReasonLockdown : Android.Service.Notification.NotificationCancelReason

Field Value

Value = 23
Attributes

Remarks

Notification was canceled when entering lockdown mode, which turns off Smart Lock, fingerprint unlocking, and notifications on the lock screen. All the listeners shall ensure the canceled notifications are indeed removed on their end to prevent data leaking. When the user exits the lockdown mode, the removed notifications (due to lockdown) will be restored via NotificationListeners#notifyPostedLocked()

Java documentation for android.service.notification.NotificationListenerService.REASON_LOCKDOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to