Sdílet prostřednictvím


NotificationChannel.LockscreenVisibility Property

Definition

Returns whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form. -or- Sets whether notifications posted to this channel appear on the lockscreen or not, and if so, whether they appear in a redacted form.

public Android.App.NotificationVisibility LockscreenVisibility { [Android.Runtime.Register("getLockscreenVisibility", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setLockscreenVisibility", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getLockscreenVisibility", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setLockscreenVisibility", "(I)V", "", ApiSince=26)>]
member this.LockscreenVisibility : Android.App.NotificationVisibility with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form.

Java documentation for android.app.NotificationChannel.getLockscreenVisibility().

Property setter documentation:

Sets whether notifications posted to this channel appear on the lockscreen or not, and if so, whether they appear in a redacted form. See e.g. Notification#VISIBILITY_SECRET.

Only modifiable by the system and notification ranker.

Java documentation for android.app.NotificationChannel.setLockscreenVisibility(int).

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