Created
February 17, 2020 15:18
-
-
Save januprasad/644cc73a1e557b05683cc4ebc97e02db to your computer and use it in GitHub Desktop.
This file contains 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 AlarmReceiver : BroadcastReceiver() { | |
override fun onReceive(context: Context, intent: Intent) { | |
// This method is called when the BroadcastReceiver is receiving an Intent broadcast. | |
val notificationUtils = NotificationUtils(context) | |
val notification = notificationUtils.getNotificationBuilder().build() | |
notificationUtils.getManager().notify(150, notification) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment