Creating a bitmask parameter for a function or method
Posted
by synic
on Stack Overflow
See other posts from Stack Overflow
or by synic
Published on 2010-04-30T19:51:23Z
Indexed on
2010/04/30
19:57 UTC
Read the original article
Hit count: 362
I noticed a lot of Android functions have a parameter that you can pass in that's a bitmask, for different options, like on PendingIntent, you can pass in things like you can call getActivity() with PendingIntent.FLAG_CANCEL_CURRENT|PendingIntent.FLAG_NO_CREATE
.
I'm wondering how I can create a function that has a parameter like this?
© Stack Overflow or respective owner