File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,14 @@ EmailComposer.open({
120
120
### hasAccount()
121
121
122
122
``` typescript
123
- hasAccount () => Promise < { hasAccount : boolean ; } >
123
+ hasAccount () => Promise < HasAccountResult >
124
124
```
125
125
126
126
Checks if the User can send a Mail
127
127
iOS: Check if the current Device is configured to send mail
128
128
Android: Currently does nothing
129
129
130
- ** Returns:** <code >Promise< ; { hasAccount: boolean; } > ; </code >
130
+ ** Returns:** <code >Promise< ; < a href = " #hasaccountresult " >HasAccountResult</ a > > ; </code >
131
131
132
132
--------------------
133
133
@@ -150,6 +150,13 @@ Open the E-Mail Composer
150
150
### Interfaces
151
151
152
152
153
+ #### HasAccountResult
154
+
155
+ | Prop | Type |
156
+ | ---------------- | -------------------- |
157
+ | ** ` hasAccount ` ** | <code >boolean</code > |
158
+
159
+
153
160
#### OpenOptions
154
161
155
162
| Prop | Type | Description |
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export interface EmailComposerPlugin {
6
6
*
7
7
* @since 1.0.0
8
8
*/
9
- hasAccount ( ) : Promise < { hasAccount : boolean } > ;
9
+ hasAccount ( ) : Promise < HasAccountResult > ;
10
10
11
11
/**
12
12
* Open the E-Mail Composer
@@ -17,6 +17,13 @@ export interface EmailComposerPlugin {
17
17
open ( options ?: OpenOptions ) : Promise < void > ;
18
18
}
19
19
20
+ export interface HasAccountResult {
21
+ /**
22
+ * @since 1.0.0
23
+ */
24
+ hasAccount : boolean ;
25
+ }
26
+
20
27
export interface OpenOptions {
21
28
/**
22
29
* email addresses for TO field
You can’t perform that action at this time.
0 commit comments