Provides a simple way of building
Android notifications
with buttons with callbacks, no java knowledge required.
Buttons allow you to control your background services while using other apps
from noti_builder.noti_builder import Notification_Builder
nBuilder = Notification_Builder()
nBuilder.set_title('myTitle')
nBuilder.set_message('myMessage')
nBuilder.set_ticker('Button example')
## 0. Displayed button name
## 1. icon integer available at https://developer.android.com/reference/android/R.drawable.html
## 2. callback
## action= android PendingIntent action, button name will be used if not provided
nBuilder.add_button('Play', 17301540 , callback, action='Play')
nBuilder.build()
nBuilder.remove_buttons()
nBuilder.start()
nBuilder.stop()