NotificationListenerService.RequestInterruptionFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the desired #getCurrentInterruptionFilter() interruption filter
.
[Android.Runtime.Register("requestInterruptionFilter", "(I)V", "")]
public void RequestInterruptionFilter (Android.Service.Notification.InterruptionFilterType interruptionFilter);
[<Android.Runtime.Register("requestInterruptionFilter", "(I)V", "")>]
member this.RequestInterruptionFilter : Android.Service.Notification.InterruptionFilterType -> unit
Parameters
- interruptionFilter
- InterruptionFilterType
One of the INTERRUPTION_FILTER_ constants.
- Attributes
Remarks
Sets the desired #getCurrentInterruptionFilter() interruption filter
.
This is merely a request, the host may or may not choose to apply the requested interruption filter depending on other listener requests or other global state.
Listen for updates using #onInterruptionFilterChanged(int)
.
The service should wait for the #onListenerConnected()
event before performing this operation.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.