RestrictionEntry.SetChoiceEntries Method

Definition

Overloads

SetChoiceEntries(String[])

Sets a list of strings that will be presented as choices to the user.

SetChoiceEntries(Context, Int32)

Sets a list of strings that will be presented as choices to the user.

SetChoiceEntries(String[])

Sets a list of strings that will be presented as choices to the user.

[Android.Runtime.Register("setChoiceEntries", "([Ljava/lang/String;)V", "GetSetChoiceEntries_arrayLjava_lang_String_Handler")]
public virtual void SetChoiceEntries (string[]? choiceEntries);
[<Android.Runtime.Register("setChoiceEntries", "([Ljava/lang/String;)V", "GetSetChoiceEntries_arrayLjava_lang_String_Handler")>]
abstract member SetChoiceEntries : string[] -> unit
override this.SetChoiceEntries : string[] -> unit

Parameters

choiceEntries
String[]

the list of user-visible choices.

Attributes

Remarks

Sets a list of strings that will be presented as choices to the user. When the user selects one or more of these choices, the corresponding value from the possible values are stored as the selected strings. The size of this array must match the size of the array set in #setChoiceValues(String[]). This method is not relevant for types other than #TYPE_CHOICE, and #TYPE_MULTI_SELECT.

Java documentation for android.content.RestrictionEntry.setChoiceEntries(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.

See also

Applies to

SetChoiceEntries(Context, Int32)

Sets a list of strings that will be presented as choices to the user.

[Android.Runtime.Register("setChoiceEntries", "(Landroid/content/Context;I)V", "GetSetChoiceEntries_Landroid_content_Context_IHandler")]
public virtual void SetChoiceEntries (Android.Content.Context? context, int stringArrayResId);
[<Android.Runtime.Register("setChoiceEntries", "(Landroid/content/Context;I)V", "GetSetChoiceEntries_Landroid_content_Context_IHandler")>]
abstract member SetChoiceEntries : Android.Content.Context * int -> unit
override this.SetChoiceEntries : Android.Content.Context * int -> unit

Parameters

context
Context

the application context, used for retrieving the resources.

stringArrayResId
Int32

the resource id of a string array containing the possible entries.

Attributes

Remarks

Sets a list of strings that will be presented as choices to the user. This is similar to #setChoiceEntries(String[]).

Java documentation for android.content.RestrictionEntry.setChoiceEntries(android.content.Context, int).

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