Merge branch 'master' into v5

This commit is contained in:
Daniel
2018-04-06 23:06:59 +02:00
8 changed files with 157 additions and 55 deletions
@@ -1,8 +1,12 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaCheck, IonicNativePlugin, Plugin, getPromise } from '@ionic-native/core';
import {
Cordova,
CordovaCheck,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
export interface EmailComposerOptions {
/**
* App to send the email with
*/
@@ -43,9 +47,12 @@ export interface EmailComposerOptions {
*/
isHtml?: boolean;
/**
* Content type of the email (Android only)
*/
type?: string;
}
/**
* @name Email Composer
* @description
@@ -106,11 +113,10 @@ export interface EmailComposerOptions {
plugin: 'cordova-plugin-email-composer',
pluginRef: 'cordova.plugins.email',
repo: 'https://github.com/katzer/cordova-plugin-email-composer',
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows', 'macOS']
})
@Injectable()
export class EmailComposer extends IonicNativePlugin {
/**
* Verifies if sending emails is supported on the device.
*
@@ -171,8 +177,7 @@ export class EmailComposer extends IonicNativePlugin {
* @param packageName {string} The package name
*/
@Cordova()
addAlias(alias: string, packageName: string): void {
}
addAlias(alias: string, packageName: string): void {}
/**
* Displays the email composer pre-filled with data.
@@ -188,5 +193,4 @@ export class EmailComposer extends IonicNativePlugin {
open(options: EmailComposerOptions, scope?: any): Promise<any> {
return;
}
}