共用方式為


NotificationListenerService.CurrentListenerHints 屬性

定義

取得代表目前狀態的提示集。

public Android.Service.Notification.NotificationListenerServiceHint CurrentListenerHints { [Android.Runtime.Register("getCurrentListenerHints", "()I", "")] get; }
[<get: Android.Runtime.Register("getCurrentListenerHints", "()I", "")>]
member this.CurrentListenerHints : Android.Service.Notification.NotificationListenerServiceHint

屬性值

零或多個HINT_常數。

屬性

備註

取得代表目前狀態的提示集。

如果提示代表在所有接聽程式之間共享的狀態,或通知主機不支援或拒絕授與的功能,目前的狀態可能會與要求的狀態不同。

服務應該先等候事件, #onListenerConnected() 再執行這項作業。

android.service.notification.NotificationListenerService.getCurrentListenerHints()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於