@nativescript-community/ui-cameraview
    Preparing search index...

    Interface CameraPreviewInfo

    The PREVIEW stream's geometry — getCurrentResolutionInfo describes the still capture instead. The platform picks this resolution itself, so it cannot be computed from the requested aspect ratio.

    interface CameraPreviewInfo {
        cropHeight: number;
        cropWidth: number;
        height: number;
        rotation: number;
        stretch: ScaleType;
        width: number;
        zoomRatio: number;
    }
    Index

    Properties

    cropHeight: number
    cropWidth: number

    The part of the stream the platform keeps, px. Equal to the size when it keeps all of it.

    height: number
    rotation: number

    Degrees the view rotates the stream by to stand it upright: 0, 90, 180 or 270.

    stretch: ScaleType

    How that is fitted into the view — the EFFECTIVE value, not the property's default.

    width: number

    Stream size in the CAMERA's orientation, px.

    zoomRatio: number