Notification.Builder.SetPublicVersion(Notification) Method

Definition

Supply a replacement Notification whose contents should be shown in insecure contexts (i.e.

[Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")]
public virtual Android.App.Notification.Builder SetPublicVersion(Android.App.Notification? n);
[<Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")>]
abstract member SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder
override this.SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder

Parameters

n
Notification

Notification: a replacement notification, presumably with some or all info redacted

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Supply a replacement Notification whose contents should be shown in insecure contexts (i.e. atop the secure lockscreen). See Notification.visibility and Notification.VISIBILITY_PUBLIC.

Android reference for android.app.Notification.Builder.setPublicVersion.

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