Notification.Builder.SetExtras(Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set metadata for this notification.
[Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/app/Notification$Builder;", "GetSetExtras_Landroid_os_Bundle_Handler")]
public virtual Android.App.Notification.Builder SetExtras(Android.OS.Bundle? extras);
[<Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/app/Notification$Builder;", "GetSetExtras_Landroid_os_Bundle_Handler")>]
abstract member SetExtras : Android.OS.Bundle -> Android.App.Notification.Builder
override this.SetExtras : Android.OS.Bundle -> Android.App.Notification.Builder
Parameters
- extras
- Bundle
Bundle
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Set metadata for this notification. A reference to the Bundle is held for the lifetime of this Builder, and the Bundle's current contents are copied into the Notification each time build() is called. Replaces any existing extras values with those from the provided Bundle. Use addExtras(Bundle) to merge in metadata instead.
See also:
Android reference for android.app.Notification.Builder.setExtras.
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.