UNPKG

1.65 kBTypeScriptView Raw
1export declare function getter<T>(_this: any, property: T | {
2 (): T;
3}): T;
4export declare namespace collections {
5 function jsArrayToNSArray<T>(str: T[]): NSArray<T>;
6 function nsArrayToJSArray<T>(a: NSArray<T>): Array<T>;
7}
8export declare function getRootViewController(): UIViewController;
9export declare function getWindow(): UIWindow;
10export declare function setWindowBackgroundColor(value: string): void;
11export declare function isLandscape(): boolean;
12export declare const MajorVersion: number;
13export declare function openFile(filePath: string): boolean;
14export declare function getCurrentAppPath(): string;
15export declare function joinPaths(...paths: string[]): string;
16export declare function getVisibleViewController(rootViewController: UIViewController): UIViewController;
17export declare function applyRotateTransform(transform: CATransform3D, x: number, y: number, z: number): CATransform3D;
18export declare function createUIDocumentInteractionControllerDelegate(): NSObject;
19export declare function isRealDevice(): boolean;
20export declare function printCGRect(rect: CGRect): string;
21export declare function snapshotView(view: UIView, scale: number): UIImage;
22export declare function copyLayerProperties(view: UIView, toView: UIView, customProperties?: {
23 view?: Array<keyof UIView>;
24 layer?: Array<keyof CALayer>;
25}): void;
26export declare function animateWithSpring(options?: {
27 tension?: number;
28 friction?: number;
29 mass?: number;
30 delay?: number;
31 velocity?: number;
32 animateOptions?: UIViewAnimationOptions;
33 animations?: () => void;
34 completion?: (finished?: boolean) => void;
35}): void;