語言

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 物件上混合單向與非單向呼叫時,這種排序並不保證。

Java 文件 android.os.IBinder.FLAG_ONEWAY。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於