@capgo/capacitor-intent-launcher 0.0.1
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/LICENSE +373 -0
- package/README.md +214 -0
- package/android/build.gradle +58 -0
- package/android/src/main/java/app/capgo/capacitor/intentlauncher/IntentLauncherPlugin.java +284 -0
- package/dist/docs.json +455 -0
- package/dist/esm/definitions.d.ts +609 -0
- package/dist/esm/definitions.js +415 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +10 -0
- package/dist/esm/web.js +16 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +445 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +448 -0
- package/dist/plugin.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capacitor Intent Launcher Plugin for launching Android intents and opening system settings.
|
|
3
|
+
*
|
|
4
|
+
* @since 1.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface IntentLauncherPlugin {
|
|
7
|
+
/**
|
|
8
|
+
* Starts an Android activity for the given action.
|
|
9
|
+
*
|
|
10
|
+
* @param options - The intent launch options including action and optional parameters
|
|
11
|
+
* @returns Promise that resolves with the result from the activity
|
|
12
|
+
* @throws Error if the activity cannot be started or is not available
|
|
13
|
+
* @platform Android
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Open location settings
|
|
18
|
+
* const result = await IntentLauncher.startActivityAsync({
|
|
19
|
+
* action: ActivityAction.LOCATION_SOURCE_SETTINGS
|
|
20
|
+
* });
|
|
21
|
+
*
|
|
22
|
+
* // Open a specific app settings
|
|
23
|
+
* const result = await IntentLauncher.startActivityAsync({
|
|
24
|
+
* action: ActivityAction.APPLICATION_DETAILS_SETTINGS,
|
|
25
|
+
* data: 'package:com.example.app'
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
startActivityAsync(options: IntentLauncherParams): Promise<IntentLauncherResult>;
|
|
30
|
+
/**
|
|
31
|
+
* Opens an application by its package name.
|
|
32
|
+
*
|
|
33
|
+
* @param options - The package name of the application to open
|
|
34
|
+
* @throws Error if the application is not installed or cannot be opened
|
|
35
|
+
* @platform Android
|
|
36
|
+
* @since 1.0.0
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* // Open Gmail app
|
|
40
|
+
* await IntentLauncher.openApplication({ packageName: 'com.google.android.gm' });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
openApplication(options: OpenApplicationOptions): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the application icon as a base64-encoded PNG string.
|
|
46
|
+
*
|
|
47
|
+
* @param options - The package name of the application
|
|
48
|
+
* @returns Promise that resolves with the base64 icon data or empty string if unavailable
|
|
49
|
+
* @platform Android
|
|
50
|
+
* @since 1.0.0
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* const { icon } = await IntentLauncher.getApplicationIconAsync({
|
|
54
|
+
* packageName: 'com.google.android.gm'
|
|
55
|
+
* });
|
|
56
|
+
* if (icon) {
|
|
57
|
+
* const img = document.createElement('img');
|
|
58
|
+
* img.src = icon;
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
getApplicationIconAsync(options: GetApplicationIconOptions): Promise<GetApplicationIconResult>;
|
|
63
|
+
/**
|
|
64
|
+
* Get the native Capacitor plugin version.
|
|
65
|
+
*
|
|
66
|
+
* @returns Promise that resolves with the plugin version
|
|
67
|
+
* @throws Error if getting the version fails
|
|
68
|
+
* @since 1.0.0
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const { version } = await IntentLauncher.getPluginVersion();
|
|
72
|
+
* console.log('Plugin version:', version);
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
getPluginVersion(): Promise<{
|
|
76
|
+
version: string;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Options for starting an activity.
|
|
81
|
+
*
|
|
82
|
+
* @since 1.0.0
|
|
83
|
+
*/
|
|
84
|
+
export interface IntentLauncherParams {
|
|
85
|
+
/**
|
|
86
|
+
* The action to perform. Use values from `ActivityAction` enum.
|
|
87
|
+
*
|
|
88
|
+
* @since 1.0.0
|
|
89
|
+
*/
|
|
90
|
+
action: string;
|
|
91
|
+
/**
|
|
92
|
+
* Optional category to add to the intent.
|
|
93
|
+
*
|
|
94
|
+
* @since 1.0.0
|
|
95
|
+
*/
|
|
96
|
+
category?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Optional class name for the component to launch.
|
|
99
|
+
*
|
|
100
|
+
* @since 1.0.0
|
|
101
|
+
*/
|
|
102
|
+
className?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Optional URI data for the intent. Must be a valid URI.
|
|
105
|
+
*
|
|
106
|
+
* @since 1.0.0
|
|
107
|
+
*/
|
|
108
|
+
data?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Optional extra data to pass to the intent as key-value pairs.
|
|
111
|
+
*
|
|
112
|
+
* @since 1.0.0
|
|
113
|
+
*/
|
|
114
|
+
extra?: Record<string, unknown>;
|
|
115
|
+
/**
|
|
116
|
+
* Optional intent flags as a bitmask.
|
|
117
|
+
*
|
|
118
|
+
* @since 1.0.0
|
|
119
|
+
*/
|
|
120
|
+
flags?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Optional package name for the component.
|
|
123
|
+
*
|
|
124
|
+
* @since 1.0.0
|
|
125
|
+
*/
|
|
126
|
+
packageName?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Optional MIME type for the intent data.
|
|
129
|
+
*
|
|
130
|
+
* @since 1.0.0
|
|
131
|
+
*/
|
|
132
|
+
type?: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Result from starting an activity.
|
|
136
|
+
*
|
|
137
|
+
* @since 1.0.0
|
|
138
|
+
*/
|
|
139
|
+
export interface IntentLauncherResult {
|
|
140
|
+
/**
|
|
141
|
+
* The result code returned by the activity.
|
|
142
|
+
*
|
|
143
|
+
* @since 1.0.0
|
|
144
|
+
*/
|
|
145
|
+
resultCode: ResultCode;
|
|
146
|
+
/**
|
|
147
|
+
* Optional data URI returned by the activity.
|
|
148
|
+
*
|
|
149
|
+
* @since 1.0.0
|
|
150
|
+
*/
|
|
151
|
+
data?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Optional extra data returned by the activity.
|
|
154
|
+
*
|
|
155
|
+
* @since 1.0.0
|
|
156
|
+
*/
|
|
157
|
+
extra?: Record<string, unknown>;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Options for opening an application.
|
|
161
|
+
*
|
|
162
|
+
* @since 1.0.0
|
|
163
|
+
*/
|
|
164
|
+
export interface OpenApplicationOptions {
|
|
165
|
+
/**
|
|
166
|
+
* The package name of the application to open.
|
|
167
|
+
*
|
|
168
|
+
* @since 1.0.0
|
|
169
|
+
*/
|
|
170
|
+
packageName: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Options for getting an application icon.
|
|
174
|
+
*
|
|
175
|
+
* @since 1.0.0
|
|
176
|
+
*/
|
|
177
|
+
export interface GetApplicationIconOptions {
|
|
178
|
+
/**
|
|
179
|
+
* The package name of the application.
|
|
180
|
+
*
|
|
181
|
+
* @since 1.0.0
|
|
182
|
+
*/
|
|
183
|
+
packageName: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Result from getting an application icon.
|
|
187
|
+
*
|
|
188
|
+
* @since 1.0.0
|
|
189
|
+
*/
|
|
190
|
+
export interface GetApplicationIconResult {
|
|
191
|
+
/**
|
|
192
|
+
* The application icon as a base64-encoded PNG string prefixed with 'data:image/png;base64,'.
|
|
193
|
+
* Empty string if the icon is not available.
|
|
194
|
+
*
|
|
195
|
+
* @since 1.0.0
|
|
196
|
+
*/
|
|
197
|
+
icon: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Result codes returned by activities.
|
|
201
|
+
*
|
|
202
|
+
* @since 1.0.0
|
|
203
|
+
*/
|
|
204
|
+
export declare enum ResultCode {
|
|
205
|
+
/**
|
|
206
|
+
* The activity completed successfully.
|
|
207
|
+
*/
|
|
208
|
+
Success = -1,
|
|
209
|
+
/**
|
|
210
|
+
* The activity was canceled by the user.
|
|
211
|
+
*/
|
|
212
|
+
Canceled = 0,
|
|
213
|
+
/**
|
|
214
|
+
* First custom user-defined result code.
|
|
215
|
+
*/
|
|
216
|
+
FirstUser = 1
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Android activity actions for use with `startActivityAsync`.
|
|
220
|
+
* These map to Android's `android.provider.Settings` and `android.content.Intent` action constants.
|
|
221
|
+
*
|
|
222
|
+
* @since 1.0.0
|
|
223
|
+
*/
|
|
224
|
+
export declare enum ActivityAction {
|
|
225
|
+
/**
|
|
226
|
+
* Opens accessibility settings.
|
|
227
|
+
*/
|
|
228
|
+
ACCESSIBILITY_SETTINGS = "android.settings.ACCESSIBILITY_SETTINGS",
|
|
229
|
+
/**
|
|
230
|
+
* Opens the add account screen.
|
|
231
|
+
*/
|
|
232
|
+
ADD_ACCOUNT = "android.settings.ADD_ACCOUNT_SETTINGS",
|
|
233
|
+
/**
|
|
234
|
+
* Opens airplane mode settings.
|
|
235
|
+
*/
|
|
236
|
+
AIRPLANE_MODE_SETTINGS = "android.settings.AIRPLANE_MODE_SETTINGS",
|
|
237
|
+
/**
|
|
238
|
+
* Opens APN settings.
|
|
239
|
+
*/
|
|
240
|
+
APN_SETTINGS = "android.settings.APN_SETTINGS",
|
|
241
|
+
/**
|
|
242
|
+
* Opens app notification settings.
|
|
243
|
+
*/
|
|
244
|
+
APP_NOTIFICATION_SETTINGS = "android.settings.APP_NOTIFICATION_SETTINGS",
|
|
245
|
+
/**
|
|
246
|
+
* Opens application details settings.
|
|
247
|
+
*/
|
|
248
|
+
APPLICATION_DETAILS_SETTINGS = "android.settings.APPLICATION_DETAILS_SETTINGS",
|
|
249
|
+
/**
|
|
250
|
+
* Opens application development settings.
|
|
251
|
+
*/
|
|
252
|
+
APPLICATION_DEVELOPMENT_SETTINGS = "android.settings.APPLICATION_DEVELOPMENT_SETTINGS",
|
|
253
|
+
/**
|
|
254
|
+
* Opens application settings.
|
|
255
|
+
*/
|
|
256
|
+
APPLICATION_SETTINGS = "android.settings.APPLICATION_SETTINGS",
|
|
257
|
+
/**
|
|
258
|
+
* Opens battery saver settings.
|
|
259
|
+
*/
|
|
260
|
+
BATTERY_SAVER_SETTINGS = "android.settings.BATTERY_SAVER_SETTINGS",
|
|
261
|
+
/**
|
|
262
|
+
* Opens Bluetooth settings.
|
|
263
|
+
*/
|
|
264
|
+
BLUETOOTH_SETTINGS = "android.settings.BLUETOOTH_SETTINGS",
|
|
265
|
+
/**
|
|
266
|
+
* Opens captioning settings.
|
|
267
|
+
*/
|
|
268
|
+
CAPTIONING_SETTINGS = "android.settings.CAPTIONING_SETTINGS",
|
|
269
|
+
/**
|
|
270
|
+
* Opens cast settings.
|
|
271
|
+
*/
|
|
272
|
+
CAST_SETTINGS = "android.settings.CAST_SETTINGS",
|
|
273
|
+
/**
|
|
274
|
+
* Opens data roaming settings.
|
|
275
|
+
*/
|
|
276
|
+
DATA_ROAMING_SETTINGS = "android.settings.DATA_ROAMING_SETTINGS",
|
|
277
|
+
/**
|
|
278
|
+
* Opens date settings.
|
|
279
|
+
*/
|
|
280
|
+
DATE_SETTINGS = "android.settings.DATE_SETTINGS",
|
|
281
|
+
/**
|
|
282
|
+
* Opens device info settings.
|
|
283
|
+
*/
|
|
284
|
+
DEVICE_INFO_SETTINGS = "android.settings.DEVICE_INFO_SETTINGS",
|
|
285
|
+
/**
|
|
286
|
+
* Opens display settings.
|
|
287
|
+
*/
|
|
288
|
+
DISPLAY_SETTINGS = "android.settings.DISPLAY_SETTINGS",
|
|
289
|
+
/**
|
|
290
|
+
* Opens dream settings (screen saver).
|
|
291
|
+
*/
|
|
292
|
+
DREAM_SETTINGS = "android.settings.DREAM_SETTINGS",
|
|
293
|
+
/**
|
|
294
|
+
* Opens hard keyboard settings.
|
|
295
|
+
*/
|
|
296
|
+
HARD_KEYBOARD_SETTINGS = "android.settings.HARD_KEYBOARD_SETTINGS",
|
|
297
|
+
/**
|
|
298
|
+
* Opens home settings.
|
|
299
|
+
*/
|
|
300
|
+
HOME_SETTINGS = "android.settings.HOME_SETTINGS",
|
|
301
|
+
/**
|
|
302
|
+
* Opens ignore battery optimization settings.
|
|
303
|
+
*/
|
|
304
|
+
IGNORE_BATTERY_OPTIMIZATION_SETTINGS = "android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS",
|
|
305
|
+
/**
|
|
306
|
+
* Opens input method settings.
|
|
307
|
+
*/
|
|
308
|
+
INPUT_METHOD_SETTINGS = "android.settings.INPUT_METHOD_SETTINGS",
|
|
309
|
+
/**
|
|
310
|
+
* Opens input method subtype settings.
|
|
311
|
+
*/
|
|
312
|
+
INPUT_METHOD_SUBTYPE_SETTINGS = "android.settings.INPUT_METHOD_SUBTYPE_SETTINGS",
|
|
313
|
+
/**
|
|
314
|
+
* Opens internal storage settings.
|
|
315
|
+
*/
|
|
316
|
+
INTERNAL_STORAGE_SETTINGS = "android.settings.INTERNAL_STORAGE_SETTINGS",
|
|
317
|
+
/**
|
|
318
|
+
* Opens locale settings.
|
|
319
|
+
*/
|
|
320
|
+
LOCALE_SETTINGS = "android.settings.LOCALE_SETTINGS",
|
|
321
|
+
/**
|
|
322
|
+
* Opens location source settings.
|
|
323
|
+
*/
|
|
324
|
+
LOCATION_SOURCE_SETTINGS = "android.settings.LOCATION_SOURCE_SETTINGS",
|
|
325
|
+
/**
|
|
326
|
+
* Opens managed profile settings.
|
|
327
|
+
*/
|
|
328
|
+
MANAGED_PROFILE_SETTINGS = "android.settings.MANAGED_PROFILE_SETTINGS",
|
|
329
|
+
/**
|
|
330
|
+
* Opens manage all applications settings.
|
|
331
|
+
*/
|
|
332
|
+
MANAGE_ALL_APPLICATIONS_SETTINGS = "android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS",
|
|
333
|
+
/**
|
|
334
|
+
* Opens manage applications settings.
|
|
335
|
+
*/
|
|
336
|
+
MANAGE_APPLICATIONS_SETTINGS = "android.settings.MANAGE_APPLICATIONS_SETTINGS",
|
|
337
|
+
/**
|
|
338
|
+
* Opens manage default apps settings.
|
|
339
|
+
*/
|
|
340
|
+
MANAGE_DEFAULT_APPS_SETTINGS = "android.settings.MANAGE_DEFAULT_APPS_SETTINGS",
|
|
341
|
+
/**
|
|
342
|
+
* Opens memory card settings.
|
|
343
|
+
*/
|
|
344
|
+
MEMORY_CARD_SETTINGS = "android.settings.MEMORY_CARD_SETTINGS",
|
|
345
|
+
/**
|
|
346
|
+
* Opens network operator settings.
|
|
347
|
+
*/
|
|
348
|
+
NETWORK_OPERATOR_SETTINGS = "android.settings.NETWORK_OPERATOR_SETTINGS",
|
|
349
|
+
/**
|
|
350
|
+
* Opens NFC payment settings.
|
|
351
|
+
*/
|
|
352
|
+
NFC_PAYMENT_SETTINGS = "android.settings.NFC_PAYMENT_SETTINGS",
|
|
353
|
+
/**
|
|
354
|
+
* Opens NFC settings.
|
|
355
|
+
*/
|
|
356
|
+
NFC_SETTINGS = "android.settings.NFC_SETTINGS",
|
|
357
|
+
/**
|
|
358
|
+
* Opens night display settings.
|
|
359
|
+
*/
|
|
360
|
+
NIGHT_DISPLAY_SETTINGS = "android.settings.NIGHT_DISPLAY_SETTINGS",
|
|
361
|
+
/**
|
|
362
|
+
* Opens notification listener settings.
|
|
363
|
+
*/
|
|
364
|
+
NOTIFICATION_LISTENER_SETTINGS = "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS",
|
|
365
|
+
/**
|
|
366
|
+
* Opens notification policy access settings.
|
|
367
|
+
*/
|
|
368
|
+
NOTIFICATION_POLICY_ACCESS_SETTINGS = "android.settings.NOTIFICATION_POLICY_ACCESS_SETTINGS",
|
|
369
|
+
/**
|
|
370
|
+
* Opens print settings.
|
|
371
|
+
*/
|
|
372
|
+
PRINT_SETTINGS = "android.settings.ACTION_PRINT_SETTINGS",
|
|
373
|
+
/**
|
|
374
|
+
* Opens privacy settings.
|
|
375
|
+
*/
|
|
376
|
+
PRIVACY_SETTINGS = "android.settings.PRIVACY_SETTINGS",
|
|
377
|
+
/**
|
|
378
|
+
* Opens quick launch settings.
|
|
379
|
+
*/
|
|
380
|
+
QUICK_LAUNCH_SETTINGS = "android.settings.QUICK_LAUNCH_SETTINGS",
|
|
381
|
+
/**
|
|
382
|
+
* Opens request ignore battery optimizations.
|
|
383
|
+
*/
|
|
384
|
+
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS = "android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS",
|
|
385
|
+
/**
|
|
386
|
+
* Opens search settings.
|
|
387
|
+
*/
|
|
388
|
+
SEARCH_SETTINGS = "android.search.action.SEARCH_SETTINGS",
|
|
389
|
+
/**
|
|
390
|
+
* Opens security settings.
|
|
391
|
+
*/
|
|
392
|
+
SECURITY_SETTINGS = "android.settings.SECURITY_SETTINGS",
|
|
393
|
+
/**
|
|
394
|
+
* Opens main settings screen.
|
|
395
|
+
*/
|
|
396
|
+
SETTINGS = "android.settings.SETTINGS",
|
|
397
|
+
/**
|
|
398
|
+
* Opens show regulatory info.
|
|
399
|
+
*/
|
|
400
|
+
SHOW_REGULATORY_INFO = "android.settings.SHOW_REGULATORY_INFO",
|
|
401
|
+
/**
|
|
402
|
+
* Opens sound settings.
|
|
403
|
+
*/
|
|
404
|
+
SOUND_SETTINGS = "android.settings.SOUND_SETTINGS",
|
|
405
|
+
/**
|
|
406
|
+
* Opens sync settings.
|
|
407
|
+
*/
|
|
408
|
+
SYNC_SETTINGS = "android.settings.SYNC_SETTINGS",
|
|
409
|
+
/**
|
|
410
|
+
* Opens usage access settings.
|
|
411
|
+
*/
|
|
412
|
+
USAGE_ACCESS_SETTINGS = "android.settings.USAGE_ACCESS_SETTINGS",
|
|
413
|
+
/**
|
|
414
|
+
* Opens user dictionary settings.
|
|
415
|
+
*/
|
|
416
|
+
USER_DICTIONARY_SETTINGS = "android.settings.USER_DICTIONARY_SETTINGS",
|
|
417
|
+
/**
|
|
418
|
+
* Opens voice input settings.
|
|
419
|
+
*/
|
|
420
|
+
VOICE_INPUT_SETTINGS = "android.settings.VOICE_INPUT_SETTINGS",
|
|
421
|
+
/**
|
|
422
|
+
* Opens VPN settings.
|
|
423
|
+
*/
|
|
424
|
+
VPN_SETTINGS = "android.settings.VPN_SETTINGS",
|
|
425
|
+
/**
|
|
426
|
+
* Opens VR listener settings.
|
|
427
|
+
*/
|
|
428
|
+
VR_LISTENER_SETTINGS = "android.settings.VR_LISTENER_SETTINGS",
|
|
429
|
+
/**
|
|
430
|
+
* Opens webview settings.
|
|
431
|
+
*/
|
|
432
|
+
WEBVIEW_SETTINGS = "android.settings.WEBVIEW_SETTINGS",
|
|
433
|
+
/**
|
|
434
|
+
* Opens WiFi IP settings.
|
|
435
|
+
*/
|
|
436
|
+
WIFI_IP_SETTINGS = "android.settings.WIFI_IP_SETTINGS",
|
|
437
|
+
/**
|
|
438
|
+
* Opens WiFi settings.
|
|
439
|
+
*/
|
|
440
|
+
WIFI_SETTINGS = "android.settings.WIFI_SETTINGS",
|
|
441
|
+
/**
|
|
442
|
+
* Opens wireless settings.
|
|
443
|
+
*/
|
|
444
|
+
WIRELESS_SETTINGS = "android.settings.WIRELESS_SETTINGS",
|
|
445
|
+
/**
|
|
446
|
+
* Opens ZEN mode priority settings.
|
|
447
|
+
*/
|
|
448
|
+
ZEN_MODE_PRIORITY_SETTINGS = "android.settings.ZEN_MODE_PRIORITY_SETTINGS",
|
|
449
|
+
/**
|
|
450
|
+
* View action for viewing data.
|
|
451
|
+
*/
|
|
452
|
+
VIEW = "android.intent.action.VIEW",
|
|
453
|
+
/**
|
|
454
|
+
* Call action for making phone calls.
|
|
455
|
+
*/
|
|
456
|
+
CALL = "android.intent.action.CALL",
|
|
457
|
+
/**
|
|
458
|
+
* Dial action for opening the dialer.
|
|
459
|
+
*/
|
|
460
|
+
DIAL = "android.intent.action.DIAL",
|
|
461
|
+
/**
|
|
462
|
+
* Send action for sending data.
|
|
463
|
+
*/
|
|
464
|
+
SEND = "android.intent.action.SEND",
|
|
465
|
+
/**
|
|
466
|
+
* Send multiple action for sending multiple items.
|
|
467
|
+
*/
|
|
468
|
+
SEND_MULTIPLE = "android.intent.action.SEND_MULTIPLE",
|
|
469
|
+
/**
|
|
470
|
+
* Pick action for picking data.
|
|
471
|
+
*/
|
|
472
|
+
PICK = "android.intent.action.PICK",
|
|
473
|
+
/**
|
|
474
|
+
* Edit action for editing data.
|
|
475
|
+
*/
|
|
476
|
+
EDIT = "android.intent.action.EDIT",
|
|
477
|
+
/**
|
|
478
|
+
* Delete action for deleting data.
|
|
479
|
+
*/
|
|
480
|
+
DELETE = "android.intent.action.DELETE",
|
|
481
|
+
/**
|
|
482
|
+
* Get content action for retrieving content.
|
|
483
|
+
*/
|
|
484
|
+
GET_CONTENT = "android.intent.action.GET_CONTENT",
|
|
485
|
+
/**
|
|
486
|
+
* Create shortcut action.
|
|
487
|
+
*/
|
|
488
|
+
CREATE_SHORTCUT = "android.intent.action.CREATE_SHORTCUT",
|
|
489
|
+
/**
|
|
490
|
+
* Insert action for inserting data.
|
|
491
|
+
*/
|
|
492
|
+
INSERT = "android.intent.action.INSERT",
|
|
493
|
+
/**
|
|
494
|
+
* Search action.
|
|
495
|
+
*/
|
|
496
|
+
SEARCH = "android.intent.action.SEARCH",
|
|
497
|
+
/**
|
|
498
|
+
* Web search action.
|
|
499
|
+
*/
|
|
500
|
+
WEB_SEARCH = "android.intent.action.WEB_SEARCH",
|
|
501
|
+
/**
|
|
502
|
+
* Sendto action for sending to a specific recipient.
|
|
503
|
+
*/
|
|
504
|
+
SENDTO = "android.intent.action.SENDTO",
|
|
505
|
+
/**
|
|
506
|
+
* Answer action for answering calls.
|
|
507
|
+
*/
|
|
508
|
+
ANSWER = "android.intent.action.ANSWER",
|
|
509
|
+
/**
|
|
510
|
+
* Attach data action.
|
|
511
|
+
*/
|
|
512
|
+
ATTACH_DATA = "android.intent.action.ATTACH_DATA",
|
|
513
|
+
/**
|
|
514
|
+
* Bug report action.
|
|
515
|
+
*/
|
|
516
|
+
BUG_REPORT = "android.intent.action.BUG_REPORT",
|
|
517
|
+
/**
|
|
518
|
+
* Chooser action.
|
|
519
|
+
*/
|
|
520
|
+
CHOOSER = "android.intent.action.CHOOSER",
|
|
521
|
+
/**
|
|
522
|
+
* Create document action.
|
|
523
|
+
*/
|
|
524
|
+
CREATE_DOCUMENT = "android.intent.action.CREATE_DOCUMENT",
|
|
525
|
+
/**
|
|
526
|
+
* Main action.
|
|
527
|
+
*/
|
|
528
|
+
MAIN = "android.intent.action.MAIN",
|
|
529
|
+
/**
|
|
530
|
+
* Manage network usage action.
|
|
531
|
+
*/
|
|
532
|
+
MANAGE_NETWORK_USAGE = "android.intent.action.MANAGE_NETWORK_USAGE",
|
|
533
|
+
/**
|
|
534
|
+
* Open document action.
|
|
535
|
+
*/
|
|
536
|
+
OPEN_DOCUMENT = "android.intent.action.OPEN_DOCUMENT",
|
|
537
|
+
/**
|
|
538
|
+
* Open document tree action.
|
|
539
|
+
*/
|
|
540
|
+
OPEN_DOCUMENT_TREE = "android.intent.action.OPEN_DOCUMENT_TREE",
|
|
541
|
+
/**
|
|
542
|
+
* Power usage summary action.
|
|
543
|
+
*/
|
|
544
|
+
POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY",
|
|
545
|
+
/**
|
|
546
|
+
* Process text action.
|
|
547
|
+
*/
|
|
548
|
+
PROCESS_TEXT = "android.intent.action.PROCESS_TEXT",
|
|
549
|
+
/**
|
|
550
|
+
* Quick view action.
|
|
551
|
+
*/
|
|
552
|
+
QUICK_VIEW = "android.intent.action.QUICK_VIEW",
|
|
553
|
+
/**
|
|
554
|
+
* Run action.
|
|
555
|
+
*/
|
|
556
|
+
RUN = "android.intent.action.RUN",
|
|
557
|
+
/**
|
|
558
|
+
* Screen off action.
|
|
559
|
+
*/
|
|
560
|
+
SCREEN_OFF = "android.intent.action.SCREEN_OFF",
|
|
561
|
+
/**
|
|
562
|
+
* Screen on action.
|
|
563
|
+
*/
|
|
564
|
+
SCREEN_ON = "android.intent.action.SCREEN_ON",
|
|
565
|
+
/**
|
|
566
|
+
* Set alarm action.
|
|
567
|
+
*/
|
|
568
|
+
SET_ALARM = "android.intent.action.SET_ALARM",
|
|
569
|
+
/**
|
|
570
|
+
* Set timer action.
|
|
571
|
+
*/
|
|
572
|
+
SET_TIMER = "android.intent.action.SET_TIMER",
|
|
573
|
+
/**
|
|
574
|
+
* Set wallpaper action.
|
|
575
|
+
*/
|
|
576
|
+
SET_WALLPAPER = "android.intent.action.SET_WALLPAPER",
|
|
577
|
+
/**
|
|
578
|
+
* Show alarms action.
|
|
579
|
+
*/
|
|
580
|
+
SHOW_ALARMS = "android.intent.action.SHOW_ALARMS",
|
|
581
|
+
/**
|
|
582
|
+
* Snooze alarm action.
|
|
583
|
+
*/
|
|
584
|
+
SNOOZE_ALARM = "android.intent.action.SNOOZE_ALARM",
|
|
585
|
+
/**
|
|
586
|
+
* Dismiss alarm action.
|
|
587
|
+
*/
|
|
588
|
+
DISMISS_ALARM = "android.intent.action.DISMISS_ALARM",
|
|
589
|
+
/**
|
|
590
|
+
* Dismiss timer action.
|
|
591
|
+
*/
|
|
592
|
+
DISMISS_TIMER = "android.intent.action.DISMISS_TIMER",
|
|
593
|
+
/**
|
|
594
|
+
* Sync action.
|
|
595
|
+
*/
|
|
596
|
+
SYNC = "android.intent.action.SYNC",
|
|
597
|
+
/**
|
|
598
|
+
* System tutorial action.
|
|
599
|
+
*/
|
|
600
|
+
SYSTEM_TUTORIAL = "android.intent.action.SYSTEM_TUTORIAL",
|
|
601
|
+
/**
|
|
602
|
+
* Uninstall package action.
|
|
603
|
+
*/
|
|
604
|
+
UNINSTALL_PACKAGE = "android.intent.action.UNINSTALL_PACKAGE",
|
|
605
|
+
/**
|
|
606
|
+
* Voice command action.
|
|
607
|
+
*/
|
|
608
|
+
VOICE_COMMAND = "android.intent.action.VOICE_COMMAND"
|
|
609
|
+
}
|