mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
|
|
// iOS specific TypeScript declarations
|
|
// TODO: This is temporary, until we have the TS definitions for the native APIs
|
|
|
|
declare module UIKit {
|
|
|
|
export class UIResponder {
|
|
static extends(param1: any, param2: any): any;
|
|
}
|
|
|
|
export class UIWindow {
|
|
constructor(frame: any);
|
|
}
|
|
|
|
export class UIScreen {
|
|
static mainScreen(): any;
|
|
}
|
|
|
|
export class UIColor {
|
|
static whiteColor: any;
|
|
}
|
|
|
|
export class UINavigationController {
|
|
constructor(rootController: any);
|
|
}
|
|
|
|
export class UIImageView {
|
|
constructor();
|
|
setImage(image: any);
|
|
}
|
|
|
|
export class UILabel {
|
|
constructor();
|
|
setText(text: string);
|
|
sizeToFit();
|
|
}
|
|
|
|
export class UIImage {
|
|
static imageNamed(name: string): UIImage;
|
|
static imageWithContentsOfFile(path: string): UIImage;
|
|
static imageWithData(data: any): UIImage;
|
|
}
|
|
|
|
function UIImagePNGRepresentation(image: UIImage);
|
|
function UIImageJPEGRepresentation(image: UIImage, compressionQuality: number);
|
|
}
|
|
|
|
declare module Foundation {
|
|
export class NSUserDefaults {
|
|
static standardUserDefaults(): any;
|
|
}
|
|
|
|
export class NSMutableArray {
|
|
addObject(obj: any);
|
|
}
|
|
|
|
export class NSFileManager {
|
|
static defaultManager(): NSFileManager;
|
|
URLsForDirectoryInDomains(directory: number, mask: number): any;
|
|
}
|
|
}
|