-
- All Implemented Interfaces:
public class NotificationHandlerFactoryFactory for default NotificationHandler. Use it to customize an intent the user triggers when clicking on a notification.
-
-
Field Summary
Fields Modifier and Type Field Description public final static NotificationHandlerFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final static NotificationHandlercreateNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel, UserIconBuilder userIconBuilder, NotificationPermissionHandler permissionHandler)Method that creates a NotificationHandler. final static NotificationHandlercreateNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel, UserIconBuilder userIconBuilder)Method that creates a NotificationHandler. final static NotificationHandlercreateNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel)Method that creates a NotificationHandler. final static NotificationHandlercreateNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent)Method that creates a NotificationHandler. final static NotificationHandlercreateNotificationHandler(Context context)Method that creates a NotificationHandler. -
-
Method Detail
-
createNotificationHandler
@JvmOverloads() final static NotificationHandler createNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel, UserIconBuilder userIconBuilder, NotificationPermissionHandler permissionHandler)
Method that creates a NotificationHandler.
- Parameters:
context- The Context to build the NotificationHandler with.newMessageIntent- Lambda expression used to generate an Intent to open your appnotificationChannel- Lambda expression used to generate a NotificationChannel.userIconBuilder- Generates IconCompat to be shown on notifications.permissionHandler- Handles android.Manifest.permission.POST_NOTIFICATIONS permission lifecycle.
-
createNotificationHandler
@JvmOverloads() final static NotificationHandler createNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel, UserIconBuilder userIconBuilder)
Method that creates a NotificationHandler.
- Parameters:
context- The Context to build the NotificationHandler with.newMessageIntent- Lambda expression used to generate an Intent to open your appnotificationChannel- Lambda expression used to generate a NotificationChannel.userIconBuilder- Generates IconCompat to be shown on notifications.
-
createNotificationHandler
@JvmOverloads() final static NotificationHandler createNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent, Function0<NotificationChannel> notificationChannel)
Method that creates a NotificationHandler.
- Parameters:
context- The Context to build the NotificationHandler with.newMessageIntent- Lambda expression used to generate an Intent to open your appnotificationChannel- Lambda expression used to generate a NotificationChannel.
-
createNotificationHandler
@JvmOverloads() final static NotificationHandler createNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent)
Method that creates a NotificationHandler.
- Parameters:
context- The Context to build the NotificationHandler with.newMessageIntent- Lambda expression used to generate an Intent to open your app
-
createNotificationHandler
@JvmOverloads() final static NotificationHandler createNotificationHandler(Context context)
Method that creates a NotificationHandler.
- Parameters:
context- The Context to build the NotificationHandler with.
-
-
-
-