import { ElementRef, OnInit, Renderer } from '@angular/core'; import { Platform, ViewController } from 'ionic-angular'; export declare class PixliveDirective implements OnInit { private platform; private el; private renderer; private viewCtrl; /** * Cordova PixLive Camera AR view */ private arView; /** * HTML element displayed instead of the camera when serving the file on the browser for development */ private fakeCamera; private readyPromise; private readyResolve; private viewLeft; private viewTop; private viewWidth; private viewHeight; private orientationChangeListener; private resizeInterval?; constructor(platform: Platform, el: ElementRef, renderer: Renderer, viewCtrl: ViewController); /** * Initializes the AR view lifecycle */ private initArViewLifeCycle(); /** * Call this method after an orientation change for resizing the AR view * @param startInterval true if the periodic checker must be started to detect any size change */ onOrientationChange(startInterval?: boolean): void; ngOnInit(): void; ngOnDestroy(): void; /** * Returns a promise when the camera AR view is ready. */ ready(): Promise; /** * Defines whether the view is clickable. If the view is clickable, it will intercept the touch event. * If a view in on top of the component, then you must disable the click interception. * @param enabled true if the view is clickable and intercept all touch events, false otherwise. * @return false if the View is not initialized yet, else return true if the camera has been enable or disable */ setTouchEnabled(enabled: boolean): boolean; pauseCamera(): void; resumeCamera(): void; /** * Define a touch region where the touch event must not be intercepted. For example, * this is used for displaying a button for toggling the bookmark flag of a AR content. * The parameters define the bounding box of the "touch hole". * * @param top bounding box top (e.g. 0) * @param bottom bounding box bottom (e.g. 100) * @param left bounding box left (e.g. 0) * @param right bounding box right (e.g. 100) */ setTouchHole(top: number, bottom: number, left: number, right: number): void; /** * Creates a screen capture of the currently displayed AR view. * On iOS, it saves the image in the camera roll (Photo Album). * On Android, it sends an Intent for sharing the image. */ captureScreenshot(): Promise; }