Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Created July 23, 2020 12:58
Show Gist options
  • Save kingjinho/6d48d27a584b856e877d57b949c2ad29 to your computer and use it in GitHub Desktop.
Save kingjinho/6d48d27a584b856e877d57b949c2ad29 to your computer and use it in GitHub Desktop.
Block of Text
fun setBlockOfText(blockOfText: String): NotificationBuilder {
mNotificationBuilder.setStyle(
NotificationCompat.BigTextStyle()
//.setBigContentTitle("this is big content title") overrides setContentTitle()
//.setSummaryText("this is summary text") right next to app name
.bigText(blockOfText)
)
return this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment