共用方式為


Intent.ReplaceExtras Method

Definition

Overloads

ReplaceExtras(Intent)

Completely replace the extras in the Intent with the extras in the given Intent.

ReplaceExtras(Bundle)

Completely replace the extras in the Intent with the given Bundle of extras.

ReplaceExtras(Intent)

Completely replace the extras in the Intent with the extras in the given Intent.

[Android.Runtime.Register("replaceExtras", "(Landroid/content/Intent;)Landroid/content/Intent;", "GetReplaceExtras_Landroid_content_Intent_Handler")]
public virtual Android.Content.Intent ReplaceExtras (Android.Content.Intent src);
[<Android.Runtime.Register("replaceExtras", "(Landroid/content/Intent;)Landroid/content/Intent;", "GetReplaceExtras_Landroid_content_Intent_Handler")>]
abstract member ReplaceExtras : Android.Content.Intent -> Android.Content.Intent
override this.ReplaceExtras : Android.Content.Intent -> Android.Content.Intent

Parameters

src
Intent

The exact extras contained in this Intent are copied into the target intent, replacing any that were previously there.

Returns

Attributes

Remarks

Completely replace the extras in the Intent with the extras in the given Intent.

Java documentation for android.content.Intent.replaceExtras(android.content.Intent).

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

ReplaceExtras(Bundle)

Completely replace the extras in the Intent with the given Bundle of extras.

[Android.Runtime.Register("replaceExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;", "GetReplaceExtras_Landroid_os_Bundle_Handler")]
public virtual Android.Content.Intent ReplaceExtras (Android.OS.Bundle? extras);
[<Android.Runtime.Register("replaceExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;", "GetReplaceExtras_Landroid_os_Bundle_Handler")>]
abstract member ReplaceExtras : Android.OS.Bundle -> Android.Content.Intent
override this.ReplaceExtras : Android.OS.Bundle -> Android.Content.Intent

Parameters

extras
Bundle

The new set of extras in the Intent, or null to erase all extras.

Returns

Attributes

Remarks

Completely replace the extras in the Intent with the given Bundle of extras.

Java documentation for android.content.Intent.replaceExtras(android.os.Bundle).

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