Merge pull request #1113 from csrakowski/PhonegapNotification

(Phonegap) Notification.confirm with buttonLabels array
This commit is contained in:
Boris Yankov
2013-10-11 21:06:11 -07:00
2 changed files with 7 additions and 0 deletions

View File

@@ -655,6 +655,12 @@ function test_notification() {
onConfirm,
'Game Over',
'Restart,Exit'
);
navigator.notification.confirm(
'You are the winner!',
onConfirm,
'Game Over',
['Restart','Exit']
);
navigator.notification.beep(2);
navigator.notification.vibrate(2500);

View File

@@ -478,6 +478,7 @@ declare var Media: {
interface Notification {
alert(message: string, alertCallback: Function, title?: string, buttonName?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string[]): void;
beep(times: number): void;
vibrate(milliseconds: number): void;
}