NotificationCompatSideChannelService
public abstract class NotificationCompatSideChannelService extends Service
| java.lang.Object | ||||
| ↳ | android.content.Context | |||
| ↳ | android.content.ContextWrapper | |||
| ↳ | android.app.Service | |||
| ↳ | androidx.core.app.NotificationCompatSideChannelService |
Abstract service to receive side channel notifications sent from androidx.core.app.NotificationManagerCompat.
To receive side channel notifications, extend this service and register it in your android manifest with an intent filter for the BIND_NOTIFICATION_SIDE_CHANNEL action. Note: you must also have an enabled android.service.notification.NotificationListenerService within your package.
Example AndroidManifest.xml addition:
<service android:name="com.example.NotificationSideChannelService">
<intent-filter>
<action android:name="android.support.BIND_NOTIFICATION_SIDE_CHANNEL" />
</intent-filter>
</service>Summary
Public constructors |
|---|
Public methods |
|
|---|---|
abstract void |
Handle a side-channelled notification being cancelled. |
abstract void |
Handle the side-channelled cancelling of all notifications for a package. |
abstract void |
notify(String packageName, int id, String tag, Notification notification)Handle a side-channeled notification being posted. |
IBinder |
@DeprecatedSinceApi(api = 19, message = "SDKs past 19 have no need for side channeling.") |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Inherited methods |
||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||
|
Public constructors
Public methods
cancel
public abstract void cancel(String packageName, int id, String tag)
Handle a side-channelled notification being cancelled.
cancelAll
public abstract void cancelAll(String packageName)
Handle the side-channelled cancelling of all notifications for a package.
notify
public abstract void notify(String packageName, int id, String tag, Notification notification)
Handle a side-channeled notification being posted.
onBind
@DeprecatedSinceApi(api = 19, message = "SDKs past 19 have no need for side channeling.")
public IBinder onBind(Intent intent)