Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can any one please describe me that what is oneway in aidl for android? [duplicate]

Can any one please describe me that what is oneway in aidl for android ?

like in below code what oneway does ?

oneway interface IPackageStatsObserver {

    void onGetStatsCompleted(in PackageStats pStats, boolean succeeded);

}
like image 916
Rajdeep Sarker Avatar asked Oct 21 '25 04:10

Rajdeep Sarker


1 Answers

From the Google documentation (https://developer.android.com/guide/components/aidl.html)

The oneway keyword modifies the behavior of remote calls. When used, a remote call does not block; it simply sends the transaction data and immediately returns. The implementation of the interface eventually receives this as a regular call from the Binder thread pool as a normal remote call. If oneway is used with a local call, there is no impact and the call is still synchronous.

like image 130
0xDEADC0DE Avatar answered Oct 22 '25 19:10

0xDEADC0DE