HandoffActivityData.Builder.SetExtras(PersistableBundle) 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.
Specifies which extras will be passed to the activity with name HandoffActivityData.getComponentName() in its launch intent.
[Android.Runtime.Register("setExtras", "(Landroid/os/PersistableBundle;)Landroid/app/HandoffActivityData$Builder;", "", ApiSince=37)]
public Android.App.HandoffActivityData.Builder SetExtras(Android.OS.PersistableBundle extras);
[<Android.Runtime.Register("setExtras", "(Landroid/os/PersistableBundle;)Landroid/app/HandoffActivityData$Builder;", "", ApiSince=37)>]
member this.SetExtras : Android.OS.PersistableBundle -> Android.App.HandoffActivityData.Builder
Parameters
- extras
- PersistableBundle
the extras of the activity to be launched. This value cannot be null.
Returns
the builder. This value cannot be null.
- Attributes
Remarks
Specifies which extras will be passed to the activity with name HandoffActivityData.getComponentName() in its launch intent. This information should allow the activity on the receiving devices to restore the state of the activity on the sending device.
If no extras are specified, the activity will be launched with an empty bundle for extras.
Any extras specified here must be safe to pass to another device, and thus should not reference any device-specific information such as file paths.
Android reference for android.app.HandoffActivityData.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.