Dela via


ActivityOptions.ToBundle Method

Definition

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

[Android.Runtime.Register("toBundle", "()Landroid/os/Bundle;", "GetToBundleHandler")]
public virtual Android.OS.Bundle? ToBundle ();
[<Android.Runtime.Register("toBundle", "()Landroid/os/Bundle;", "GetToBundleHandler")>]
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#startActivity(android.content.Intent, android.os.Bundle) Context.startActivity(Intent, Bundle) and related methods. Note that the returned Bundle is still owned by the ActivityOptions object; you must not modify it, but can supply it to the startActivity methods that take an options Bundle.

Java documentation for android.app.ActivityOptions.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