语言

AppInteractionSession.Update 方法

定义

使用给定参数更新会话。

[Android.Runtime.Register("update", "(Landroid/app/AppInteractionSession$UpdateParams;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void Update(Android.App.AppInteractionSession.UpdateParams params, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("update", "(Landroid/app/AppInteractionSession$UpdateParams;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.Update : Android.App.AppInteractionSession.UpdateParams * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

params
AppInteractionSession.UpdateParams

要更新会话的参数。 此值不能为 null。

executor
IExecutor

要对其调用回调的执行程序。 此值不能为 null。 回调和侦听器事件通过此执行程序调度,提供一种控制使用哪个线程的简单方法。 若要通过应用程序的主线程调度事件,可以使用 Context.getMainExecutor()。 否则,请提供调度到相应线程的执行程序。

callback
IOutcomeReceiver

要接收更新结果的 ResultReceiver。 此值不能为 null。

特性

注解

使用给定参数更新会话。

Android 参考。android.app.AppInteractionSession.update

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于