RemoteInput.AllowFreeFormInput 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
了解使用者是否能為輸入提供任意值。
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。