Skip to content

Instantly share code, notes, and snippets.

@EfeBudak
Last active August 15, 2019 08:10
Show Gist options
  • Save EfeBudak/7e1116034a7014f9c54e7f4020407d60 to your computer and use it in GitHub Desktop.
Save EfeBudak/7e1116034a7014f9c54e7f4020407d60 to your computer and use it in GitHub Desktop.
class InteractiveNotificationBroadcastReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
Log.d("InteractiveNotificationBroadcastReceiver", "onReceive")
}
companion object {
fun newPendingIntent(context: Context): PendingIntent {
val intent = Intent(context, InteractiveNotificationBroadcastReceiver::class.java)
return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment