mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

Add dev-setup to figure out links Update development workflow Update package.json and dts-ios Update the iOS declarations grunt is now fine
40 lines
856 B
TypeScript
40 lines
856 B
TypeScript
|
|
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
|
|
}
|