語言

RemoteInput.AddResultsToIntent(RemoteInput[], Intent, Bundle) 方法

定義

將從遠端輸入取得的文字結果填入意圖物件。

[Android.Runtime.Register("addResultsToIntent", "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V", "")]
public static void AddResultsToIntent(Android.App.RemoteInput[]? remoteInputs, Android.Content.Intent? intent, Android.OS.Bundle? results);
[<Android.Runtime.Register("addResultsToIntent", "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V", "")>]
static member AddResultsToIntent : Android.App.RemoteInput[] * Android.Content.Intent * Android.OS.Bundle -> unit

參數

remoteInputs
RemoteInput[]

提供結果的遠端輸入

intent
Intent

意圖新增遠端輸入。 ClipData意圖欄位將被修改以包含結果。

results
Bundle

結果是一個包含遠端輸入的束。 此組合包應填充與結果 remoteInputs 鍵相符的鍵,值為每個鍵的 CharSequence 結果。

屬性

備註

將從遠端輸入取得的文字結果填入意圖物件。 此方法僅應由遠端輸入收集服務在將結果傳送至待處理意圖時呼叫。

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

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

適用於