Created
July 23, 2020 12:40
-
-
Save kingjinho/ce07877f9e209e084d5cfc4da298137b to your computer and use it in GitHub Desktop.
notify user
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
fun notifyUser(num : Int) { | |
mNotificationManagerCompat = NotificationManagerCompat.from(CONTEXT) | |
//id: unique in your app. otherwise, it will update to new one | |
mNotificationManagerCompat.notify(num, mNotificationBuilder.build()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment