refactor(media-capture):

This commit is contained in:
Guille 2016-07-17 20:00:11 +02:00
parent 34e038d3ca
commit 6791754874

View File

@ -1,6 +1,9 @@
import {Plugin, Cordova, CordovaProperty} from './plugin'; import { Cordova, CordovaProperty, Plugin } from './plugin';
import {Observable} from 'rxjs/Rx'; import { Observable } from 'rxjs/Rx';
declare var navigator: any; declare var navigator: any;
/** /**
* @name Media Capture * @name Media Capture
* @description * @description
@ -59,7 +62,7 @@ export class MediaCapture {
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static captureAudio(options?: CaptureAudioOptions): Promise<MediaFile[]|CaptureError> {return; } static captureAudio(options?: CaptureAudioOptions): Promise<MediaFile[] | CaptureError> { return; }
/** /**
* Start the camera application and return information about captured image files. * Start the camera application and return information about captured image files.
@ -68,7 +71,7 @@ export class MediaCapture {
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static captureImage(options?: CaptureImageOptions): Promise<MediaFile[]|CaptureError> {return; } static captureImage(options?: CaptureImageOptions): Promise<MediaFile[] | CaptureError> { return; }
/** /**
* Start the video recorder application and return information about captured video clip files. * Start the video recorder application and return information about captured video clip files.
@ -77,7 +80,7 @@ export class MediaCapture {
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static captureVideo(options?: CaptureVideoOptions): Promise<MediaFile[]|CaptureError> {return; } static captureVideo(options?: CaptureVideoOptions): Promise<MediaFile[] | CaptureError> { return; }
/** /**
* is fired if the capture call is successful * is fired if the capture call is successful
@ -86,7 +89,7 @@ export class MediaCapture {
eventObservable: true, eventObservable: true,
event: 'pendingcaptureresult' event: 'pendingcaptureresult'
}) })
static onPendingCaptureResult(): Observable<MediaFile[]> {return; } static onPendingCaptureResult(): Observable<MediaFile[]> { return; }
/** /**
* is fired if the capture call is unsuccessful * is fired if the capture call is unsuccessful
@ -95,7 +98,7 @@ export class MediaCapture {
eventObservable: true, eventObservable: true,
event: 'pendingcaptureerror' event: 'pendingcaptureerror'
}) })
static onPendingCaptureError(): Observable<CaptureError> {return; } static onPendingCaptureError(): Observable<CaptureError> { return; }
} }
/** /**