@capawesome/capacitor-pixlive 0.1.2 → 0.1.4
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { PermissionState, PluginListenerHandle } from '@capacitor/core';
|
|
2
2
|
/**
|
|
3
|
-
* @since
|
|
3
|
+
* @since 0.0.1
|
|
4
4
|
*/
|
|
5
5
|
export type PixlivePermissionType = 'bluetooth' | 'bluetoothConnect' | 'bluetoothScan' | 'camera' | 'location' | 'notifications';
|
|
6
6
|
/**
|
|
7
|
-
* @since
|
|
7
|
+
* @since 0.0.1
|
|
8
8
|
*/
|
|
9
9
|
export interface PixlivePlugin {
|
|
10
10
|
/**
|
|
@@ -14,19 +14,19 @@ export interface PixlivePlugin {
|
|
|
14
14
|
*
|
|
15
15
|
* Only available on Android and iOS.
|
|
16
16
|
*
|
|
17
|
-
* @since
|
|
17
|
+
* @since 0.0.1
|
|
18
18
|
*/
|
|
19
19
|
initialize(): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Check the status of permissions.
|
|
22
22
|
*
|
|
23
|
-
* @since
|
|
23
|
+
* @since 0.0.1
|
|
24
24
|
*/
|
|
25
25
|
checkPermissions(): Promise<PermissionStatus>;
|
|
26
26
|
/**
|
|
27
27
|
* Request permissions.
|
|
28
28
|
*
|
|
29
|
-
* @since
|
|
29
|
+
* @since 0.0.1
|
|
30
30
|
*/
|
|
31
31
|
requestPermissions(options?: PixlivePluginPermission): Promise<PermissionStatus>;
|
|
32
32
|
/**
|
|
@@ -34,7 +34,7 @@ export interface PixlivePlugin {
|
|
|
34
34
|
*
|
|
35
35
|
* Only available on Android and iOS.
|
|
36
36
|
*
|
|
37
|
-
* @since
|
|
37
|
+
* @since 0.0.1
|
|
38
38
|
*/
|
|
39
39
|
synchronize(options: SynchronizeOptions): Promise<void>;
|
|
40
40
|
/**
|
|
@@ -42,7 +42,7 @@ export interface PixlivePlugin {
|
|
|
42
42
|
*
|
|
43
43
|
* Only available on Android and iOS.
|
|
44
44
|
*
|
|
45
|
-
* @since
|
|
45
|
+
* @since 0.0.1
|
|
46
46
|
*/
|
|
47
47
|
synchronizeWithToursAndContexts(options: SynchronizeWithToursAndContextsOptions): Promise<void>;
|
|
48
48
|
/**
|
|
@@ -50,7 +50,7 @@ export interface PixlivePlugin {
|
|
|
50
50
|
*
|
|
51
51
|
* Only available on Android and iOS.
|
|
52
52
|
*
|
|
53
|
-
* @since
|
|
53
|
+
* @since 0.0.1
|
|
54
54
|
*/
|
|
55
55
|
updateTagMapping(options: UpdateTagMappingOptions): Promise<void>;
|
|
56
56
|
/**
|
|
@@ -58,7 +58,7 @@ export interface PixlivePlugin {
|
|
|
58
58
|
*
|
|
59
59
|
* Only available on Android and iOS.
|
|
60
60
|
*
|
|
61
|
-
* @since
|
|
61
|
+
* @since 0.0.1
|
|
62
62
|
*/
|
|
63
63
|
enableContextsWithTags(options: EnableContextsWithTagsOptions): Promise<void>;
|
|
64
64
|
/**
|
|
@@ -66,7 +66,7 @@ export interface PixlivePlugin {
|
|
|
66
66
|
*
|
|
67
67
|
* Only available on Android and iOS.
|
|
68
68
|
*
|
|
69
|
-
* @since
|
|
69
|
+
* @since 0.0.1
|
|
70
70
|
*/
|
|
71
71
|
getContexts(): Promise<GetContextsResult>;
|
|
72
72
|
/**
|
|
@@ -74,7 +74,7 @@ export interface PixlivePlugin {
|
|
|
74
74
|
*
|
|
75
75
|
* Only available on Android and iOS.
|
|
76
76
|
*
|
|
77
|
-
* @since
|
|
77
|
+
* @since 0.0.1
|
|
78
78
|
*/
|
|
79
79
|
getContext(options: GetContextOptions): Promise<GetContextResult>;
|
|
80
80
|
/**
|
|
@@ -82,7 +82,7 @@ export interface PixlivePlugin {
|
|
|
82
82
|
*
|
|
83
83
|
* Only available on Android and iOS.
|
|
84
84
|
*
|
|
85
|
-
* @since
|
|
85
|
+
* @since 0.0.1
|
|
86
86
|
*/
|
|
87
87
|
activateContext(options: ActivateContextOptions): Promise<void>;
|
|
88
88
|
/**
|
|
@@ -90,7 +90,7 @@ export interface PixlivePlugin {
|
|
|
90
90
|
*
|
|
91
91
|
* Only available on Android and iOS.
|
|
92
92
|
*
|
|
93
|
-
* @since
|
|
93
|
+
* @since 0.0.1
|
|
94
94
|
*/
|
|
95
95
|
stopContext(): Promise<void>;
|
|
96
96
|
/**
|
|
@@ -98,7 +98,7 @@ export interface PixlivePlugin {
|
|
|
98
98
|
*
|
|
99
99
|
* Only available on Android and iOS.
|
|
100
100
|
*
|
|
101
|
-
* @since
|
|
101
|
+
* @since 0.0.1
|
|
102
102
|
*/
|
|
103
103
|
getNearbyGPSPoints(options: GetNearbyGPSPointsOptions): Promise<GetNearbyGPSPointsResult>;
|
|
104
104
|
/**
|
|
@@ -106,7 +106,7 @@ export interface PixlivePlugin {
|
|
|
106
106
|
*
|
|
107
107
|
* Only available on Android and iOS.
|
|
108
108
|
*
|
|
109
|
-
* @since
|
|
109
|
+
* @since 0.0.1
|
|
110
110
|
*/
|
|
111
111
|
getGPSPointsInBoundingBox(options: GetGPSPointsInBoundingBoxOptions): Promise<GetGPSPointsInBoundingBoxResult>;
|
|
112
112
|
/**
|
|
@@ -114,7 +114,7 @@ export interface PixlivePlugin {
|
|
|
114
114
|
*
|
|
115
115
|
* Only available on Android and iOS.
|
|
116
116
|
*
|
|
117
|
-
* @since
|
|
117
|
+
* @since 0.0.1
|
|
118
118
|
*/
|
|
119
119
|
getNearbyBeacons(): Promise<GetNearbyBeaconsResult>;
|
|
120
120
|
/**
|
|
@@ -122,7 +122,7 @@ export interface PixlivePlugin {
|
|
|
122
122
|
*
|
|
123
123
|
* Only available on Android and iOS.
|
|
124
124
|
*
|
|
125
|
-
* @since
|
|
125
|
+
* @since 0.0.1
|
|
126
126
|
*/
|
|
127
127
|
startNearbyGPSDetection(): Promise<void>;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export interface PixlivePlugin {
|
|
|
130
130
|
*
|
|
131
131
|
* Only available on Android and iOS.
|
|
132
132
|
*
|
|
133
|
-
* @since
|
|
133
|
+
* @since 0.0.1
|
|
134
134
|
*/
|
|
135
135
|
stopNearbyGPSDetection(): Promise<void>;
|
|
136
136
|
/**
|
|
@@ -138,7 +138,7 @@ export interface PixlivePlugin {
|
|
|
138
138
|
*
|
|
139
139
|
* Only available on Android and iOS.
|
|
140
140
|
*
|
|
141
|
-
* @since
|
|
141
|
+
* @since 0.0.1
|
|
142
142
|
*/
|
|
143
143
|
startGPSNotifications(): Promise<void>;
|
|
144
144
|
/**
|
|
@@ -146,7 +146,7 @@ export interface PixlivePlugin {
|
|
|
146
146
|
*
|
|
147
147
|
* Only available on Android and iOS.
|
|
148
148
|
*
|
|
149
|
-
* @since
|
|
149
|
+
* @since 0.0.1
|
|
150
150
|
*/
|
|
151
151
|
stopGPSNotifications(): Promise<void>;
|
|
152
152
|
/**
|
|
@@ -154,7 +154,7 @@ export interface PixlivePlugin {
|
|
|
154
154
|
*
|
|
155
155
|
* Only available on Android and iOS.
|
|
156
156
|
*
|
|
157
|
-
* @since
|
|
157
|
+
* @since 0.0.1
|
|
158
158
|
*/
|
|
159
159
|
setNotificationsSupport(options: SetNotificationsSupportOptions): Promise<void>;
|
|
160
160
|
/**
|
|
@@ -162,7 +162,7 @@ export interface PixlivePlugin {
|
|
|
162
162
|
*
|
|
163
163
|
* Only available on Android and iOS.
|
|
164
164
|
*
|
|
165
|
-
* @since
|
|
165
|
+
* @since 0.0.1
|
|
166
166
|
*/
|
|
167
167
|
setInterfaceLanguage(options: SetInterfaceLanguageOptions): Promise<void>;
|
|
168
168
|
/**
|
|
@@ -170,7 +170,7 @@ export interface PixlivePlugin {
|
|
|
170
170
|
*
|
|
171
171
|
* Only available on Android and iOS.
|
|
172
172
|
*
|
|
173
|
-
* @since
|
|
173
|
+
* @since 0.0.1
|
|
174
174
|
*/
|
|
175
175
|
createARView(options: CreateARViewOptions): Promise<void>;
|
|
176
176
|
/**
|
|
@@ -178,7 +178,7 @@ export interface PixlivePlugin {
|
|
|
178
178
|
*
|
|
179
179
|
* Only available on Android and iOS.
|
|
180
180
|
*
|
|
181
|
-
* @since
|
|
181
|
+
* @since 0.0.1
|
|
182
182
|
*/
|
|
183
183
|
destroyARView(): Promise<void>;
|
|
184
184
|
/**
|
|
@@ -186,7 +186,7 @@ export interface PixlivePlugin {
|
|
|
186
186
|
*
|
|
187
187
|
* Only available on Android and iOS.
|
|
188
188
|
*
|
|
189
|
-
* @since
|
|
189
|
+
* @since 0.0.1
|
|
190
190
|
*/
|
|
191
191
|
resizeARView(options: ResizeARViewOptions): Promise<void>;
|
|
192
192
|
/**
|
|
@@ -194,7 +194,7 @@ export interface PixlivePlugin {
|
|
|
194
194
|
*
|
|
195
195
|
* Only available on Android and iOS.
|
|
196
196
|
*
|
|
197
|
-
* @since
|
|
197
|
+
* @since 0.0.1
|
|
198
198
|
*/
|
|
199
199
|
setARViewTouchEnabled(options: SetARViewTouchEnabledOptions): Promise<void>;
|
|
200
200
|
/**
|
|
@@ -202,330 +202,330 @@ export interface PixlivePlugin {
|
|
|
202
202
|
*
|
|
203
203
|
* Only available on Android and iOS.
|
|
204
204
|
*
|
|
205
|
-
* @since
|
|
205
|
+
* @since 0.0.1
|
|
206
206
|
*/
|
|
207
207
|
setARViewTouchHole(options: SetARViewTouchHoleOptions): Promise<void>;
|
|
208
208
|
/**
|
|
209
209
|
* Get the version of the sdk.
|
|
210
210
|
*
|
|
211
|
-
* @since
|
|
211
|
+
* @since 0.0.1
|
|
212
212
|
*/
|
|
213
213
|
getVersion(): Promise<GetVersionResult>;
|
|
214
214
|
/**
|
|
215
215
|
* Called when a QR code or barcode is scanned by the AR camera.
|
|
216
216
|
*
|
|
217
|
-
* @since
|
|
217
|
+
* @since 0.0.1
|
|
218
218
|
*/
|
|
219
219
|
addListener(eventName: 'codeRecognize', listenerFunc: (event: CodeRecognizeEvent) => void): Promise<PluginListenerHandle>;
|
|
220
220
|
/**
|
|
221
221
|
* Called when an AR context is detected/entered.
|
|
222
222
|
*
|
|
223
|
-
* @since
|
|
223
|
+
* @since 0.0.1
|
|
224
224
|
*/
|
|
225
225
|
addListener(eventName: 'enterContext', listenerFunc: (event: EnterContextEvent) => void): Promise<PluginListenerHandle>;
|
|
226
226
|
/**
|
|
227
227
|
* Called when an AR context is lost/exited.
|
|
228
228
|
*
|
|
229
|
-
* @since
|
|
229
|
+
* @since 0.0.1
|
|
230
230
|
*/
|
|
231
231
|
addListener(eventName: 'exitContext', listenerFunc: (event: ExitContextEvent) => void): Promise<PluginListenerHandle>;
|
|
232
232
|
/**
|
|
233
233
|
* Called when AR content/annotations become visible on screen.
|
|
234
234
|
*
|
|
235
|
-
* @since
|
|
235
|
+
* @since 0.0.1
|
|
236
236
|
*/
|
|
237
237
|
addListener(eventName: 'presentAnnotations', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
238
238
|
/**
|
|
239
239
|
* Called when AR content/annotations are hidden.
|
|
240
240
|
*
|
|
241
|
-
* @since
|
|
241
|
+
* @since 0.0.1
|
|
242
242
|
*/
|
|
243
243
|
addListener(eventName: 'hideAnnotations', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
244
244
|
/**
|
|
245
245
|
* Called when AR content dispatches a custom event.
|
|
246
246
|
*
|
|
247
|
-
* @since
|
|
247
|
+
* @since 0.0.1
|
|
248
248
|
*/
|
|
249
249
|
addListener(eventName: 'eventFromContent', listenerFunc: (event: EventFromContentEvent) => void): Promise<PluginListenerHandle>;
|
|
250
250
|
/**
|
|
251
251
|
* Called during synchronization with progress updates.
|
|
252
252
|
*
|
|
253
|
-
* @since
|
|
253
|
+
* @since 0.0.1
|
|
254
254
|
*/
|
|
255
255
|
addListener(eventName: 'syncProgress', listenerFunc: (event: SyncProgressEvent) => void): Promise<PluginListenerHandle>;
|
|
256
256
|
/**
|
|
257
257
|
* Called when the SDK requires synchronization with specific tags.
|
|
258
258
|
*
|
|
259
|
-
* @since
|
|
259
|
+
* @since 0.0.1
|
|
260
260
|
*/
|
|
261
261
|
addListener(eventName: 'requireSync', listenerFunc: (event: RequireSyncEvent) => void): Promise<PluginListenerHandle>;
|
|
262
262
|
/**
|
|
263
263
|
* Remove all listeners for this plugin.
|
|
264
264
|
*
|
|
265
|
-
* @since
|
|
265
|
+
* @since 0.0.1
|
|
266
266
|
*/
|
|
267
267
|
removeAllListeners(): Promise<void>;
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* @since
|
|
270
|
+
* @since 0.0.1
|
|
271
271
|
*/
|
|
272
272
|
export interface SynchronizeOptions {
|
|
273
273
|
/**
|
|
274
274
|
* The tags to filter content by.
|
|
275
275
|
*
|
|
276
|
-
* @since
|
|
276
|
+
* @since 0.0.1
|
|
277
277
|
*/
|
|
278
278
|
tags: string[][];
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
* @since
|
|
281
|
+
* @since 0.0.1
|
|
282
282
|
*/
|
|
283
283
|
export interface SynchronizeWithToursAndContextsOptions {
|
|
284
284
|
/**
|
|
285
285
|
* The tags to filter content by.
|
|
286
286
|
*
|
|
287
|
-
* @since
|
|
287
|
+
* @since 0.0.1
|
|
288
288
|
*/
|
|
289
289
|
tags: string[][];
|
|
290
290
|
/**
|
|
291
291
|
* The tour IDs to sync.
|
|
292
292
|
*
|
|
293
|
-
* @since
|
|
293
|
+
* @since 0.0.1
|
|
294
294
|
*/
|
|
295
295
|
tourIds: number[];
|
|
296
296
|
/**
|
|
297
297
|
* The context IDs to sync.
|
|
298
298
|
*
|
|
299
|
-
* @since
|
|
299
|
+
* @since 0.0.1
|
|
300
300
|
*/
|
|
301
301
|
contextIds: string[];
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* @since
|
|
304
|
+
* @since 0.0.1
|
|
305
305
|
*/
|
|
306
306
|
export interface UpdateTagMappingOptions {
|
|
307
307
|
/**
|
|
308
308
|
* The tags to map.
|
|
309
309
|
*
|
|
310
|
-
* @since
|
|
310
|
+
* @since 0.0.1
|
|
311
311
|
*/
|
|
312
312
|
tags: string[];
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
|
-
* @since
|
|
315
|
+
* @since 0.0.1
|
|
316
316
|
*/
|
|
317
317
|
export interface EnableContextsWithTagsOptions {
|
|
318
318
|
/**
|
|
319
319
|
* The tags to enable contexts for.
|
|
320
320
|
*
|
|
321
|
-
* @since
|
|
321
|
+
* @since 0.0.1
|
|
322
322
|
*/
|
|
323
323
|
tags: string[];
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
|
-
* @since
|
|
326
|
+
* @since 0.0.1
|
|
327
327
|
*/
|
|
328
328
|
export interface GetContextOptions {
|
|
329
329
|
/**
|
|
330
330
|
* The ID of the context to retrieve.
|
|
331
331
|
*
|
|
332
|
-
* @since
|
|
332
|
+
* @since 0.0.1
|
|
333
333
|
* @example "12345"
|
|
334
334
|
*/
|
|
335
335
|
contextId: string;
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
|
-
* @since
|
|
338
|
+
* @since 0.0.1
|
|
339
339
|
*/
|
|
340
340
|
export interface ActivateContextOptions {
|
|
341
341
|
/**
|
|
342
342
|
* The ID of the context to activate.
|
|
343
343
|
*
|
|
344
|
-
* @since
|
|
344
|
+
* @since 0.0.1
|
|
345
345
|
* @example "12345"
|
|
346
346
|
*/
|
|
347
347
|
contextId: string;
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
|
-
* @since
|
|
350
|
+
* @since 0.0.1
|
|
351
351
|
*/
|
|
352
352
|
export interface GetNearbyGPSPointsOptions {
|
|
353
353
|
/**
|
|
354
354
|
* The latitude of the reference location.
|
|
355
355
|
*
|
|
356
|
-
* @since
|
|
356
|
+
* @since 0.0.1
|
|
357
357
|
*/
|
|
358
358
|
latitude: number;
|
|
359
359
|
/**
|
|
360
360
|
* The longitude of the reference location.
|
|
361
361
|
*
|
|
362
|
-
* @since
|
|
362
|
+
* @since 0.0.1
|
|
363
363
|
*/
|
|
364
364
|
longitude: number;
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
|
-
* @since
|
|
367
|
+
* @since 0.0.1
|
|
368
368
|
*/
|
|
369
369
|
export interface GetGPSPointsInBoundingBoxOptions {
|
|
370
370
|
/**
|
|
371
371
|
* The minimum latitude of the bounding box.
|
|
372
372
|
*
|
|
373
|
-
* @since
|
|
373
|
+
* @since 0.0.1
|
|
374
374
|
*/
|
|
375
375
|
minLatitude: number;
|
|
376
376
|
/**
|
|
377
377
|
* The minimum longitude of the bounding box.
|
|
378
378
|
*
|
|
379
|
-
* @since
|
|
379
|
+
* @since 0.0.1
|
|
380
380
|
*/
|
|
381
381
|
minLongitude: number;
|
|
382
382
|
/**
|
|
383
383
|
* The maximum latitude of the bounding box.
|
|
384
384
|
*
|
|
385
|
-
* @since
|
|
385
|
+
* @since 0.0.1
|
|
386
386
|
*/
|
|
387
387
|
maxLatitude: number;
|
|
388
388
|
/**
|
|
389
389
|
* The maximum longitude of the bounding box.
|
|
390
390
|
*
|
|
391
|
-
* @since
|
|
391
|
+
* @since 0.0.1
|
|
392
392
|
*/
|
|
393
393
|
maxLongitude: number;
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
|
-
* @since
|
|
396
|
+
* @since 0.0.1
|
|
397
397
|
*/
|
|
398
398
|
export interface SetNotificationsSupportOptions {
|
|
399
399
|
/**
|
|
400
400
|
* Whether notifications support should be enabled.
|
|
401
401
|
*
|
|
402
|
-
* @since
|
|
402
|
+
* @since 0.0.1
|
|
403
403
|
*/
|
|
404
404
|
enabled: boolean;
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
|
-
* @since
|
|
407
|
+
* @since 0.0.1
|
|
408
408
|
*/
|
|
409
409
|
export interface SetInterfaceLanguageOptions {
|
|
410
410
|
/**
|
|
411
411
|
* The language code to set.
|
|
412
412
|
*
|
|
413
|
-
* @since
|
|
413
|
+
* @since 0.0.1
|
|
414
414
|
* @example "en"
|
|
415
415
|
*/
|
|
416
416
|
language: string;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
|
-
* @since
|
|
419
|
+
* @since 0.0.1
|
|
420
420
|
*/
|
|
421
421
|
export interface CreateARViewOptions {
|
|
422
422
|
/**
|
|
423
423
|
* The x position of the AR view.
|
|
424
424
|
*
|
|
425
|
-
* @since
|
|
425
|
+
* @since 0.0.1
|
|
426
426
|
*/
|
|
427
427
|
x: number;
|
|
428
428
|
/**
|
|
429
429
|
* The y position of the AR view.
|
|
430
430
|
*
|
|
431
|
-
* @since
|
|
431
|
+
* @since 0.0.1
|
|
432
432
|
*/
|
|
433
433
|
y: number;
|
|
434
434
|
/**
|
|
435
435
|
* The width of the AR view.
|
|
436
436
|
*
|
|
437
|
-
* @since
|
|
437
|
+
* @since 0.0.1
|
|
438
438
|
*/
|
|
439
439
|
width: number;
|
|
440
440
|
/**
|
|
441
441
|
* The height of the AR view.
|
|
442
442
|
*
|
|
443
|
-
* @since
|
|
443
|
+
* @since 0.0.1
|
|
444
444
|
*/
|
|
445
445
|
height: number;
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
|
-
* @since
|
|
448
|
+
* @since 0.0.1
|
|
449
449
|
*/
|
|
450
450
|
export interface ResizeARViewOptions {
|
|
451
451
|
/**
|
|
452
452
|
* The new x position of the AR view.
|
|
453
453
|
*
|
|
454
|
-
* @since
|
|
454
|
+
* @since 0.0.1
|
|
455
455
|
*/
|
|
456
456
|
x: number;
|
|
457
457
|
/**
|
|
458
458
|
* The new y position of the AR view.
|
|
459
459
|
*
|
|
460
|
-
* @since
|
|
460
|
+
* @since 0.0.1
|
|
461
461
|
*/
|
|
462
462
|
y: number;
|
|
463
463
|
/**
|
|
464
464
|
* The new width of the AR view.
|
|
465
465
|
*
|
|
466
|
-
* @since
|
|
466
|
+
* @since 0.0.1
|
|
467
467
|
*/
|
|
468
468
|
width: number;
|
|
469
469
|
/**
|
|
470
470
|
* The new height of the AR view.
|
|
471
471
|
*
|
|
472
|
-
* @since
|
|
472
|
+
* @since 0.0.1
|
|
473
473
|
*/
|
|
474
474
|
height: number;
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
* @since
|
|
477
|
+
* @since 0.0.1
|
|
478
478
|
*/
|
|
479
479
|
export interface SetARViewTouchEnabledOptions {
|
|
480
480
|
/**
|
|
481
481
|
* Whether touch events should be intercepted by the AR view.
|
|
482
482
|
*
|
|
483
|
-
* @since
|
|
483
|
+
* @since 0.0.1
|
|
484
484
|
*/
|
|
485
485
|
enabled: boolean;
|
|
486
486
|
}
|
|
487
487
|
/**
|
|
488
|
-
* @since
|
|
488
|
+
* @since 0.0.1
|
|
489
489
|
*/
|
|
490
490
|
export interface SetARViewTouchHoleOptions {
|
|
491
491
|
/**
|
|
492
492
|
* The top coordinate of the touch hole region.
|
|
493
493
|
*
|
|
494
|
-
* @since
|
|
494
|
+
* @since 0.0.1
|
|
495
495
|
*/
|
|
496
496
|
top: number;
|
|
497
497
|
/**
|
|
498
498
|
* The bottom coordinate of the touch hole region.
|
|
499
499
|
*
|
|
500
|
-
* @since
|
|
500
|
+
* @since 0.0.1
|
|
501
501
|
*/
|
|
502
502
|
bottom: number;
|
|
503
503
|
/**
|
|
504
504
|
* The left coordinate of the touch hole region.
|
|
505
505
|
*
|
|
506
|
-
* @since
|
|
506
|
+
* @since 0.0.1
|
|
507
507
|
*/
|
|
508
508
|
left: number;
|
|
509
509
|
/**
|
|
510
510
|
* The right coordinate of the touch hole region.
|
|
511
511
|
*
|
|
512
|
-
* @since
|
|
512
|
+
* @since 0.0.1
|
|
513
513
|
*/
|
|
514
514
|
right: number;
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
|
-
* @since
|
|
517
|
+
* @since 0.0.1
|
|
518
518
|
*/
|
|
519
519
|
export interface PixlivePluginPermission {
|
|
520
520
|
/**
|
|
521
521
|
* The permissions to request.
|
|
522
522
|
*
|
|
523
|
-
* @since
|
|
523
|
+
* @since 0.0.1
|
|
524
524
|
*/
|
|
525
525
|
permissions: PixlivePermissionType[];
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
|
-
* @since
|
|
528
|
+
* @since 0.0.1
|
|
529
529
|
*/
|
|
530
530
|
export interface PermissionStatus {
|
|
531
531
|
/**
|
|
@@ -533,7 +533,7 @@ export interface PermissionStatus {
|
|
|
533
533
|
*
|
|
534
534
|
* Only available on iOS.
|
|
535
535
|
*
|
|
536
|
-
* @since
|
|
536
|
+
* @since 0.0.1
|
|
537
537
|
*/
|
|
538
538
|
bluetooth?: PermissionState;
|
|
539
539
|
/**
|
|
@@ -541,7 +541,7 @@ export interface PermissionStatus {
|
|
|
541
541
|
*
|
|
542
542
|
* Only available on Android.
|
|
543
543
|
*
|
|
544
|
-
* @since
|
|
544
|
+
* @since 0.0.1
|
|
545
545
|
*/
|
|
546
546
|
bluetoothConnect?: PermissionState;
|
|
547
547
|
/**
|
|
@@ -549,13 +549,13 @@ export interface PermissionStatus {
|
|
|
549
549
|
*
|
|
550
550
|
* Only available on Android.
|
|
551
551
|
*
|
|
552
|
-
* @since
|
|
552
|
+
* @since 0.0.1
|
|
553
553
|
*/
|
|
554
554
|
bluetoothScan?: PermissionState;
|
|
555
555
|
/**
|
|
556
556
|
* Permission state of the Camera permission.
|
|
557
557
|
*
|
|
558
|
-
* @since
|
|
558
|
+
* @since 0.0.1
|
|
559
559
|
*/
|
|
560
560
|
camera: PermissionState;
|
|
561
561
|
/**
|
|
@@ -563,263 +563,269 @@ export interface PermissionStatus {
|
|
|
563
563
|
*
|
|
564
564
|
* Only available on Android and iOS.
|
|
565
565
|
*
|
|
566
|
-
* @since
|
|
566
|
+
* @since 0.0.1
|
|
567
567
|
*/
|
|
568
568
|
location?: PermissionState;
|
|
569
569
|
/**
|
|
570
570
|
* Permission state of the Notifications permission.
|
|
571
571
|
*
|
|
572
|
-
* @since
|
|
572
|
+
* @since 0.0.1
|
|
573
573
|
*/
|
|
574
574
|
notifications?: PermissionState;
|
|
575
575
|
}
|
|
576
576
|
/**
|
|
577
|
-
* @since
|
|
577
|
+
* @since 0.0.1
|
|
578
578
|
*/
|
|
579
579
|
export interface GetContextsResult {
|
|
580
580
|
/**
|
|
581
581
|
* The list of synchronized contexts.
|
|
582
582
|
*
|
|
583
|
-
* @since
|
|
583
|
+
* @since 0.0.1
|
|
584
584
|
*/
|
|
585
585
|
contexts: Context[];
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
|
-
* @since
|
|
588
|
+
* @since 0.0.1
|
|
589
589
|
*/
|
|
590
590
|
export interface GetContextResult {
|
|
591
591
|
/**
|
|
592
592
|
* The context.
|
|
593
593
|
*
|
|
594
|
-
* @since
|
|
594
|
+
* @since 0.0.1
|
|
595
595
|
*/
|
|
596
596
|
context: Context;
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
|
-
* @since
|
|
599
|
+
* @since 0.0.1
|
|
600
600
|
*/
|
|
601
601
|
export interface GetNearbyBeaconsResult {
|
|
602
602
|
/**
|
|
603
603
|
* The contexts associated with nearby beacons.
|
|
604
604
|
*
|
|
605
|
-
* @since
|
|
605
|
+
* @since 0.0.1
|
|
606
606
|
*/
|
|
607
607
|
contexts: Context[];
|
|
608
608
|
}
|
|
609
609
|
/**
|
|
610
|
-
* @since
|
|
610
|
+
* @since 0.0.1
|
|
611
611
|
*/
|
|
612
612
|
export interface GetNearbyGPSPointsResult {
|
|
613
613
|
/**
|
|
614
614
|
* The nearby GPS points sorted by distance.
|
|
615
615
|
*
|
|
616
|
-
* @since
|
|
616
|
+
* @since 0.0.1
|
|
617
617
|
*/
|
|
618
618
|
points: GPSPoint[];
|
|
619
619
|
}
|
|
620
620
|
/**
|
|
621
|
-
* @since
|
|
621
|
+
* @since 0.0.1
|
|
622
622
|
*/
|
|
623
623
|
export interface GetGPSPointsInBoundingBoxResult {
|
|
624
624
|
/**
|
|
625
625
|
* The GPS points within the bounding box.
|
|
626
626
|
*
|
|
627
|
-
* @since
|
|
627
|
+
* @since 0.0.1
|
|
628
628
|
*/
|
|
629
629
|
points: GPSPoint[];
|
|
630
630
|
}
|
|
631
631
|
/**
|
|
632
|
-
* @since
|
|
632
|
+
* @since 0.0.1
|
|
633
633
|
*/
|
|
634
634
|
export interface Context {
|
|
635
635
|
/**
|
|
636
636
|
* The unique identifier of the context.
|
|
637
637
|
*
|
|
638
|
-
* @since
|
|
638
|
+
* @since 0.0.1
|
|
639
639
|
*/
|
|
640
640
|
contextId: string;
|
|
641
641
|
/**
|
|
642
642
|
* The name of the context.
|
|
643
643
|
*
|
|
644
|
-
* @since
|
|
644
|
+
* @since 0.0.1
|
|
645
645
|
*/
|
|
646
646
|
name: string;
|
|
647
647
|
/**
|
|
648
648
|
* The description of the context.
|
|
649
649
|
*
|
|
650
|
-
* @since
|
|
650
|
+
* @since 0.0.1
|
|
651
651
|
*/
|
|
652
652
|
description: string | null;
|
|
653
653
|
/**
|
|
654
654
|
* The last update timestamp.
|
|
655
655
|
*
|
|
656
|
-
* @since
|
|
656
|
+
* @since 0.0.1
|
|
657
657
|
*/
|
|
658
658
|
lastUpdate: string;
|
|
659
659
|
/**
|
|
660
660
|
* The URL of the thumbnail image.
|
|
661
661
|
*
|
|
662
|
-
* @since
|
|
662
|
+
* @since 0.0.1
|
|
663
663
|
*/
|
|
664
664
|
imageThumbnailURL: string | null;
|
|
665
665
|
/**
|
|
666
666
|
* The URL of the high-resolution image.
|
|
667
667
|
*
|
|
668
|
-
* @since
|
|
668
|
+
* @since 0.0.1
|
|
669
669
|
*/
|
|
670
670
|
imageHiResURL: string | null;
|
|
671
671
|
/**
|
|
672
672
|
* The notification title.
|
|
673
673
|
*
|
|
674
|
-
* @since
|
|
674
|
+
* @since 0.0.1
|
|
675
675
|
*/
|
|
676
676
|
notificationTitle: string | null;
|
|
677
677
|
/**
|
|
678
678
|
* The notification message.
|
|
679
679
|
*
|
|
680
|
-
* @since
|
|
680
|
+
* @since 0.0.1
|
|
681
681
|
*/
|
|
682
682
|
notificationMessage: string | null;
|
|
683
683
|
/**
|
|
684
684
|
* The tags associated with the context.
|
|
685
685
|
*
|
|
686
|
-
* @since
|
|
686
|
+
* @since 0.0.1
|
|
687
687
|
*/
|
|
688
688
|
tags: string[];
|
|
689
|
+
/**
|
|
690
|
+
* The languages provided for this context.
|
|
691
|
+
*
|
|
692
|
+
* @since 0.1.3
|
|
693
|
+
*/
|
|
694
|
+
languages: string[];
|
|
689
695
|
}
|
|
690
696
|
/**
|
|
691
|
-
* @since
|
|
697
|
+
* @since 0.0.1
|
|
692
698
|
*/
|
|
693
699
|
export interface GPSPoint {
|
|
694
700
|
/**
|
|
695
701
|
* The ID of the associated context.
|
|
696
702
|
*
|
|
697
|
-
* @since
|
|
703
|
+
* @since 0.0.1
|
|
698
704
|
*/
|
|
699
705
|
contextId: string;
|
|
700
706
|
/**
|
|
701
707
|
* The category of the GPS point.
|
|
702
708
|
*
|
|
703
|
-
* @since
|
|
709
|
+
* @since 0.0.1
|
|
704
710
|
*/
|
|
705
711
|
category: string;
|
|
706
712
|
/**
|
|
707
713
|
* The label of the GPS point.
|
|
708
714
|
*
|
|
709
|
-
* @since
|
|
715
|
+
* @since 0.0.1
|
|
710
716
|
*/
|
|
711
717
|
label: string;
|
|
712
718
|
/**
|
|
713
719
|
* The latitude of the GPS point.
|
|
714
720
|
*
|
|
715
|
-
* @since
|
|
721
|
+
* @since 0.0.1
|
|
716
722
|
*/
|
|
717
723
|
latitude: number;
|
|
718
724
|
/**
|
|
719
725
|
* The longitude of the GPS point.
|
|
720
726
|
*
|
|
721
|
-
* @since
|
|
727
|
+
* @since 0.0.1
|
|
722
728
|
*/
|
|
723
729
|
longitude: number;
|
|
724
730
|
/**
|
|
725
731
|
* The detection radius in meters.
|
|
726
732
|
*
|
|
727
|
-
* @since
|
|
733
|
+
* @since 0.0.1
|
|
728
734
|
*/
|
|
729
735
|
detectionRadius: number | null;
|
|
730
736
|
/**
|
|
731
737
|
* The distance from the current position in meters.
|
|
732
738
|
*
|
|
733
|
-
* @since
|
|
739
|
+
* @since 0.0.1
|
|
734
740
|
*/
|
|
735
741
|
distanceFromCurrentPosition: number;
|
|
736
742
|
}
|
|
737
743
|
/**
|
|
738
|
-
* @since
|
|
744
|
+
* @since 0.0.1
|
|
739
745
|
*/
|
|
740
746
|
export interface CodeRecognizeEvent {
|
|
741
747
|
/**
|
|
742
748
|
* The scanned code value.
|
|
743
749
|
*
|
|
744
|
-
* @since
|
|
750
|
+
* @since 0.0.1
|
|
745
751
|
*/
|
|
746
752
|
code: string;
|
|
747
753
|
/**
|
|
748
754
|
* The type of the scanned code.
|
|
749
755
|
*
|
|
750
|
-
* @since
|
|
756
|
+
* @since 0.0.1
|
|
751
757
|
*/
|
|
752
758
|
type: string;
|
|
753
759
|
}
|
|
754
760
|
/**
|
|
755
|
-
* @since
|
|
761
|
+
* @since 0.0.1
|
|
756
762
|
*/
|
|
757
763
|
export interface EnterContextEvent {
|
|
758
764
|
/**
|
|
759
765
|
* The ID of the entered context.
|
|
760
766
|
*
|
|
761
|
-
* @since
|
|
767
|
+
* @since 0.0.1
|
|
762
768
|
*/
|
|
763
769
|
contextId: string;
|
|
764
770
|
}
|
|
765
771
|
/**
|
|
766
|
-
* @since
|
|
772
|
+
* @since 0.0.1
|
|
767
773
|
*/
|
|
768
774
|
export interface ExitContextEvent {
|
|
769
775
|
/**
|
|
770
776
|
* The ID of the exited context.
|
|
771
777
|
*
|
|
772
|
-
* @since
|
|
778
|
+
* @since 0.0.1
|
|
773
779
|
*/
|
|
774
780
|
contextId: string;
|
|
775
781
|
}
|
|
776
782
|
/**
|
|
777
|
-
* @since
|
|
783
|
+
* @since 0.0.1
|
|
778
784
|
*/
|
|
779
785
|
export interface EventFromContentEvent {
|
|
780
786
|
/**
|
|
781
787
|
* The name of the custom event.
|
|
782
788
|
*
|
|
783
|
-
* @since
|
|
789
|
+
* @since 0.0.1
|
|
784
790
|
*/
|
|
785
791
|
name: string;
|
|
786
792
|
/**
|
|
787
793
|
* The parameters of the custom event.
|
|
788
794
|
*
|
|
789
|
-
* @since
|
|
795
|
+
* @since 0.0.1
|
|
790
796
|
*/
|
|
791
797
|
params: string;
|
|
792
798
|
}
|
|
793
799
|
/**
|
|
794
|
-
* @since
|
|
800
|
+
* @since 0.0.1
|
|
795
801
|
*/
|
|
796
802
|
export interface SyncProgressEvent {
|
|
797
803
|
/**
|
|
798
804
|
* The sync progress value between 0.0 and 1.0.
|
|
799
805
|
*
|
|
800
|
-
* @since
|
|
806
|
+
* @since 0.0.1
|
|
801
807
|
*/
|
|
802
808
|
progress: number;
|
|
803
809
|
}
|
|
804
810
|
/**
|
|
805
|
-
* @since
|
|
811
|
+
* @since 0.0.1
|
|
806
812
|
*/
|
|
807
813
|
export interface RequireSyncEvent {
|
|
808
814
|
/**
|
|
809
815
|
* The tags that require synchronization.
|
|
810
816
|
*
|
|
811
|
-
* @since
|
|
817
|
+
* @since 0.0.1
|
|
812
818
|
*/
|
|
813
819
|
tags: string[];
|
|
814
820
|
}
|
|
815
821
|
/**
|
|
816
|
-
* @since
|
|
822
|
+
* @since 0.0.1
|
|
817
823
|
*/
|
|
818
824
|
export interface GetVersionResult {
|
|
819
825
|
/**
|
|
820
826
|
* The version of the sdk.
|
|
821
827
|
*
|
|
822
|
-
* @since
|
|
828
|
+
* @since 0.0.1
|
|
823
829
|
*/
|
|
824
830
|
version: string;
|
|
825
831
|
}
|