Share via


Notification.Style.Build Method

Definition

Calls android.app.Notification.Builder#build() on the Builder this Style is attached to.

[Android.Runtime.Register("build", "()Landroid/app/Notification;", "GetBuildHandler")]
public virtual Android.App.Notification? Build ();
[<Android.Runtime.Register("build", "()Landroid/app/Notification;", "GetBuildHandler")>]
abstract member Build : unit -> Android.App.Notification
override this.Build : unit -> Android.App.Notification

Returns

the fully constructed Notification.

Attributes

Remarks

Calls android.app.Notification.Builder#build() on the Builder this Style is attached to.

Note: Calling build() multiple times returns the same Notification instance, so reusing a builder to create multiple Notifications is discouraged.

Java documentation for android.app.Notification.Style.build().

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