語言

Notification.Action.GetDataOnlyRemoteInputs 方法

定義

取得使用者要收集的輸入清單,這些輸入只有在這個動作被傳送時才接受資料。

[Android.Runtime.Register("getDataOnlyRemoteInputs", "()[Landroid/app/RemoteInput;", "GetGetDataOnlyRemoteInputsHandler", ApiSince=26)]
public virtual Android.App.RemoteInput[]? GetDataOnlyRemoteInputs();
[<Android.Runtime.Register("getDataOnlyRemoteInputs", "()[Landroid/app/RemoteInput;", "GetGetDataOnlyRemoteInputsHandler", ApiSince=26)>]
abstract member GetDataOnlyRemoteInputs : unit -> Android.App.RemoteInput[]
override this.GetDataOnlyRemoteInputs : unit -> Android.App.RemoteInput[]

傳回

屬性

備註

取得使用者要收集的輸入清單,這些輸入只有在這個動作被傳送時才接受資料。 這些遠端輸入在呼叫 RemoteInput.isDataOnly 時保證會回傳為真。 若沒有純資料遠端輸入,則回傳 null。 此方法的存在是為了防止在非文字 RemoteInput 加入之前的舊有 RemoteInput 收集器無法存取這些遠端輸入。

Android 參考資料。android.app.Notification.Action.getDataOnlyRemoteInputs

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

適用於