语言

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于