Merge pull request #42 from status-im/4922-indicate-notifications-on-the-taskbar

feature(desktop/general): Expose showing icon badge notification functions
This commit is contained in:
Michał Iskierko 2022-05-26 14:14:02 +02:00 committed by GitHub
commit 0931c98089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -352,6 +352,8 @@ proc dos_osnotification_create(): DosStatusOSNotification
proc dos_osnotification_show_notification(vptr: DosStatusOSNotification,
title: cstring, messsage: cstring, identifier: cstring)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_osnotification_show_badge_notification(vptr: DosStatusOSNotification, notificationsCount: int)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_osnotification_delete(vptr: DosStatusOSNotification)
{.cdecl, dynlib: dynLibName, importc.}

View File

@ -12,3 +12,6 @@ proc newStatusOSNotification*(): StatusOSNotification =
proc showNotification*(self: StatusOSNotification, title: string,
message: string, identifier: string) =
dos_osnotification_show_notification(self.vptr, title, message, identifier)
proc showIconBadgeNotification*(self: StatusOSNotification, notificationsCount: int) =
dos_osnotification_show_badge_notification(self.vptr, notificationsCount)