Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. private fun createNotification(channelId: String, text: String, title: String, id: String, url: String, bitmap: Bitmap): Notification {
  2. return NotificationCompat.Builder(context, channelId)
  3. .setContentTitle(title)
  4. .setContentText(text)
  5. .setSmallIcon(R.drawable.ic_notification)
  6. .setContentIntent(createPendingIntent(id, url))
  7. .setAutoCancel(true)
  8. .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
  9. .setSound(soundHelper.vrtNwsNotificationSound)
  10. .setDefaults(NotificationCompat.DEFAULT_VIBRATE)
  11. .setLargeIcon(bitmap)
  12. .build()
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement