android returning a "live" object from an AIDL bound service -


i'd create aidl service returns, lack of correct terminology, "live" objects. is, work,

ifoo foo = myservice.getfoo(x); // calls myservice service ifoo ibar bar = foo.getbar(y); // ipc ifoo ibar ibaz baz = bar.getbaz(z); // ipc ibar ibaz  baz.setenabled(false); // ipc ibaz modify service's copy of ibaz 

i expect possible, can find example. alternative like,

myservice.setbazenabled(x, y, z, false); 

the former being more oo approach, while latter more functional.

thanks.

so long ifoo, ibar, , ibaz defined via aidl, should work fine.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -