belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NotificationCompatSideChannelService
public
abstract
class
NotificationCompatSideChannelService
extends Service
java.lang.Object | ||||
↳ | android.content.Context | |||
↳ | android.content.ContextWrapper | |||
↳ | android.app.Service | |||
↳ | android.support.v4.app.NotificationCompatSideChannelService |
Abstract service to receive side channel notifications sent from
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
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
Inherited constants |
---|
From
class
android.app.Service
|
From
class
android.content.Context
|
From
interface
android.content.ComponentCallbacks2
|
Public constructors | |
---|---|
NotificationCompatSideChannelService()
|
Public methods | |
---|---|
abstract
void
|
cancel(String packageName, int id, String tag)
Handle a side-channelled notification being cancelled. |
abstract
void
|
cancelAll(String packageName)
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
|
onBind(Intent intent)
|
Inherited methods | |
---|---|
From
class
android.app.Service
| |
From
class
android.content.ContextWrapper
| |
From
class
android.content.Context
| |
From
class
java.lang.Object
| |
From
interface
android.content.ComponentCallbacks2
| |
From
interface
android.content.ComponentCallbacks
|
Public constructors
NotificationCompatSideChannelService
NotificationCompatSideChannelService ()
Public methods
cancel
void cancel (String packageName, int id, String tag)
Handle a side-channelled notification being cancelled.
Parameters | |
---|---|
packageName |
String |
id |
int |
tag |
String |
cancelAll
void cancelAll (String packageName)
Handle the side-channelled cancelling of all notifications for a package.
Parameters | |
---|---|
packageName |
String |
notify
void notify (String packageName, int id, String tag, Notification notification)
Handle a side-channeled notification being posted.
Parameters | |
---|---|
packageName |
String |
id |
int |
tag |
String |
notification |
Notification |
onBind
IBinder onBind (Intent intent)
Parameters | |
---|---|
intent |
Intent |
Returns | |
---|---|
IBinder |
Annotations
Interfaces
- ActionBarDrawerToggle.Delegate
- ActionBarDrawerToggle.DelegateProvider
- ActivityCompat.OnRequestPermissionsResultCallback
- ActivityCompat.PermissionCompatDelegate
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- LoaderManager.LoaderCallbacks
- NotificationCompat.Action.Extender
- NotificationCompat.Extender
- SharedElementCallback.OnSharedElementsReadyListener
- TaskStackBuilder.SupportParentable
Classes
- ActionBarDrawerToggle
- ActivityCompat
- ActivityManagerCompat
- ActivityOptionsCompat
- AlarmManagerCompat
- AppLaunchChecker
- AppOpsManagerCompat
- BundleCompat
- DialogFragment
- Fragment
- Fragment.SavedState
- FragmentActivity
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentPagerAdapter
- FragmentStatePagerAdapter
- FragmentTabHost
- FragmentTransaction
- FrameMetricsAggregator
- JobIntentService
- ListFragment
- LoaderManager
- NavUtils
- NotificationCompat
- NotificationCompat.Action
- NotificationCompat.Action.Builder
- NotificationCompat.Action.WearableExtender
- NotificationCompat.BigPictureStyle
- NotificationCompat.BigTextStyle
- NotificationCompat.Builder
- NotificationCompat.CarExtender
- NotificationCompat.CarExtender.UnreadConversation
- NotificationCompat.CarExtender.UnreadConversation.Builder
- NotificationCompat.DecoratedCustomViewStyle
- NotificationCompat.InboxStyle
- NotificationCompat.MessagingStyle
- NotificationCompat.MessagingStyle.Message
- NotificationCompat.Style
- NotificationCompat.WearableExtender
- NotificationCompatExtras
- NotificationCompatSideChannelService
- NotificationManagerCompat
- RemoteInput
- RemoteInput.Builder
- ServiceCompat
- ShareCompat
- ShareCompat.IntentBuilder
- ShareCompat.IntentReader
- SharedElementCallback
- TaskStackBuilder
Exceptions