fix(plugins): fix optional options

This commit is contained in:
Ibrahim Hadeed
2016-03-13 20:39:40 -04:00
parent e708bc6be7
commit 9ef850c66a
6 changed files with 29 additions and 29 deletions
+13 -13
View File
@@ -194,64 +194,64 @@ export interface Notification {
* A unique identifier required to clear, cancel, update or retrieve the local notification in the future
* Default: 0
*/
id : number,
id? : number,
/**
* First row of the notification
* Default: Empty string (iOS) or the app name (Android)
*/
title : string,
title? : string,
/**
* Second row of the notification
* Default: Empty string
*/
text : string,
text? : string,
/**
* The interval at which to reschedule the local notification. That can be a value of second, minute, hour, day, week, month or year
* Default: 0 (which means that the system triggers the local notification once)
*/
every : string,
every? : string,
/**
* The date and time when the system should deliver the local notification. If the specified value is nil or is a date in the past, the local notification is delivered immediately.
* Default: now ~ new Date()
*/
at : any,
firstAt : any,
at? : any,
firstAt? : any,
/**
* The number currently set as the badge of the app icon in Springboard (iOS) or at the right-hand side of the local notification (Android)
* Default: 0 (which means don't show a number)
*/
badge : number,
badge? : number,
/**
* Uri of the file containing the sound to play when an alert is displayed
* Default: res://platform_default
*/
sound : string,
sound? : string,
/**
* Arbitrary data, objects will be encoded to JSON string
* Default: null
*/
data : any,
data? : any,
/**
* ANDROID ONLY
* Uri of the icon that is shown in the ticker and notification
* Default: res://icon
*/
icon : string,
icon? : string,
/**
* ANDROID ONLY
* Uri of the resource (only res://) to use in the notification layouts. Different classes of devices may return different sizes
* Default: res://ic_popup_reminder
*/
smallIcon : string,
smallIcon? : string,
/**
@@ -261,12 +261,12 @@ export interface Notification {
* - They do not have an 'X' close button, and are not affected by the "Clear all" button
* Default: false
*/
ongoing : boolean,
ongoing? : boolean,
/**
* ANDROID ONLY
* ARGB value that you would like the LED on the device to blink
* Default: FFFFFF
*/
led : string
led? : string
}