NotificationFactory
Factory for creating notifications.
Interface defines the contract for creating notifications. It includes methods for creating notifications and setting a callback for customizing the notification builder.
Syntax: interface NotificationFactory
Inheritors
| Inheritors | 
|---|
| DefaultNotificationFactory | 
Types
| Name | Type | 
|---|---|
| Companion | object Companion | 
Companion Properties
| Name | Type | 
|---|---|
| ACTION_NOTIFICATION_CLICK | const val ACTION_NOTIFICATION_CLICK: String | 
| DEFAULT_CHANNEL_ID | const val DEFAULT_CHANNEL_ID: String | 
Properties
| Name | Syntax | Description | 
|---|---|---|
| notificationBuilderCallback | abstract var notificationBuilderCallback: NotificationBuilderCallback? | Callback for building notifications. | 
Functions
| Function Name | Return Type | Description | 
|---|---|---|
| createNotification | Notification | Creates a notification. | 
createNotification
Creates a notification.
Syntax: abstract fun createNotification(context: Context, message: PushMessage, notificationId: Int, smallIconResourceId: Int = 0, largeIcon: Bitmap? = null, bigPicture: Bitmap? = null): Notification
Return: The created notification.
Parameters:
| Parameters | Type | Description | 
|---|---|---|
| context | Context | The application context. | 
| message | PushMessage | The push message for the notification. | 
| notificationId | Int | The ID for the notification. | 
| smallIconResourceId | Int | Optional small icon resource ID for the notification. | 
| largeIcon | Bitmap | Optional big icon for the notification. | 
| bigPicture | Bitmap | Optional big picture for the notification. | 
Updated 12 months ago
