NotificationListenerService.RequestRebind(ComponentName) 方法

定义

请求在上一次调用 #requestUnbind后将侦听器反弹。

[Android.Runtime.Register("requestRebind", "(Landroid/content/ComponentName;)V", "", ApiSince=24)]
public static void RequestRebind (Android.Content.ComponentName? componentName);
[<Android.Runtime.Register("requestRebind", "(Landroid/content/ComponentName;)V", "", ApiSince=24)>]
static member RequestRebind : Android.Content.ComponentName -> unit

参数

componentName
ComponentName
属性

注解

请求在上一次调用 #requestUnbind后将侦听器反弹。

对于尚未向用户授予权限的侦听器,此方法将失败。

适用于 . 的 android.service.notification.NotificationListenerService.requestRebind(android.content.ComponentName)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于