@capgo/capacitor-android-kiosk 7.0.0

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/dist/docs.json ADDED
@@ -0,0 +1,316 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorAndroidKioskPlugin",
4
+ "slug": "capacitorandroidkioskplugin",
5
+ "docs": "Capacitor Android Kiosk Plugin for controlling kiosk mode and launcher functionality.\nThis plugin is Android-only. For iOS kiosk mode, use the device's Guided Access feature.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "isInKioskMode",
15
+ "signature": "() => Promise<{ isInKioskMode: boolean; }>",
16
+ "parameters": [],
17
+ "returns": "Promise<{ isInKioskMode: boolean; }>",
18
+ "tags": [
19
+ {
20
+ "name": "returns",
21
+ "text": "Promise that resolves with kiosk mode status"
22
+ },
23
+ {
24
+ "name": "since",
25
+ "text": "1.0.0"
26
+ },
27
+ {
28
+ "name": "example",
29
+ "text": "```typescript\nconst { isInKioskMode } = await CapacitorAndroidKiosk.isInKioskMode();\nconsole.log('Kiosk mode active:', isInKioskMode);\n```"
30
+ }
31
+ ],
32
+ "docs": "Checks if the app is currently running in kiosk mode.",
33
+ "complexTypes": [],
34
+ "slug": "isinkioskmode"
35
+ },
36
+ {
37
+ "name": "isSetAsLauncher",
38
+ "signature": "() => Promise<{ isLauncher: boolean; }>",
39
+ "parameters": [],
40
+ "returns": "Promise<{ isLauncher: boolean; }>",
41
+ "tags": [
42
+ {
43
+ "name": "returns",
44
+ "text": "Promise that resolves with launcher status"
45
+ },
46
+ {
47
+ "name": "since",
48
+ "text": "1.0.0"
49
+ },
50
+ {
51
+ "name": "example",
52
+ "text": "```typescript\nconst { isLauncher } = await CapacitorAndroidKiosk.isSetAsLauncher();\nconsole.log('Is launcher:', isLauncher);\n```"
53
+ }
54
+ ],
55
+ "docs": "Checks if the app is set as the device launcher (home app).",
56
+ "complexTypes": [],
57
+ "slug": "issetaslauncher"
58
+ },
59
+ {
60
+ "name": "enterKioskMode",
61
+ "signature": "() => Promise<void>",
62
+ "parameters": [],
63
+ "returns": "Promise<void>",
64
+ "tags": [
65
+ {
66
+ "name": "returns",
67
+ "text": "Promise that resolves when kiosk mode is activated"
68
+ },
69
+ {
70
+ "name": "throws",
71
+ "text": "Error if entering kiosk mode fails"
72
+ },
73
+ {
74
+ "name": "since",
75
+ "text": "1.0.0"
76
+ },
77
+ {
78
+ "name": "example",
79
+ "text": "```typescript\nawait CapacitorAndroidKiosk.enterKioskMode();\nconsole.log('Entered kiosk mode');\n```"
80
+ }
81
+ ],
82
+ "docs": "Enters kiosk mode, hiding system UI and blocking hardware buttons.\nThe app must be set as the device launcher for this to work effectively.",
83
+ "complexTypes": [],
84
+ "slug": "enterkioskmode"
85
+ },
86
+ {
87
+ "name": "exitKioskMode",
88
+ "signature": "() => Promise<void>",
89
+ "parameters": [],
90
+ "returns": "Promise<void>",
91
+ "tags": [
92
+ {
93
+ "name": "returns",
94
+ "text": "Promise that resolves when kiosk mode is exited"
95
+ },
96
+ {
97
+ "name": "throws",
98
+ "text": "Error if exiting kiosk mode fails"
99
+ },
100
+ {
101
+ "name": "since",
102
+ "text": "1.0.0"
103
+ },
104
+ {
105
+ "name": "example",
106
+ "text": "```typescript\nawait CapacitorAndroidKiosk.exitKioskMode();\nconsole.log('Exited kiosk mode');\n```"
107
+ }
108
+ ],
109
+ "docs": "Exits kiosk mode, restoring normal system UI and hardware button functionality.",
110
+ "complexTypes": [],
111
+ "slug": "exitkioskmode"
112
+ },
113
+ {
114
+ "name": "setAsLauncher",
115
+ "signature": "() => Promise<void>",
116
+ "parameters": [],
117
+ "returns": "Promise<void>",
118
+ "tags": [
119
+ {
120
+ "name": "returns",
121
+ "text": "Promise that resolves when settings are opened"
122
+ },
123
+ {
124
+ "name": "since",
125
+ "text": "1.0.0"
126
+ },
127
+ {
128
+ "name": "example",
129
+ "text": "```typescript\nawait CapacitorAndroidKiosk.setAsLauncher();\n// User will be prompted to select this app as the home app\n```"
130
+ }
131
+ ],
132
+ "docs": "Opens the device's home screen settings to allow user to set this app as the launcher.\nThis is required for full kiosk mode functionality.",
133
+ "complexTypes": [],
134
+ "slug": "setaslauncher"
135
+ },
136
+ {
137
+ "name": "setAllowedKeys",
138
+ "signature": "(options: AllowedKeysOptions) => Promise<void>",
139
+ "parameters": [
140
+ {
141
+ "name": "options",
142
+ "docs": "Configuration for allowed keys",
143
+ "type": "AllowedKeysOptions"
144
+ }
145
+ ],
146
+ "returns": "Promise<void>",
147
+ "tags": [
148
+ {
149
+ "name": "param",
150
+ "text": "options Configuration for allowed keys"
151
+ },
152
+ {
153
+ "name": "returns",
154
+ "text": "Promise that resolves when allowed keys are configured"
155
+ },
156
+ {
157
+ "name": "since",
158
+ "text": "1.0.0"
159
+ },
160
+ {
161
+ "name": "example",
162
+ "text": "```typescript\n// Allow volume keys only\nawait CapacitorAndroidKiosk.setAllowedKeys({\n volumeUp: true,\n volumeDown: true,\n back: false,\n home: false,\n recent: false\n});\n```"
163
+ }
164
+ ],
165
+ "docs": "Sets which hardware keys are allowed to function in kiosk mode.\nBy default, all hardware keys are blocked in kiosk mode.",
166
+ "complexTypes": [
167
+ "AllowedKeysOptions"
168
+ ],
169
+ "slug": "setallowedkeys"
170
+ },
171
+ {
172
+ "name": "getPluginVersion",
173
+ "signature": "() => Promise<{ version: string; }>",
174
+ "parameters": [],
175
+ "returns": "Promise<{ version: string; }>",
176
+ "tags": [
177
+ {
178
+ "name": "returns",
179
+ "text": "Promise that resolves with the plugin version"
180
+ },
181
+ {
182
+ "name": "throws",
183
+ "text": "Error if getting the version fails"
184
+ },
185
+ {
186
+ "name": "since",
187
+ "text": "1.0.0"
188
+ },
189
+ {
190
+ "name": "example",
191
+ "text": "```typescript\nconst { version } = await CapacitorAndroidKiosk.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
192
+ }
193
+ ],
194
+ "docs": "Get the native Capacitor plugin version.",
195
+ "complexTypes": [],
196
+ "slug": "getpluginversion"
197
+ }
198
+ ],
199
+ "properties": []
200
+ },
201
+ "interfaces": [
202
+ {
203
+ "name": "AllowedKeysOptions",
204
+ "slug": "allowedkeysoptions",
205
+ "docs": "Configuration options for allowed hardware keys in kiosk mode.",
206
+ "tags": [
207
+ {
208
+ "text": "1.0.0",
209
+ "name": "since"
210
+ }
211
+ ],
212
+ "methods": [],
213
+ "properties": [
214
+ {
215
+ "name": "volumeUp",
216
+ "tags": [
217
+ {
218
+ "text": "false",
219
+ "name": "default"
220
+ }
221
+ ],
222
+ "docs": "Allow volume up button",
223
+ "complexTypes": [],
224
+ "type": "boolean | undefined"
225
+ },
226
+ {
227
+ "name": "volumeDown",
228
+ "tags": [
229
+ {
230
+ "text": "false",
231
+ "name": "default"
232
+ }
233
+ ],
234
+ "docs": "Allow volume down button",
235
+ "complexTypes": [],
236
+ "type": "boolean | undefined"
237
+ },
238
+ {
239
+ "name": "back",
240
+ "tags": [
241
+ {
242
+ "text": "false",
243
+ "name": "default"
244
+ }
245
+ ],
246
+ "docs": "Allow back button",
247
+ "complexTypes": [],
248
+ "type": "boolean | undefined"
249
+ },
250
+ {
251
+ "name": "home",
252
+ "tags": [
253
+ {
254
+ "text": "false",
255
+ "name": "default"
256
+ }
257
+ ],
258
+ "docs": "Allow home button",
259
+ "complexTypes": [],
260
+ "type": "boolean | undefined"
261
+ },
262
+ {
263
+ "name": "recent",
264
+ "tags": [
265
+ {
266
+ "text": "false",
267
+ "name": "default"
268
+ }
269
+ ],
270
+ "docs": "Allow recent apps button",
271
+ "complexTypes": [],
272
+ "type": "boolean | undefined"
273
+ },
274
+ {
275
+ "name": "power",
276
+ "tags": [
277
+ {
278
+ "text": "false",
279
+ "name": "default"
280
+ }
281
+ ],
282
+ "docs": "Allow power button",
283
+ "complexTypes": [],
284
+ "type": "boolean | undefined"
285
+ },
286
+ {
287
+ "name": "camera",
288
+ "tags": [
289
+ {
290
+ "text": "false",
291
+ "name": "default"
292
+ }
293
+ ],
294
+ "docs": "Allow camera button (if present)",
295
+ "complexTypes": [],
296
+ "type": "boolean | undefined"
297
+ },
298
+ {
299
+ "name": "menu",
300
+ "tags": [
301
+ {
302
+ "text": "false",
303
+ "name": "default"
304
+ }
305
+ ],
306
+ "docs": "Allow menu button (if present)",
307
+ "complexTypes": [],
308
+ "type": "boolean | undefined"
309
+ }
310
+ ]
311
+ }
312
+ ],
313
+ "enums": [],
314
+ "typeAliases": [],
315
+ "pluginConfigs": []
316
+ }
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Capacitor Android Kiosk Plugin for controlling kiosk mode and launcher functionality.
3
+ * This plugin is Android-only. For iOS kiosk mode, use the device's Guided Access feature.
4
+ *
5
+ * @since 1.0.0
6
+ */
7
+ export interface CapacitorAndroidKioskPlugin {
8
+ /**
9
+ * Checks if the app is currently running in kiosk mode.
10
+ *
11
+ * @returns Promise that resolves with kiosk mode status
12
+ * @since 1.0.0
13
+ * @example
14
+ * ```typescript
15
+ * const { isInKioskMode } = await CapacitorAndroidKiosk.isInKioskMode();
16
+ * console.log('Kiosk mode active:', isInKioskMode);
17
+ * ```
18
+ */
19
+ isInKioskMode(): Promise<{
20
+ isInKioskMode: boolean;
21
+ }>;
22
+ /**
23
+ * Checks if the app is set as the device launcher (home app).
24
+ *
25
+ * @returns Promise that resolves with launcher status
26
+ * @since 1.0.0
27
+ * @example
28
+ * ```typescript
29
+ * const { isLauncher } = await CapacitorAndroidKiosk.isSetAsLauncher();
30
+ * console.log('Is launcher:', isLauncher);
31
+ * ```
32
+ */
33
+ isSetAsLauncher(): Promise<{
34
+ isLauncher: boolean;
35
+ }>;
36
+ /**
37
+ * Enters kiosk mode, hiding system UI and blocking hardware buttons.
38
+ * The app must be set as the device launcher for this to work effectively.
39
+ *
40
+ * @returns Promise that resolves when kiosk mode is activated
41
+ * @throws Error if entering kiosk mode fails
42
+ * @since 1.0.0
43
+ * @example
44
+ * ```typescript
45
+ * await CapacitorAndroidKiosk.enterKioskMode();
46
+ * console.log('Entered kiosk mode');
47
+ * ```
48
+ */
49
+ enterKioskMode(): Promise<void>;
50
+ /**
51
+ * Exits kiosk mode, restoring normal system UI and hardware button functionality.
52
+ *
53
+ * @returns Promise that resolves when kiosk mode is exited
54
+ * @throws Error if exiting kiosk mode fails
55
+ * @since 1.0.0
56
+ * @example
57
+ * ```typescript
58
+ * await CapacitorAndroidKiosk.exitKioskMode();
59
+ * console.log('Exited kiosk mode');
60
+ * ```
61
+ */
62
+ exitKioskMode(): Promise<void>;
63
+ /**
64
+ * Opens the device's home screen settings to allow user to set this app as the launcher.
65
+ * This is required for full kiosk mode functionality.
66
+ *
67
+ * @returns Promise that resolves when settings are opened
68
+ * @since 1.0.0
69
+ * @example
70
+ * ```typescript
71
+ * await CapacitorAndroidKiosk.setAsLauncher();
72
+ * // User will be prompted to select this app as the home app
73
+ * ```
74
+ */
75
+ setAsLauncher(): Promise<void>;
76
+ /**
77
+ * Sets which hardware keys are allowed to function in kiosk mode.
78
+ * By default, all hardware keys are blocked in kiosk mode.
79
+ *
80
+ * @param options Configuration for allowed keys
81
+ * @returns Promise that resolves when allowed keys are configured
82
+ * @since 1.0.0
83
+ * @example
84
+ * ```typescript
85
+ * // Allow volume keys only
86
+ * await CapacitorAndroidKiosk.setAllowedKeys({
87
+ * volumeUp: true,
88
+ * volumeDown: true,
89
+ * back: false,
90
+ * home: false,
91
+ * recent: false
92
+ * });
93
+ * ```
94
+ */
95
+ setAllowedKeys(options: AllowedKeysOptions): Promise<void>;
96
+ /**
97
+ * Get the native Capacitor plugin version.
98
+ *
99
+ * @returns Promise that resolves with the plugin version
100
+ * @throws Error if getting the version fails
101
+ * @since 1.0.0
102
+ * @example
103
+ * ```typescript
104
+ * const { version } = await CapacitorAndroidKiosk.getPluginVersion();
105
+ * console.log('Plugin version:', version);
106
+ * ```
107
+ */
108
+ getPluginVersion(): Promise<{
109
+ version: string;
110
+ }>;
111
+ }
112
+ /**
113
+ * Configuration options for allowed hardware keys in kiosk mode.
114
+ *
115
+ * @since 1.0.0
116
+ */
117
+ export interface AllowedKeysOptions {
118
+ /**
119
+ * Allow volume up button
120
+ * @default false
121
+ */
122
+ volumeUp?: boolean;
123
+ /**
124
+ * Allow volume down button
125
+ * @default false
126
+ */
127
+ volumeDown?: boolean;
128
+ /**
129
+ * Allow back button
130
+ * @default false
131
+ */
132
+ back?: boolean;
133
+ /**
134
+ * Allow home button
135
+ * @default false
136
+ */
137
+ home?: boolean;
138
+ /**
139
+ * Allow recent apps button
140
+ * @default false
141
+ */
142
+ recent?: boolean;
143
+ /**
144
+ * Allow power button
145
+ * @default false
146
+ */
147
+ power?: boolean;
148
+ /**
149
+ * Allow camera button (if present)
150
+ * @default false
151
+ */
152
+ camera?: boolean;
153
+ /**
154
+ * Allow menu button (if present)
155
+ * @default false
156
+ */
157
+ menu?: boolean;
158
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { CapacitorAndroidKioskPlugin } from './definitions';
2
+ declare const CapacitorAndroidKiosk: CapacitorAndroidKioskPlugin;
3
+ export * from './definitions';
4
+ export { CapacitorAndroidKiosk };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const CapacitorAndroidKiosk = registerPlugin('CapacitorAndroidKiosk', {
3
+ web: () => import('./web').then((m) => new m.CapacitorAndroidKioskWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { CapacitorAndroidKiosk };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,qBAAqB,GAAG,cAAc,CAA8B,uBAAuB,EAAE;IACjG,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;CACzE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { AllowedKeysOptions, CapacitorAndroidKioskPlugin } from './definitions';
3
+ export declare class CapacitorAndroidKioskWeb extends WebPlugin implements CapacitorAndroidKioskPlugin {
4
+ isInKioskMode(): Promise<{
5
+ isInKioskMode: boolean;
6
+ }>;
7
+ isSetAsLauncher(): Promise<{
8
+ isLauncher: boolean;
9
+ }>;
10
+ enterKioskMode(): Promise<void>;
11
+ exitKioskMode(): Promise<void>;
12
+ setAsLauncher(): Promise<void>;
13
+ setAllowedKeys(_options: AllowedKeysOptions): Promise<void>;
14
+ getPluginVersion(): Promise<{
15
+ version: string;
16
+ }>;
17
+ }
@@ -0,0 +1,27 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class CapacitorAndroidKioskWeb extends WebPlugin {
3
+ async isInKioskMode() {
4
+ console.warn('Kiosk mode is not supported on web platform');
5
+ return { isInKioskMode: false };
6
+ }
7
+ async isSetAsLauncher() {
8
+ console.warn('Launcher functionality is not supported on web platform');
9
+ return { isLauncher: false };
10
+ }
11
+ async enterKioskMode() {
12
+ console.warn('Kiosk mode is not supported on web platform');
13
+ }
14
+ async exitKioskMode() {
15
+ console.warn('Kiosk mode is not supported on web platform');
16
+ }
17
+ async setAsLauncher() {
18
+ console.warn('Launcher functionality is not supported on web platform');
19
+ }
20
+ async setAllowedKeys(_options) {
21
+ console.warn('Hardware key control is not supported on web platform');
22
+ }
23
+ async getPluginVersion() {
24
+ return { version: '1.0.0' };
25
+ }
26
+ }
27
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,wBAAyB,SAAQ,SAAS;IACrD,KAAK,CAAC,aAAa;QACjB,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC5D,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;QACxE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,QAA4B;QAC/C,OAAO,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ var core = require('@capacitor/core');
4
+
5
+ const CapacitorAndroidKiosk = core.registerPlugin('CapacitorAndroidKiosk', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorAndroidKioskWeb()),
7
+ });
8
+
9
+ class CapacitorAndroidKioskWeb extends core.WebPlugin {
10
+ async isInKioskMode() {
11
+ console.warn('Kiosk mode is not supported on web platform');
12
+ return { isInKioskMode: false };
13
+ }
14
+ async isSetAsLauncher() {
15
+ console.warn('Launcher functionality is not supported on web platform');
16
+ return { isLauncher: false };
17
+ }
18
+ async enterKioskMode() {
19
+ console.warn('Kiosk mode is not supported on web platform');
20
+ }
21
+ async exitKioskMode() {
22
+ console.warn('Kiosk mode is not supported on web platform');
23
+ }
24
+ async setAsLauncher() {
25
+ console.warn('Launcher functionality is not supported on web platform');
26
+ }
27
+ async setAllowedKeys(_options) {
28
+ console.warn('Hardware key control is not supported on web platform');
29
+ }
30
+ async getPluginVersion() {
31
+ return { version: '1.0.0' };
32
+ }
33
+ }
34
+
35
+ var web = /*#__PURE__*/Object.freeze({
36
+ __proto__: null,
37
+ CapacitorAndroidKioskWeb: CapacitorAndroidKioskWeb
38
+ });
39
+
40
+ exports.CapacitorAndroidKiosk = CapacitorAndroidKiosk;
41
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorAndroidKiosk = registerPlugin('CapacitorAndroidKiosk', {\n web: () => import('./web').then((m) => new m.CapacitorAndroidKioskWeb()),\n});\nexport * from './definitions';\nexport { CapacitorAndroidKiosk };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorAndroidKioskWeb extends WebPlugin {\n async isInKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n return { isInKioskMode: false };\n }\n async isSetAsLauncher() {\n console.warn('Launcher functionality is not supported on web platform');\n return { isLauncher: false };\n }\n async enterKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n }\n async exitKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n }\n async setAsLauncher() {\n console.warn('Launcher functionality is not supported on web platform');\n }\n async setAllowedKeys(_options) {\n console.warn('Hardware key control is not supported on web platform');\n }\n async getPluginVersion() {\n return { version: '1.0.0' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;AACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;AAC5E,CAAC;;ACFM,MAAM,wBAAwB,SAASC,cAAS,CAAC;AACxD,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;AACnE,QAAQ,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE;AACvC,IAAI;AACJ,IAAI,MAAM,eAAe,GAAG;AAC5B,QAAQ,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC;AAC/E,QAAQ,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE;AACpC,IAAI;AACJ,IAAI,MAAM,cAAc,GAAG;AAC3B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;AACnE,IAAI;AACJ,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;AACnE,IAAI;AACJ,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC;AAC/E,IAAI;AACJ,IAAI,MAAM,cAAc,CAAC,QAAQ,EAAE;AACnC,QAAQ,OAAO,CAAC,IAAI,CAAC,uDAAuD,CAAC;AAC7E,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;AACnC,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,44 @@
1
+ var capacitorCapacitorAndroidKiosk = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ const CapacitorAndroidKiosk = core.registerPlugin('CapacitorAndroidKiosk', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorAndroidKioskWeb()),
6
+ });
7
+
8
+ class CapacitorAndroidKioskWeb extends core.WebPlugin {
9
+ async isInKioskMode() {
10
+ console.warn('Kiosk mode is not supported on web platform');
11
+ return { isInKioskMode: false };
12
+ }
13
+ async isSetAsLauncher() {
14
+ console.warn('Launcher functionality is not supported on web platform');
15
+ return { isLauncher: false };
16
+ }
17
+ async enterKioskMode() {
18
+ console.warn('Kiosk mode is not supported on web platform');
19
+ }
20
+ async exitKioskMode() {
21
+ console.warn('Kiosk mode is not supported on web platform');
22
+ }
23
+ async setAsLauncher() {
24
+ console.warn('Launcher functionality is not supported on web platform');
25
+ }
26
+ async setAllowedKeys(_options) {
27
+ console.warn('Hardware key control is not supported on web platform');
28
+ }
29
+ async getPluginVersion() {
30
+ return { version: '1.0.0' };
31
+ }
32
+ }
33
+
34
+ var web = /*#__PURE__*/Object.freeze({
35
+ __proto__: null,
36
+ CapacitorAndroidKioskWeb: CapacitorAndroidKioskWeb
37
+ });
38
+
39
+ exports.CapacitorAndroidKiosk = CapacitorAndroidKiosk;
40
+
41
+ return exports;
42
+
43
+ })({}, capacitorExports);
44
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorAndroidKiosk = registerPlugin('CapacitorAndroidKiosk', {\n web: () => import('./web').then((m) => new m.CapacitorAndroidKioskWeb()),\n});\nexport * from './definitions';\nexport { CapacitorAndroidKiosk };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorAndroidKioskWeb extends WebPlugin {\n async isInKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n return { isInKioskMode: false };\n }\n async isSetAsLauncher() {\n console.warn('Launcher functionality is not supported on web platform');\n return { isLauncher: false };\n }\n async enterKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n }\n async exitKioskMode() {\n console.warn('Kiosk mode is not supported on web platform');\n }\n async setAsLauncher() {\n console.warn('Launcher functionality is not supported on web platform');\n }\n async setAllowedKeys(_options) {\n console.warn('Hardware key control is not supported on web platform');\n }\n async getPluginVersion() {\n return { version: '1.0.0' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC5E,CAAC;;ICFM,MAAM,wBAAwB,SAASC,cAAS,CAAC;IACxD,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;IACnE,QAAQ,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE;IACvC,IAAI;IACJ,IAAI,MAAM,eAAe,GAAG;IAC5B,QAAQ,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC;IAC/E,QAAQ,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE;IACpC,IAAI;IACJ,IAAI,MAAM,cAAc,GAAG;IAC3B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;IACnE,IAAI;IACJ,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC;IACnE,IAAI;IACJ,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC;IAC/E,IAAI;IACJ,IAAI,MAAM,cAAc,CAAC,QAAQ,EAAE;IACnC,QAAQ,OAAO,CAAC,IAAI,CAAC,uDAAuD,CAAC;IAC7E,IAAI;IACJ,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;IACnC,IAAI;IACJ;;;;;;;;;;;;;;;"}