Created
August 15, 2019 07:43
-
-
Save EfeBudak/8bf433f4206fe7dc49b51f2c7f8740e1 to your computer and use it in GitHub Desktop.
Create a Simple Notification on Android
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
val builder = NotificationCompat.Builder(this, CHANNEL_ID) | |
.setSmallIcon(R.drawable.ic_launcher_foreground) | |
.setContentTitle("Interactive Notification Title") | |
.setContentText("Interactive Notification Text") | |
val notSoInteractiveNotification = builder.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment