AN v1.59 (dev)
version-1.59
Add new features
-
methods to cancel a certain or all NotificationsNotification().cancel(), Notification.cancelAll, For if old instance not available and need to cancel one use id with Notification.cancel(_id)
-
When setting a new component after Notification().send use Notification().refresh
-
Instead of only requesting in init created NotificationHandler.asks_permission and NotificationHandler.has_permission
-
Added a way to access Old Notification instance if instance variable not available with Notification().id, you can save id and pass in when creating new instances
Add methods working to free up init kwargs [parsing out style attribute]
-
setSmallIcon == Notification(...,app_icon="...")
-
setLargeIcon == Notification(...,large_icon_path="...",style=NotificationStyles.LARGE_ICON)
-
setBigPicture == Notification(...,body="...",style=NotificationStyles.BIG_PICTURE)
-
setBigText == Notification(...,big_picture_path="...",style=NotificationStyles.BIG_TEXT)
For Channels (working towards CRUD) Create, Delete and Read available now
-
For creating channels Notification.createChannel(name, id, desc
-
For deleting channels Notification.deleteAllChannel() and Notification.deleteChannel(channel_id)
Changes
-
Notification.identifertoNotification.name -
NotificationHandler.identifertoNotificationHandler.get_name