Skip to content

Instantly share code, notes, and snippets.

@Arunshaik2001
Created November 23, 2022 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arunshaik2001/5db8f290db2ecde1895303db4a4f37fe to your computer and use it in GitHub Desktop.
Save Arunshaik2001/5db8f290db2ecde1895303db4a4f37fe to your computer and use it in GitHub Desktop.
val summaryNotification = NotificationCompat.Builder(context, NotificationChannels.CHANNEL1)
.setContentTitle("Summary")
.setContentText("Two new messages")
.setSmallIcon(R.drawable.email)
.setStyle(NotificationCompat.InboxStyle()
.addLine("Arun Ooo")
.addLine("Alex Outside")
.setBigContentTitle("2 new messages")
.setSummaryText("arun@example.com"))
.setGroup(GROUP_KEY_WORK_EMAIL)
.setGroupSummary(true)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment