Last active
August 15, 2019 08:10
-
-
Save EfeBudak/7e1116034a7014f9c54e7f4020407d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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