import { OnInit } from '@angular/core'; import { PixliveService } from './pixlive-service'; import { PixliveDirective } from './pixlive.directive'; export declare class PixliveComponent implements OnInit { private pixliveService; cameraView: PixliveDirective; constructor(pixliveService: PixliveService); ngOnInit(): void; /** * 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 clickable true if the view is clickable and intercept all touch events, false otherwise. * @return true if the camera has been enable or disable, false if the camera is not initialized */ setClickable(clickable: boolean): boolean; /** * Pause the camera */ pauseCamera(): void; /** * Resume the camera */ 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; /** * Returns a promise when the camera AR view is ready. */ ready(): Promise; /** * 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; }