NativeScript Fancy Camera
Installation
tns plugin add nativescript-fancy-camera
Usage
Basic Camera
takePhoto
;;fc.takePhoto.then;
recordVideo
;; fc.record.then;
showCamera
Allows taking photos (tap) or recording videos (using longPress)
;; fc.show.then;
Camera View
;cameraView.startRecording;
API
Method | Default | Type | Description |
---|---|---|---|
start | void | Starts the camera preview | |
stop | void | Stop the camera preview | |
startRecording | void | Start recording camera preview. | |
stopRecording | void | Stop recording camera preview. | |
toggleCamera | void | Toggles between front or the back camera. | |
duration | int | Get the current recording video duration. | |
cameraPosition | BACK | void | Gets or Sets camera position |
quality | MAX_480P | void | Gets or sets Video Quality |
toggleFlash | off | void | Toggle the device flash mode |
takePhoto | void | Capture photo |
License
Apache License Version 2.0, January 2004
ScreenShots
Android | IOS |
---|---|
Coming Soon |