-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baadb4e
commit 1ad91b9
Showing
4 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ var email = require("nativescript-email"); | |
to: ['[email protected]', '[email protected]'], | ||
cc: ['[email protected]'], | ||
bcc: ['[email protected]', '[email protected]'] | ||
}).then(function(r) { | ||
}).then(function() { | ||
console.log("Email composer closed"); | ||
}); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
declare module "nativescript-email" { | ||
|
||
/** | ||
* The options object passed into the compose function. | ||
*/ | ||
export interface ComposeOptions { | ||
/** | ||
* The subject of your email. | ||
*/ | ||
subject?: string; | ||
|
||
/** | ||
* The plugin will automatically handle plain and html email content. | ||
*/ | ||
body?: string; | ||
|
||
/** | ||
* A string array of email addresses. | ||
* Known issue: on Android only the first item in the array is added. | ||
*/ | ||
to?: string[]; | ||
|
||
/** | ||
* A string array of email addresses. | ||
* Known issue: on Android only the first item in the array is added. | ||
*/ | ||
cc?: string[]; | ||
|
||
/** | ||
* A string array of email addresses. | ||
* Known issue: on Android only the first item in the array is added. | ||
*/ | ||
bcc?: string[]; | ||
} | ||
|
||
export function available(): Promise<boolean>; | ||
export function compose(options: ComposeOptions): Promise<any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters