다음을 통해 공유


BinderConsts.FlagOneway Field

Definition

Caution

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

Flag to #transact: this is a one-way call, meaning that the caller returns immediately, without waiting for a result from the callee.

[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

Field Value

Value = 1
Attributes

Remarks

Flag to #transact: this is a one-way call, meaning that the caller returns immediately, without waiting for a result from the callee. Applies only if the caller and callee are in different processes.

The system provides special ordering semantics for multiple oneway calls being made to the same IBinder object: these calls will be dispatched in the other process one at a time, with the same order as the original calls. These are still dispatched by the IPC thread pool, so may execute on different threads, but the next one will not be dispatched until the previous one completes. This ordering is not guaranteed for calls on different IBinder objects or when mixing oneway and non-oneway calls on the same IBinder object.

Java documentation for android.os.IBinder.FLAG_ONEWAY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to