feat(camera-preview): add record video functions (#3463)

* Update index.ts

Added video instance

* Fixed lints

Fixed lints
This commit is contained in:
Praveen Challa 2020-06-23 22:31:14 +05:30 committed by GitHub
parent b2afc131ca
commit 7ae1df2489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,20 @@ export class CameraPreview extends IonicNativePlugin {
startCamera(options: CameraPreviewOptions): Promise<any> {
return;
}
/**
* Starts the camera video instance.
* @param {any} options
* @return {Promise<any>}
*/
@Cordova({
successIndex: 1,
errorIndex: 2,
})
startRecordVideo(options: any): Promise<any> {
return;
}
/**
* Stops the camera preview instance. (iOS & Android)
@ -211,6 +225,15 @@ export class CameraPreview extends IonicNativePlugin {
stopCamera(): Promise<any> {
return;
}
/**
* Stops the camera video instance. (iOS & Android)
* @return {Promise<any>}
*/
@Cordova()
stopRecordVideo(): Promise<any> {
return;
}
/**
* Switch from the rear camera and front camera, if available.