diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index 797b9382d..e0983440c 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -259,6 +259,7 @@ export function CordovaInstance(opts: any = {}) { */ export function CordovaProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: () => { if (checkAvailability(target, key) === true) { return getPlugin(target.constructor.getPluginRef())[key]; @@ -282,6 +283,7 @@ export function CordovaProperty(target: any, key: string) { */ export function InstanceProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: function(){ return this._objectInstance[key]; }, diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 5b4a6fea9..36365ce52 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -57,7 +57,7 @@ export interface CameraPreviewPictureOptions { * * @usage * ```typescript - * import { CameraPreview, PictureOptions, CameraPreviewOptions, CameraPreviewDimensions } from 'ionic-native'; + * import { CameraPreview, PictureOptions, CameraPreviewOptions, CameraPreviewDimensions } from '@ionic-native/camera-preview'; * * constructor(private cameraPreview: CameraPreview) { } * @@ -211,7 +211,7 @@ export class CameraPreview { /** * Set the zoom (Android) - * @param zoom {number} Zoom value + * @param [zoom] {number} Zoom value * @return {Promise} */ @Cordova({ @@ -223,7 +223,7 @@ export class CameraPreview { /** * Set the preview Size - * @param dimensions {CameraPreviewDimensions} + * @param [dimensions] {CameraPreviewDimensions} * @return {Promise} */ @Cordova({ @@ -235,7 +235,7 @@ export class CameraPreview { /** * Set the flashmode - * @param flashMode {string} 'off' (iOS & Android), 'on' (iOS & Android), 'auto' (iOS & Android), 'torch' (Android) + * @param [flashMode] {string} 'off' (iOS & Android), 'on' (iOS & Android), 'auto' (iOS & Android), 'torch' (Android) * @return {Promise} */ @Cordova({