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
Post a Comment