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);
}
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);
}
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.