UNPKG

1.8 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 getMainScreen(): UIScreen;
11export declare function setWindowBackgroundColor(value: string): void;
12export declare function isLandscape(): boolean;
13/**
14 * @deprecated use Utils.SDK_VERSION instead which is a float of the {major}.{minor} verison
15 */
16export declare const MajorVersion: number;
17export declare function openFile(filePath: string): boolean;
18export declare function getCurrentAppPath(): string;
19export declare function joinPaths(...paths: string[]): string;
20export declare function getVisibleViewController(rootViewController: UIViewController): UIViewController;
21export declare function applyRotateTransform(transform: CATransform3D, x: number, y: number, z: number): CATransform3D;
22export declare function createUIDocumentInteractionControllerDelegate(): NSObject;
23export declare function isRealDevice(): boolean;
24export declare function printCGRect(rect: CGRect): string;
25export declare function snapshotView(view: UIView, scale: number): UIImage;
26export declare function copyLayerProperties(view: UIView, toView: UIView, customProperties?: {
27 view?: Array<keyof UIView>;
28 layer?: Array<keyof CALayer>;
29}): void;
30export declare function animateWithSpring(options?: {
31 tension?: number;
32 friction?: number;
33 mass?: number;
34 delay?: number;
35 velocity?: number;
36 animateOptions?: UIViewAnimationOptions;
37 animations?: () => void;
38 completion?: (finished?: boolean) => void;
39}): void;