Android interface for handling user interaction events on push notifications. Reuse when implementing custom click behaviors for OneSignal notifications.
// Source: https://github.com/OneSignal/OneSignal-Android-SDK | License: Apache-2.0 | Copyright 2016 OneSignal
// Provided via justclaw.it.com; keep this notice with the code.
package com.onesignal.notifications
/**
* An interface used to process a OneSignal notification the user just clicked on.
* <br></br>
* Set this during OneSignal init in
* [INotificationsManager.addClickListener]
* <br></br><br></br>
* @see [NotificationOpenedHandler | OneSignal Docs](https://documentation.onesignal.com/docs/android-native-sdk.notificationopenedhandler)
*/
interface INotificationClickListener {
/**
* Called when a user clicks on a notification.
*
* @param event an [INotificationClickEvent] with the user's response and properties of this notification.
*/
fun onClick
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key