mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 12:58:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			538 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			538 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
export declare enum CameraPosition {
 | 
						|
    FRONT = 0,
 | 
						|
    BACK = 1,
 | 
						|
}
 | 
						|
 | 
						|
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 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);
 | 
						|
} |