共用方式為


Intent.PutStringArrayListExtra(String, IList<String>) Method

Definition

Add extended data to the intent.

[Android.Runtime.Register("putStringArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;", "GetPutStringArrayListExtra_Ljava_lang_String_Ljava_util_ArrayList_Handler")]
public virtual Android.Content.Intent PutStringArrayListExtra (string? name, System.Collections.Generic.IList<string>? value);
[<Android.Runtime.Register("putStringArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;", "GetPutStringArrayListExtra_Ljava_lang_String_Ljava_util_ArrayList_Handler")>]
abstract member PutStringArrayListExtra : string * System.Collections.Generic.IList<string> -> Android.Content.Intent
override this.PutStringArrayListExtra : string * System.Collections.Generic.IList<string> -> Android.Content.Intent

Parameters

name
String

The name of the extra data, with package prefix.

value
IList<String>

The ArrayList<String> data value.

Returns

Returns the same Intent object, for chaining multiple calls into a single statement.

Attributes

Remarks

Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".

Java documentation for android.content.Intent.putStringArrayListExtra(java.lang.String, java.util.ArrayList<java.lang.String>).

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