- receiver
- The BroadcastReceiver to handle the broadcast.
- filter
- Selects the Intent broadcasts to be received.
- broadcastPermission
- String naming a permissions that a broadcaster must hold in order to send an Intent to you. If null, no permission is required.
- scheduler
- Handler identifying the thread that will receive the Intent. If null, the main thread of the process will be used.
Documentation for this section has not yet been entered.
Register to receive intent broadcasts, to run in the context of scheduler. See Context.RegisterReceiver(BroadcastReceiver, Android.Content.IntentFilter) for more information. This allows you to enforce permissions on who can broadcast intents to your receiver, or have the receiver run in a different thread than the main application thread.
See Android.Content.BroadcastReceiver for more information on Intent broadcasts.
As of NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH, receivers registered with this method will correctly respect the Intent.SetPackage(string) specified for an Intent being broadcast. Prior to that, it would be ignored and delivered to all matching registered receivers. Be careful if using this for security.