Skip to content

AN v1.59 (dev)

Choose a tag to compare

@Fector101 Fector101 released this 29 Apr 00:12
· 250 commits to main since this release

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.identifer to Notification.name

  • NotificationHandler.identifer to NotificationHandler.get_name