Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun createNotification(channelId: String, text: String, title: String, id: String, url: String, bitmap: Bitmap): Notification {
- return NotificationCompat.Builder(context, channelId)
- .setContentTitle(title)
- .setContentText(text)
- .setSmallIcon(R.drawable.ic_notification)
- .setContentIntent(createPendingIntent(id, url))
- .setAutoCancel(true)
- .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
- .setSound(soundHelper.vrtNwsNotificationSound)
- .setDefaults(NotificationCompat.DEFAULT_VIBRATE)
- .setLargeIcon(bitmap)
- .build()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement