From 67917548742d74c94e46285162c337dbed5f10ea Mon Sep 17 00:00:00 2001 From: Guille <darkwilly92@gmail.com> Date: Sun, 17 Jul 2016 20:00:11 +0200 Subject: [PATCH] refactor(media-capture): --- src/plugins/media-capture.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/plugins/media-capture.ts b/src/plugins/media-capture.ts index 4366dc516..668dc5c22 100644 --- a/src/plugins/media-capture.ts +++ b/src/plugins/media-capture.ts @@ -1,6 +1,9 @@ -import {Plugin, Cordova, CordovaProperty} from './plugin'; -import {Observable} from 'rxjs/Rx'; +import { Cordova, CordovaProperty, Plugin } from './plugin'; +import { Observable } from 'rxjs/Rx'; + + declare var navigator: any; + /** * @name Media Capture * @description @@ -59,7 +62,7 @@ export class MediaCapture { @Cordova({ 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. @@ -68,7 +71,7 @@ export class MediaCapture { @Cordova({ 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. @@ -77,7 +80,7 @@ export class MediaCapture { @Cordova({ 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 @@ -86,7 +89,7 @@ export class MediaCapture { eventObservable: true, event: 'pendingcaptureresult' }) - static onPendingCaptureResult(): Observable<MediaFile[]> {return; } + static onPendingCaptureResult(): Observable<MediaFile[]> { return; } /** * is fired if the capture call is unsuccessful @@ -95,7 +98,7 @@ export class MediaCapture { eventObservable: true, event: 'pendingcaptureerror' }) - static onPendingCaptureError(): Observable<CaptureError> {return; } + static onPendingCaptureError(): Observable<CaptureError> { return; } } /**