mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add iOS 10 .d.ts-es
This commit is contained in:
39
tns-core-modules/ios/objc-i386/objc!UserNotificationsUI.d.ts
vendored
Normal file
39
tns-core-modules/ios/objc-i386/objc!UserNotificationsUI.d.ts
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
interface UNNotificationContentExtension extends NSObjectProtocol {
|
||||
|
||||
mediaPlayPauseButtonFrame?: CGRect;
|
||||
|
||||
mediaPlayPauseButtonTintColor?: UIColor;
|
||||
|
||||
mediaPlayPauseButtonType?: UNNotificationContentExtensionMediaPlayPauseButtonType;
|
||||
|
||||
didReceiveNotification(notification: UNNotification): void;
|
||||
|
||||
didReceiveNotificationResponseCompletionHandler?(response: UNNotificationResponse, completion: (p1: UNNotificationContentExtensionResponseOption) => void): void;
|
||||
|
||||
mediaPause?(): void;
|
||||
|
||||
mediaPlay?(): void;
|
||||
}
|
||||
declare var UNNotificationContentExtension: {
|
||||
|
||||
prototype: UNNotificationContentExtension;
|
||||
};
|
||||
|
||||
declare const enum UNNotificationContentExtensionMediaPlayPauseButtonType {
|
||||
|
||||
None = 0,
|
||||
|
||||
Default = 1,
|
||||
|
||||
Overlay = 2
|
||||
}
|
||||
|
||||
declare const enum UNNotificationContentExtensionResponseOption {
|
||||
|
||||
DoNotDismiss = 0,
|
||||
|
||||
Dismiss = 1,
|
||||
|
||||
DismissAndForwardAction = 2
|
||||
}
|
||||
Reference in New Issue
Block a user