語言

RemoteInput.AllowFreeFormInput 屬性

定義

了解使用者是否能為輸入提供任意值。

public bool AllowFreeFormInput { [Android.Runtime.Register("getAllowFreeFormInput", "()Z", "")] get; }
[<get: Android.Runtime.Register("getAllowFreeFormInput", "()Z", "")>]
member this.AllowFreeFormInput : bool

屬性值

屬性

備註

了解使用者是否能為輸入提供任意值。 若將此設定為 false,使用者必須在 getChoices() 中選擇其中一個選項。 如果你將此設定為 false,且 getChoices() 回傳 null 或空,則會拋出 IllegalArgumentException。

Android 參考資料。android.app.RemoteInput.getAllowFreeFormInput

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

適用於