namespaces removed (except Application)

This commit is contained in:
Vladimir Enchev
2014-03-24 11:16:38 +02:00
parent d5a91269f6
commit 1b6fdae4a9
29 changed files with 1930 additions and 2040 deletions

34
Camera/camera.d.ts vendored
View File

@ -1,22 +1,18 @@
export declare module tk {
export module camera {
export enum CameraPosition {
FRONT = 0,
BACK = 1,
}
export declare enum CameraPosition {
FRONT = 0,
BACK = 1,
}
export enum FlashMode {
AUTO = 0, // default
ON = 1,
OFF = 2
}
export declare enum FlashMode {
AUTO = 0, // default
ON = 1,
OFF = 2
}
// TODO most of hardware related parts need to handle onPause and onResume of the calling activities
export class CameraManager {
takePicture(params: any, onSuccess: (imageData: any) => any, onError?: (error: any) => any);
// TODO most of hardware related parts need to handle onPause and onResume of the calling activities
export declare class CameraManager {
takePicture(params: any, onSuccess: (imageData: any) => any, onError?: (error: any) => any);
// options { useSavedPhotos: true }
pictureFromLibrary(params: any, onSuccess: (imageData: any) => any, onError?: (error: any) => any);
}
}
}
// options { useSavedPhotos: true }
pictureFromLibrary(params: any, onSuccess: (imageData: any) => any, onError?: (error: any) => any);
}