Skip to content

Conversation

@jonahwh
Copy link
Contributor

@jonahwh jonahwh commented Sep 13, 2021

Introduces two new optional parameters to NotificationProperties' default constructor:

  • notificationChannelId: This allows developers to customize the Notification Channel ID, so they can put the notification in the exact channel they desire
  • notificationBuilderExtender: Accepts a lambda that can modify the Notification.Builder so developers can fully customize the Foreground Service notification

Usage Example:

override val notificationProperties get() = NotificationProperties(iconResId = R.drawable.plugin) { context ->
    setColor(Color.CYAN)
}

Will result in
Screen Shot 2021-09-12 at 5 52 58 PM

Introduces two new optional parameters to NotificationProperties' default constructor:
* notificationChannelId: This allows developers to customize the Notification Channel ID, so they can put the notification in the exact channel they desire
* notificationBuilderExtender: Accepts a lambda that can modify the Notification.Builder so developers can fully customize the Foreground Service notification
@joaomgcd joaomgcd merged commit 4642b0a into joaomgcd:master Sep 30, 2021
@joaomgcd
Copy link
Owner

Thank you very much :) Makes sense!

@ribbons ribbons mentioned this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants