Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Created July 23, 2020 12:56
Show Gist options
  • Save kingjinho/f1b0541e8ac587af3a7e7bb4dff182bc to your computer and use it in GitHub Desktop.
Save kingjinho/f1b0541e8ac587af3a7e7bb4dff182bc to your computer and use it in GitHub Desktop.
set Large Icon
fun setLargeIcon(largeIconRes: Int): NotificationBuilder {
val bitmap = BitmapFactory.decodeResource(CONTEXT.resources, largeIconRes)
mNotificationBuilder.setLargeIcon(bitmap)
return this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment