scandit-react-native-datacapture-core
Version:
Scandit Data Capture SDK for React Native
49 lines (48 loc) • 2.16 kB
TypeScript
import React from 'react';
import { Control, FocusGesture, LogoStyle, MarginsWithUnit, Point, PointWithUnit, Quadrilateral, Size, ZoomGesture, Serializeable } from 'scandit-datacapture-frameworks-core';
import { Anchor, Orientation } from 'scandit-datacapture-frameworks-core';
import { DataCaptureContext } from 'scandit-datacapture-frameworks-core';
export interface DataCaptureOverlay extends Serializeable {
}
export interface DataCaptureViewListener {
didChangeSize?(view: DataCaptureView, size: Size, orientation: Orientation): void;
}
interface DataCaptureViewProps {
context: DataCaptureContext;
style: any;
parentId?: number;
}
export declare class DataCaptureView extends React.Component<DataCaptureViewProps> {
private view;
private _isMounted;
constructor(props: DataCaptureViewProps);
get scanAreaMargins(): MarginsWithUnit;
set scanAreaMargins(newValue: MarginsWithUnit);
get pointOfInterest(): PointWithUnit;
set pointOfInterest(newValue: PointWithUnit);
get logoStyle(): LogoStyle;
set logoStyle(style: LogoStyle);
get logoAnchor(): Anchor;
set logoAnchor(newValue: Anchor);
get logoOffset(): PointWithUnit;
set logoOffset(newValue: PointWithUnit);
get focusGesture(): FocusGesture | null;
set focusGesture(newValue: FocusGesture | null);
get zoomGesture(): ZoomGesture | null;
set zoomGesture(newValue: ZoomGesture | null);
addOverlay(overlay: DataCaptureOverlay): void;
removeOverlay(overlay: DataCaptureOverlay): void;
addListener(listener: DataCaptureViewListener): void;
removeListener(listener: DataCaptureViewListener): void;
viewPointForFramePoint(point: Point): Promise<Point>;
viewQuadrilateralForFrameQuadrilateral(quadrilateral: Quadrilateral): Promise<Quadrilateral>;
addControl(control: Control): void;
addControlWithAnchorAndOffset(control: Control, anchor: Anchor, offset: PointWithUnit): void;
removeControl(control: Control): void;
componentWillUnmount(): void;
componentDidMount(): void;
render(): React.JSX.Element;
private createDataCaptureView;
private removeAllOverlays;
}
export {};