語言

RemoteInput.Builder.SetChoices 方法

定義

多載

名稱 Description
SetChoices(ICharSequence[])

指定使用者可選擇以滿足此輸入。

SetChoices(String[])

指定使用者可選擇以滿足此輸入。

SetChoices(ICharSequence[])

指定使用者可選擇以滿足此輸入。

[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

參數

choices
ICharSequence[]

CharSequence:一組預設的選項陣列,供使用者輸入。 如果你使用 setAllowFreeFormInput(boolean) 禁用自由形式輸入,必須提供非空且非空的陣列

傳回

此物件用於方法鏈結。 這個值不可能為零值。

屬性

備註

指定使用者可選擇以滿足此輸入。 注意:從 Android P 開始,如果應用程式的目標 SDK 是 >= P,這些選項會一直顯示在手機上。然而,這些選擇也可能在其他類型的裝置上呈現,無論目標 SDK 為何。

Android 參考資料。android.app.RemoteInput.Builder.setChoices

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SetChoices(String[])

指定使用者可選擇以滿足此輸入。

public Android.App.RemoteInput.Builder SetChoices(string[]? choices);
member this.SetChoices : string[] -> Android.App.RemoteInput.Builder

參數

choices
String[]

CharSequence:一組預設的選項陣列,供使用者輸入。 如果你使用 setAllowFreeFormInput(boolean) 禁用自由形式輸入,必須提供非空且非空的陣列

傳回

此物件用於方法鏈結。 這個值不可能為零值。

備註

指定使用者可選擇以滿足此輸入。 注意:從 Android P 開始,如果應用程式的目標 SDK 是 >= P,這些選項會一直顯示在手機上。然而,這些選擇也可能在其他類型的裝置上呈現,無論目標 SDK 為何。

Android 參考資料。android.app.RemoteInput.Builder.setChoices

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於