BroadcastOptions.ToBundle Method

Definition

Returns the created options as a Bundle, which can be passed to android.content.Context#sendBroadcast(android.content.Intent) Context.sendBroadcast(Intent) and related methods.

[Android.Runtime.Register("toBundle", "()Landroid/os/Bundle;", "GetToBundleHandler", ApiSince=34)]
public virtual Android.OS.Bundle ToBundle ();
[<Android.Runtime.Register("toBundle", "()Landroid/os/Bundle;", "GetToBundleHandler", ApiSince=34)>]
abstract member ToBundle : unit -> Android.OS.Bundle
override this.ToBundle : unit -> Android.OS.Bundle

Returns

Attributes

Remarks

Returns the created options as a Bundle, which can be passed to android.content.Context#sendBroadcast(android.content.Intent) Context.sendBroadcast(Intent) and related methods. Note that the returned Bundle is still owned by the BroadcastOptions object; you must not modify it, but can supply it to the sendBroadcast methods that take an options Bundle.

Java documentation for android.app.BroadcastOptions.toBundle().

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