@simplysm/capacitor-plugin-intent 12.16.41 → 12.16.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,6 +8,10 @@ Capacitor Intent Plugin -- Android intent send/receive for industrial devices (b
|
|
|
8
8
|
npm install @simplysm/capacitor-plugin-intent
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
**Peer dependencies:**
|
|
12
|
+
|
|
13
|
+
- `@capacitor/core` ^7.4.4
|
|
14
|
+
|
|
11
15
|
## API Overview
|
|
12
16
|
|
|
13
17
|
| API | Type | Description |
|
|
@@ -26,7 +30,9 @@ Result object received from an intent or launch intent.
|
|
|
26
30
|
|
|
27
31
|
```typescript
|
|
28
32
|
export interface IIntentResult {
|
|
33
|
+
/** Intent action */
|
|
29
34
|
action?: string;
|
|
35
|
+
/** Extra data */
|
|
30
36
|
extras?: Record<string, unknown>;
|
|
31
37
|
}
|
|
32
38
|
```
|
|
@@ -42,11 +48,17 @@ Options for starting an activity and receiving its result.
|
|
|
42
48
|
|
|
43
49
|
```typescript
|
|
44
50
|
export interface IStartActivityForResultOptions {
|
|
51
|
+
/** Intent action */
|
|
45
52
|
action: string;
|
|
53
|
+
/** Data URI */
|
|
46
54
|
uri?: string;
|
|
55
|
+
/** Extra data */
|
|
47
56
|
extras?: Record<string, unknown>;
|
|
57
|
+
/** Target package name */
|
|
48
58
|
package?: string;
|
|
59
|
+
/** Target component class name */
|
|
49
60
|
component?: string;
|
|
61
|
+
/** MIME type */
|
|
50
62
|
type?: string;
|
|
51
63
|
}
|
|
52
64
|
```
|
|
@@ -66,8 +78,11 @@ Result returned from a started activity.
|
|
|
66
78
|
|
|
67
79
|
```typescript
|
|
68
80
|
export interface IActivityResult {
|
|
81
|
+
/** Activity result code (RESULT_OK = -1, RESULT_CANCELED = 0) */
|
|
69
82
|
resultCode: number;
|
|
83
|
+
/** Result data URI */
|
|
70
84
|
data?: string;
|
|
85
|
+
/** Result extras */
|
|
71
86
|
extras?: Record<string, unknown>;
|
|
72
87
|
}
|
|
73
88
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/capacitor-plugin-intent",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.42",
|
|
4
4
|
"description": "심플리즘 패키지 - Capacitor Intent Plugin",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"@capacitor/core": "^7.4.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@capacitor/core": "^7.6.
|
|
24
|
+
"@capacitor/core": "^7.6.1"
|
|
25
25
|
}
|
|
26
26
|
}
|