Skip to content

Commit 39c3760

Browse files
#24 TypeScript is throwing a compilation error
1 parent 1e82bec commit 39c3760

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

local-notifications.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ declare namespace localNotifications {
5050
* One of second|minute|hour|day|week|month|quarter|year
5151
*/
5252
interval?: string; // TODO add better TS support
53+
54+
/**
55+
* On Android you can set a custom icon in the system tray.
56+
* Pass in 'res://filename.png' which lives in App_Resouces/Android/drawable folders.
57+
* If not passed, we look for a file named 'ic_stat_notify.png' in the App_Resources/Android/drawable folders.
58+
* Default: the app icon.
59+
*/
60+
smallIcon?: string;
61+
62+
/**
63+
* Same as 'smallIcon', but this one is shown when you expand the notification center.
64+
* The optional file we look for is not 'ic_stat_notify.png' but 'ic_notify.png'.
65+
*/
66+
largeIcon?: string;
5367
}
5468

5569
export interface ReceivedNotification {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-local-notifications",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.",
55
"main" : "local-notifications.js",
66
"typings": "local-notifications.d.ts",

0 commit comments

Comments
 (0)