RemoteInput.Builder.SetChoices 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.
Overloads
| Name | Description |
|---|---|
| SetChoices(ICharSequence[]) |
Specifies choices available to the user to satisfy this input. |
| SetChoices(String[]) |
Specifies choices available to the user to satisfy this input. |
SetChoices(ICharSequence[])
Specifies choices available to the user to satisfy this input.
[Android.Runtime.Register("setChoices", "([Ljava/lang/CharSequence;)Landroid/app/RemoteInput$Builder;", "")]
public Android.App.RemoteInput.Builder SetChoices(Java.Lang.ICharSequence[]? choices);
[<Android.Runtime.Register("setChoices", "([Ljava/lang/CharSequence;)Landroid/app/RemoteInput$Builder;", "")>]
member this.SetChoices : Java.Lang.ICharSequence[] -> Android.App.RemoteInput.Builder
Parameters
- choices
- ICharSequence[]
CharSequence: an array of pre-defined choices for users input. You must provide a non-null and non-empty array if you disabled free form input using setAllowFreeFormInput(boolean)
Returns
this object for method chaining. This value cannot be null.
- Attributes
Remarks
Specifies choices available to the user to satisfy this input. Note: Starting in Android P, these choices will always be shown on phones if the app's target SDK is >= P. However, these choices may also be rendered on other types of devices regardless of target SDK.
Android reference for android.app.RemoteInput.Builder.setChoices.
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
SetChoices(String[])
Specifies choices available to the user to satisfy this input.
public Android.App.RemoteInput.Builder SetChoices(string[]? choices);
member this.SetChoices : string[] -> Android.App.RemoteInput.Builder
Parameters
- choices
- String[]
CharSequence: an array of pre-defined choices for users input. You must provide a non-null and non-empty array if you disabled free form input using setAllowFreeFormInput(boolean)
Returns
this object for method chaining. This value cannot be null.
Remarks
Specifies choices available to the user to satisfy this input. Note: Starting in Android P, these choices will always be shown on phones if the app's target SDK is >= P. However, these choices may also be rendered on other types of devices regardless of target SDK.
Android reference for android.app.RemoteInput.Builder.setChoices.
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.