mirror of https://github.com/status-im/nimqml.git
feature(desktop/general): Expose showing icon badge notification functions
Issue #4922
This commit is contained in:
parent
e66ac18ff5
commit
99435c9b2e
|
@ -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.}
|
||||
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue