- listener
- The Android.Telephony.PhoneStateListener object to register (or unregister)
- events
- The telephony state(s) of interest to the listener, as a bitwise-OR combination of Android.Telephony.PhoneStateListener LISTEN_ flags.
Registers a listener object to receive notification of changes in specified telephony states.
To register a listener, pass a Android.Telephony.PhoneStateListener and specify at least one telephony state of interest in the events argument. At registration, and when a specified telephony state changes, the telephony manager invokes the appropriate callback method on the listener object and passes the current (updated) values.
To unregister a listener, pass the listener object and set the events argument to PhoneStateListener.LISTEN_NONE (0).