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
| Name | Type |
|---|---|
| Companion | object Companion |
Companion Functions
| Name | Type |
|---|---|
| create | fun create(): DefaultNotificationFactory |
Properties
| Name | Type | Description |
|---|---|---|
| notificationBuilderCallback | open override var notificationBuilderCallback: NotificationBuilderCallback? | Callback for customizing the notification builder. |
Functions
| Name | Return Type | Description |
|---|---|---|
| createNotification | Notification | Creates 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 Name | Description |
|---|---|
| context | The application context. |
| message | The push message for the notification. |
| notificationId | The ID for the notification. |
| smallIconResourceId | Optional small icon resource ID for the notification. |
| largeIcon | Optional big icon for the notification. |
| bigPicture | Optional big picture for the notification. |
Updated 12 months ago
