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