语言

Binder.InterfaceConsts.FlagOneway 字段

定义

注意

This constant will be removed in the future version. Use Android.OS.TransactionFlags enum directly instead of this field.

标志为 #transact:这是一个单向调用,这意味着调用方会立即返回,而无需等待被调用方的结果。

[Android.Runtime.Register("FLAG_ONEWAY")]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.TransactionFlags enum directly instead of this field.", true)]
public const Android.OS.TransactionFlags FlagOneway = 1;
[<Android.Runtime.Register("FLAG_ONEWAY")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.TransactionFlags enum directly instead of this field.", true)>]
val mutable FlagOneway : Android.OS.TransactionFlags

字段值

Value = 1
属性

注解

标志为 #transact:这是一个单向调用,这意味着调用方会立即返回,而无需等待被调用方的结果。 仅当调用方和被调用方处于不同的进程中时适用。

系统为对同一 IBinder 对象进行的多个单向调用提供特殊的排序语义:这些调用将一次调度在另一个进程中,其顺序与原始调用的顺序相同。 这些仍由 IPC 线程池调度,因此可以在不同的线程上执行,但下一个线程在上一个线程完成之前不会调度。 对于不同 IBinder 对象的调用,或者在同一 IBinder 对象上混合单向和非单向调用时,不能保证此排序。

适用于 . 的 android.os.IBinder.FLAG_ONEWAYJava 文档

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

适用于