RemoteInput.AddDataResultToIntent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
和設定資料結果一樣 #addResultsToIntent 。
[Android.Runtime.Register("addDataResultToIntent", "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V", "", ApiSince=26)]
public static void AddDataResultToIntent(Android.App.RemoteInput? remoteInput, Android.Content.Intent? intent, System.Collections.Generic.IDictionary<string,Android.Net.Uri>? results);
[<Android.Runtime.Register("addDataResultToIntent", "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V", "", ApiSince=26)>]
static member AddDataResultToIntent : Android.App.RemoteInput * Android.Content.Intent * System.Collections.Generic.IDictionary<string, Android.Net.Uri> -> unit
參數
- remoteInput
- RemoteInput
提供結果的遠端輸入
- intent
- Intent
意圖新增遠端輸入結果。
ClipData意圖欄位將被修改以包含結果。
- results
- IDictionary<String,Uri>
將默劇類型映射到 Uri 該默劇類型結果。
- 屬性
備註
跟 addResultsToIntent(RemoteInput, Intent, Bundle)一樣,但用來設定資料結果。 此用於接受非文字結果的輸入(參見 Builder.setAllowDataType)。 對於 RemoteInput 接受的每種 mime 類型,只能提供一個結果。 若預期有多個相同默劇類型的輸入,則應使用多個遠端輸入。
Android 參考資料。android.app.RemoteInput.addDataResultToIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。