8000 release(email): 2.0.2 - ios viewcontroller control and improvements · NativeScript/plugins@e9a1662 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9a1662

Browse files
committed
release(email): 2.0.2 - ios viewcontroller control and improvements
1 parent 1125a65 commit e9a1662

File tree

3 files changed

+231
-228
lines changed

3 files changed

+231
-228
lines changed

packages/email/index.d.ts

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,78 @@
11
export interface Attachment {
2-
/**
3-
* The name used for the attachment.
4-
* Example:
5-
*
6-
* fileName: 'Cute-Kitten.png'
7-
*/
8-
fileName: string;
2+
/**
3+
* The name used for the attachment.
4+
* Example:
5+
*
6+
* fileName: 'Cute-Kitten.png'
7+
*/
8+
fileName: string;
99

10-
/**
11-
* There are various ways to use the path param:
12-
*
13-
* - base64 encoded: 'base64://iVBORw..XYZ'
14-
* - local app folder 'file://..
15-
* - anywhere on the device: 'file:///..'
16-
* - or '/some/path/to/file.png'
17-
*/
18-
path: string;
10+
/**
11+
* There are various ways to use the path param:
12+
*
13+
* - base64 encoded: 'base64://iVBORw..XYZ'
14+
* - local app folder 'file://..
15+
* - anywhere on the device: 'file:///..'
16+
* - or '/some/path/to/file.png'
17+
*/
18+
path: string;
1919

20-
/**
21-
* Used to help the iOS figure out how to send the file (not used on Android).
22-
* Example:
23-
*
24-
* mimeType: 'image/png'
25-
*/
26-
mimeType: string;
20+
/**
21+
* Used to help the iOS figure out how to send the file (not used on Android).
22+
* Example:
23+
*
24+
* mimeType: 'image/png'
25+
*/
26+
mimeType: string;
2727
}
2828

2929
/**
3030
* The options object passed into the compose function.
3131
*/
3232
export interface ComposeOptions {
33-
/**
34-
* The subject of your email.
35-
*/
36-
subject?: string;
33+
/**
34+
* The subject of your email.
35+
*/
36+
subject?: string;
3737

38-
/**
39-
* The plugin will automatically handle plain and html email content.
40-
*/
41-
body?: string;
38+
/**
39+
* The plugin will automatically handle plain and html email content.
40+
*/
41+
body?: string;
4242

43-
/**
44-
* A string array of email addresses.
45-
* Known issue: on Android only the first item in the array is added.
46-
*/
47-
to?: string[];
43+
/**
44+
* A string array of email addresses.
45+
* Known issue: on Android only the first item in the array is added.
46+
*/
47+
to?: string[];
4848

49-
/**
50-
* A string array of email addresses.
51-
* Known issue: on Android only the first item in the array is added.
52-
*/
53-
cc?: string[];
49+
/**
50+
* A string array of email addresses.
51+
* Known issue: on Android only the first item in the array is added.
52+
*/
53+
cc?: string[];
5454

55-
/**
56-
* A string array of email addresses.
57-
* Known issue: on Android only the first item in the array is added.
58-
*/
59-
bcc?: string[];
55+
/**
56+
* A string array of email addresses.
57+
* Known issue: on Android only the first item in the array is added.
58+
*/
59+
bcc?: string[];
6060

61-
/**
62-
* An optional Array of attachments.
63-
*/
64-
attachments?: Array<Attachment>;
61+
/**
62+
* An optional Array of attachments.
63+
*/
9E61 64+
attachments?: Array<Attachment>;
6565

66-
/**
67-
* @deprecated No longer used, but keeping it around to notify you.
68-
*/
69-
appPickerTitle?: string;
66+
/**
67+
* An optional iOS View Controller to open compose from
68+
* IOS ONLY
69+
*/
70+
iosViewController?: any;
71+
72+
/**
73+
* @deprecated No longer used, but keeping it around to notify you.
74+
*/
75+
appPickerTitle?: string;
7076
}
7177

7278
/**

0 commit comments

Comments
 (0)
0