DefaultNotificationFactory

Default implementation of the notification factory.

The DefaultNotificationFactory class is responsible for creating notifications based on the provided context, push message, and other parameters. It uses various dependencies to build and customize the notification.

Types

NameType
Companionobject Companion

Companion Functions

NameType
createfun create(): DefaultNotificationFactory

Properties

NameTypeDescription
notificationBuilderCallbackopen override var notificationBuilderCallback: NotificationBuilderCallback?Callback for customizing the notification builder.

Functions

NameReturn TypeDescription
createNotificationNotificationCreates a notification.

createNotification

Creates a notification.

Syntax: open override fun createNotification(context: Context, message: PushMessage, notificationId: Int, smallIconResourceId: Int, largeIcon: Bitmap?, bigPicture: Bitmap? ): Notification

Return: The created notification.

Parameters:

Parameter NameDescription
contextThe application context.
messageThe push message for the notification.
notificationIdThe ID for the notification.
smallIconResourceIdOptional small icon resource ID for the notification.
largeIconOptional big icon for the notification.
bigPictureOptional big picture for the notification.