Well the flag is not private, so the keyword can't be too private. :)

There are lots of gotchas with this though -- ordering of delivery is tied
to the target object (so you can receive calls on different interfaces out
of order), and this does NOT impact calls in the same process.

On Fri, Jul 17, 2009 at 7:20 AM, Guillaume Perrot
<[email protected]>wrote:

>
> Hello,
> I found in Android source code an interesting but undocumented keyword
> for aidl: "oneway" (before void in a function).
> As it sounds, the generated code uses the corresponding flag
> http://developer.android.com/reference/android/os/IBinder.html#FLAG_ONEWAY
> when performing the remote transaction.
> To my understanding it can be used to fire remote listeners without
> having to wait for each listener to return.
> Since it's not documented, I wonder whether it should be considered as
> a "private API stuff that can break in a future SDK release" or not.
> Anyway, I can't alter the generated code so I'm planning to use it in
> the aidl file, I hope this is just a documentation lack :)
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to