Android.Content.RestrictionEntry.SetChoiceValues Method
Sets a list of string values that can be selected by the user.

Syntax

[Android.Runtime.Register("setChoiceValues", "([Ljava/lang/String;)V", "GetSetChoiceValues_arrayLjava_lang_String_Handler")]
public virtual void SetChoiceValues (string[] choiceValues)

See Also

RestrictionEntry.GetChoiceValues
RestrictionEntry.GetAllSelectedStrings

Parameters

choiceValues
an array of Strings which will be the selected values for the user's selections.

Remarks

Sets a list of string values that can be selected by the user. If no user-visible entries are set by a call to RestrictionEntry.SetChoiceEntries(String[]), these values will be the ones shown to the user. Values will be chosen from this list as the user's selection and the selected values can be retrieved by a call to RestrictionEntry.GetAllSelectedStrings, or RestrictionEntry.SelectedString, depending on whether it is a multi-select type or choice type. This method is not relevant for types other than RestrictionEntry.TypeChoice, and RestrictionEntry.TypeMultiSelect.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18