mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-30 08:00:10 +00:00
Merge pull request #1113 from csrakowski/PhonegapNotification
(Phonegap) Notification.confirm with buttonLabels array
This commit is contained in:
@@ -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);
|
||||
|
||||
1
phonegap/phonegap.d.ts
vendored
1
phonegap/phonegap.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user