Creating a bitmask parameter for a function or method
- by synic
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?