@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.
Files changed (80) hide show
  1. package/CapawesomeCapacitorPixlive.podspec +30 -0
  2. package/Package.swift +28 -0
  3. package/README.md +1012 -0
  4. package/android/build.gradle +64 -0
  5. package/android/src/main/AndroidManifest.xml +8 -0
  6. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/Pixlive.java +704 -0
  7. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/PixliveHelper.java +112 -0
  8. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/PixlivePlugin.java +691 -0
  9. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/TouchInterceptorView.java +94 -0
  10. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/CustomException.java +20 -0
  11. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/CustomExceptions.java +29 -0
  12. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/ActivateContextOptions.java +29 -0
  13. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/CreateARViewOptions.java +68 -0
  14. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/EnableContextsWithTagsOptions.java +30 -0
  15. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/GetContextOptions.java +29 -0
  16. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/GetGPSPointsInBoundingBoxOptions.java +68 -0
  17. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/GetNearbyGPSPointsOptions.java +40 -0
  18. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/ResizeARViewOptions.java +68 -0
  19. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SetARViewTouchEnabledOptions.java +26 -0
  20. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SetARViewTouchHoleOptions.java +68 -0
  21. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SetInterfaceLanguageOptions.java +29 -0
  22. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SetNotificationsSupportOptions.java +26 -0
  23. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SynchronizeOptions.java +30 -0
  24. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/SynchronizeWithToursAndContextsOptions.java +66 -0
  25. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/options/UpdateTagMappingOptions.java +30 -0
  26. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetContextResult.java +23 -0
  27. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetContextsResult.java +24 -0
  28. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetGPSPointsInBoundingBoxResult.java +24 -0
  29. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetNearbyBeaconsResult.java +24 -0
  30. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetNearbyGPSPointsResult.java +24 -0
  31. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/classes/results/GetVersionResult.java +24 -0
  32. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/interfaces/Callback.java +5 -0
  33. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/interfaces/EmptyCallback.java +5 -0
  34. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/interfaces/NonEmptyCallback.java +7 -0
  35. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/interfaces/NonEmptyResultCallback.java +7 -0
  36. package/android/src/main/java/io/capawesome/capacitorjs/plugins/pixlive/interfaces/Result.java +7 -0
  37. package/android/src/main/res/.gitkeep +0 -0
  38. package/dist/docs.json +2107 -0
  39. package/dist/esm/definitions.d.ts +825 -0
  40. package/dist/esm/definitions.js +2 -0
  41. package/dist/esm/definitions.js.map +1 -0
  42. package/dist/esm/index.d.ts +4 -0
  43. package/dist/esm/index.js +7 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/web.d.ts +31 -0
  46. package/dist/esm/web.js +85 -0
  47. package/dist/esm/web.js.map +1 -0
  48. package/dist/plugin.cjs.js +99 -0
  49. package/dist/plugin.cjs.js.map +1 -0
  50. package/dist/plugin.js +102 -0
  51. package/dist/plugin.js.map +1 -0
  52. package/ios/Plugin/CapacitorARViewController.swift +17 -0
  53. package/ios/Plugin/Classes/Options/ActivateContextOptions.swift +16 -0
  54. package/ios/Plugin/Classes/Options/CreateARViewOptions.swift +47 -0
  55. package/ios/Plugin/Classes/Options/EnableContextsWithTagsOptions.swift +16 -0
  56. package/ios/Plugin/Classes/Options/GetContextOptions.swift +16 -0
  57. package/ios/Plugin/Classes/Options/GetGPSPointsInBoundingBoxOptions.swift +43 -0
  58. package/ios/Plugin/Classes/Options/GetNearbyGPSPointsOptions.swift +25 -0
  59. package/ios/Plugin/Classes/Options/ResizeARViewOptions.swift +47 -0
  60. package/ios/Plugin/Classes/Options/SetARViewTouchEnabledOptions.swift +16 -0
  61. package/ios/Plugin/Classes/Options/SetARViewTouchHoleOptions.swift +43 -0
  62. package/ios/Plugin/Classes/Options/SetInterfaceLanguageOptions.swift +16 -0
  63. package/ios/Plugin/Classes/Options/SetNotificationsSupportOptions.swift +16 -0
  64. package/ios/Plugin/Classes/Options/SynchronizeOptions.swift +16 -0
  65. package/ios/Plugin/Classes/Options/SynchronizeWithToursAndContextsOptions.swift +34 -0
  66. package/ios/Plugin/Classes/Options/UpdateTagMappingOptions.swift +16 -0
  67. package/ios/Plugin/Classes/Results/GetContextResult.swift +16 -0
  68. package/ios/Plugin/Classes/Results/GetContextsResult.swift +16 -0
  69. package/ios/Plugin/Classes/Results/GetGPSPointsInBoundingBoxResult.swift +16 -0
  70. package/ios/Plugin/Classes/Results/GetNearbyBeaconsResult.swift +16 -0
  71. package/ios/Plugin/Classes/Results/GetNearbyGPSPointsResult.swift +16 -0
  72. package/ios/Plugin/Classes/Results/GetVersionResult.swift +16 -0
  73. package/ios/Plugin/Enums/CustomError.swift +86 -0
  74. package/ios/Plugin/Info.plist +24 -0
  75. package/ios/Plugin/Pixlive.swift +495 -0
  76. package/ios/Plugin/PixliveHelper.swift +91 -0
  77. package/ios/Plugin/PixlivePlugin.swift +503 -0
  78. package/ios/Plugin/Protocols/Result.swift +6 -0
  79. package/ios/Plugin/TouchForwarderView.swift +24 -0
  80. package/package.json +93 -0
@@ -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":"","sourcesContent":["import type { PermissionState, PluginListenerHandle } from '@capacitor/core';\n\n/**\n * @since 8.0.0\n */\nexport type PixlivePermissionType =\n | 'bluetooth'\n | 'bluetoothConnect'\n | 'bluetoothScan'\n | 'camera'\n | 'location'\n | 'notifications';\n\n/**\n * @since 8.0.0\n */\nexport interface PixlivePlugin {\n /**\n * Initialize the PixLive SDK.\n *\n * This must be called before any other method.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n initialize(): Promise<void>;\n /**\n * Check the status of permissions.\n *\n * @since 8.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n /**\n * Request permissions.\n *\n * @since 8.0.0\n */\n requestPermissions(\n options?: PixlivePluginPermission,\n ): Promise<PermissionStatus>;\n /**\n * Sync content from PixLive Maker filtered by tags.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n synchronize(options: SynchronizeOptions): Promise<void>;\n /**\n * Sync content filtered by tags, tour IDs, and context IDs.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n synchronizeWithToursAndContexts(\n options: SynchronizeWithToursAndContextsOptions,\n ): Promise<void>;\n /**\n * Update tag-to-context mappings for language filtering.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n updateTagMapping(options: UpdateTagMappingOptions): Promise<void>;\n /**\n * Enable only contexts matching specific tags.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n enableContextsWithTags(options: EnableContextsWithTagsOptions): Promise<void>;\n /**\n * Get all synchronized contexts.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n getContexts(): Promise<GetContextsResult>;\n /**\n * Get a single context by ID.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n getContext(options: GetContextOptions): Promise<GetContextResult>;\n /**\n * Programmatically trigger/activate a context.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n activateContext(options: ActivateContextOptions): Promise<void>;\n /**\n * Stop the currently playing/active context.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n stopContext(): Promise<void>;\n /**\n * Get GPS points near a given location, sorted by distance.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n getNearbyGPSPoints(\n options: GetNearbyGPSPointsOptions,\n ): Promise<GetNearbyGPSPointsResult>;\n /**\n * Get all GPS points within a geographic bounding box.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n getGPSPointsInBoundingBox(\n options: GetGPSPointsInBoundingBoxOptions,\n ): Promise<GetGPSPointsInBoundingBoxResult>;\n /**\n * Get contexts associated with nearby detected beacons.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n getNearbyBeacons(): Promise<GetNearbyBeaconsResult>;\n /**\n * Start background GPS proximity detection.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n startNearbyGPSDetection(): Promise<void>;\n /**\n * Stop background GPS proximity detection.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n stopNearbyGPSDetection(): Promise<void>;\n /**\n * Enable GPS-triggered local notifications.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n startGPSNotifications(): Promise<void>;\n /**\n * Disable GPS-triggered local notifications.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n stopGPSNotifications(): Promise<void>;\n /**\n * Enable or disable notification support.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n setNotificationsSupport(\n options: SetNotificationsSupportOptions,\n ): Promise<void>;\n /**\n * Set the language for SDK UI elements.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n setInterfaceLanguage(options: SetInterfaceLanguageOptions): Promise<void>;\n /**\n * Create the native AR camera view at specified screen coordinates.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n createARView(options: CreateARViewOptions): Promise<void>;\n /**\n * Destroy the AR camera view.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n destroyARView(): Promise<void>;\n /**\n * Resize the AR view.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n resizeARView(options: ResizeARViewOptions): Promise<void>;\n /**\n * Enable or disable touch event interception on the AR view.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n setARViewTouchEnabled(options: SetARViewTouchEnabledOptions): Promise<void>;\n /**\n * Define a rectangular region where touches pass through the AR view to the web layer.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n setARViewTouchHole(options: SetARViewTouchHoleOptions): Promise<void>;\n /**\n * Get the version of the sdk.\n *\n * @since 8.0.0\n */\n getVersion(): Promise<GetVersionResult>;\n /**\n * Called when a QR code or barcode is scanned by the AR camera.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'codeRecognize',\n listenerFunc: (event: CodeRecognizeEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when an AR context is detected/entered.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'enterContext',\n listenerFunc: (event: EnterContextEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when an AR context is lost/exited.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'exitContext',\n listenerFunc: (event: ExitContextEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when AR content/annotations become visible on screen.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'presentAnnotations',\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when AR content/annotations are hidden.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'hideAnnotations',\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when AR content dispatches a custom event.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'eventFromContent',\n listenerFunc: (event: EventFromContentEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called during synchronization with progress updates.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'syncProgress',\n listenerFunc: (event: SyncProgressEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Called when the SDK requires synchronization with specific tags.\n *\n * @since 8.0.0\n */\n addListener(\n eventName: 'requireSync',\n listenerFunc: (event: RequireSyncEvent) => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Remove all listeners for this plugin.\n *\n * @since 8.0.0\n */\n removeAllListeners(): Promise<void>;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SynchronizeOptions {\n /**\n * The tags to filter content by.\n *\n * @since 8.0.0\n */\n tags: string[][];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SynchronizeWithToursAndContextsOptions {\n /**\n * The tags to filter content by.\n *\n * @since 8.0.0\n */\n tags: string[][];\n /**\n * The tour IDs to sync.\n *\n * @since 8.0.0\n */\n tourIds: number[];\n /**\n * The context IDs to sync.\n *\n * @since 8.0.0\n */\n contextIds: string[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface UpdateTagMappingOptions {\n /**\n * The tags to map.\n *\n * @since 8.0.0\n */\n tags: string[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface EnableContextsWithTagsOptions {\n /**\n * The tags to enable contexts for.\n *\n * @since 8.0.0\n */\n tags: string[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetContextOptions {\n /**\n * The ID of the context to retrieve.\n *\n * @since 8.0.0\n * @example \"12345\"\n */\n contextId: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface ActivateContextOptions {\n /**\n * The ID of the context to activate.\n *\n * @since 8.0.0\n * @example \"12345\"\n */\n contextId: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetNearbyGPSPointsOptions {\n /**\n * The latitude of the reference location.\n *\n * @since 8.0.0\n */\n latitude: number;\n /**\n * The longitude of the reference location.\n *\n * @since 8.0.0\n */\n longitude: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetGPSPointsInBoundingBoxOptions {\n /**\n * The minimum latitude of the bounding box.\n *\n * @since 8.0.0\n */\n minLatitude: number;\n /**\n * The minimum longitude of the bounding box.\n *\n * @since 8.0.0\n */\n minLongitude: number;\n /**\n * The maximum latitude of the bounding box.\n *\n * @since 8.0.0\n */\n maxLatitude: number;\n /**\n * The maximum longitude of the bounding box.\n *\n * @since 8.0.0\n */\n maxLongitude: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SetNotificationsSupportOptions {\n /**\n * Whether notifications support should be enabled.\n *\n * @since 8.0.0\n */\n enabled: boolean;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SetInterfaceLanguageOptions {\n /**\n * The language code to set.\n *\n * @since 8.0.0\n * @example \"en\"\n */\n language: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface CreateARViewOptions {\n /**\n * The x position of the AR view.\n *\n * @since 8.0.0\n */\n x: number;\n /**\n * The y position of the AR view.\n *\n * @since 8.0.0\n */\n y: number;\n /**\n * The width of the AR view.\n *\n * @since 8.0.0\n */\n width: number;\n /**\n * The height of the AR view.\n *\n * @since 8.0.0\n */\n height: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface ResizeARViewOptions {\n /**\n * The new x position of the AR view.\n *\n * @since 8.0.0\n */\n x: number;\n /**\n * The new y position of the AR view.\n *\n * @since 8.0.0\n */\n y: number;\n /**\n * The new width of the AR view.\n *\n * @since 8.0.0\n */\n width: number;\n /**\n * The new height of the AR view.\n *\n * @since 8.0.0\n */\n height: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SetARViewTouchEnabledOptions {\n /**\n * Whether touch events should be intercepted by the AR view.\n *\n * @since 8.0.0\n */\n enabled: boolean;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SetARViewTouchHoleOptions {\n /**\n * The top coordinate of the touch hole region.\n *\n * @since 8.0.0\n */\n top: number;\n /**\n * The bottom coordinate of the touch hole region.\n *\n * @since 8.0.0\n */\n bottom: number;\n /**\n * The left coordinate of the touch hole region.\n *\n * @since 8.0.0\n */\n left: number;\n /**\n * The right coordinate of the touch hole region.\n *\n * @since 8.0.0\n */\n right: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface PixlivePluginPermission {\n /**\n * The permissions to request.\n *\n * @since 8.0.0\n */\n permissions: PixlivePermissionType[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface PermissionStatus {\n /**\n * Permission state of the Bluetooth permission.\n *\n * Only available on iOS.\n *\n * @since 8.0.0\n */\n bluetooth?: PermissionState;\n /**\n * Permission state of the Bluetooth Connect permission.\n *\n * Only available on Android.\n *\n * @since 8.0.0\n */\n bluetoothConnect?: PermissionState;\n /**\n * Permission state of the Bluetooth Scan permission.\n *\n * Only available on Android.\n *\n * @since 8.0.0\n */\n bluetoothScan?: PermissionState;\n /**\n * Permission state of the Camera permission.\n *\n * @since 8.0.0\n */\n camera: PermissionState;\n /**\n * Permission state of the Location permission.\n *\n * Only available on Android and iOS.\n *\n * @since 8.0.0\n */\n location?: PermissionState;\n /**\n * Permission state of the Notifications permission.\n *\n * @since 8.0.0\n */\n notifications?: PermissionState;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetContextsResult {\n /**\n * The list of synchronized contexts.\n *\n * @since 8.0.0\n */\n contexts: Context[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetContextResult {\n /**\n * The context.\n *\n * @since 8.0.0\n */\n context: Context;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetNearbyBeaconsResult {\n /**\n * The contexts associated with nearby beacons.\n *\n * @since 8.0.0\n */\n contexts: Context[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetNearbyGPSPointsResult {\n /**\n * The nearby GPS points sorted by distance.\n *\n * @since 8.0.0\n */\n points: GPSPoint[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetGPSPointsInBoundingBoxResult {\n /**\n * The GPS points within the bounding box.\n *\n * @since 8.0.0\n */\n points: GPSPoint[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface Context {\n /**\n * The unique identifier of the context.\n *\n * @since 8.0.0\n */\n contextId: string;\n /**\n * The name of the context.\n *\n * @since 8.0.0\n */\n name: string;\n /**\n * The description of the context.\n *\n * @since 8.0.0\n */\n description: string | null;\n /**\n * The last update timestamp.\n *\n * @since 8.0.0\n */\n lastUpdate: string;\n /**\n * The URL of the thumbnail image.\n *\n * @since 8.0.0\n */\n imageThumbnailURL: string | null;\n /**\n * The URL of the high-resolution image.\n *\n * @since 8.0.0\n */\n imageHiResURL: string | null;\n /**\n * The notification title.\n *\n * @since 8.0.0\n */\n notificationTitle: string | null;\n /**\n * The notification message.\n *\n * @since 8.0.0\n */\n notificationMessage: string | null;\n /**\n * The tags associated with the context.\n *\n * @since 8.0.0\n */\n tags: string[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GPSPoint {\n /**\n * The ID of the associated context.\n *\n * @since 8.0.0\n */\n contextId: string;\n /**\n * The category of the GPS point.\n *\n * @since 8.0.0\n */\n category: string;\n /**\n * The label of the GPS point.\n *\n * @since 8.0.0\n */\n label: string;\n /**\n * The latitude of the GPS point.\n *\n * @since 8.0.0\n */\n latitude: number;\n /**\n * The longitude of the GPS point.\n *\n * @since 8.0.0\n */\n longitude: number;\n /**\n * The detection radius in meters.\n *\n * @since 8.0.0\n */\n detectionRadius: number | null;\n /**\n * The distance from the current position in meters.\n *\n * @since 8.0.0\n */\n distanceFromCurrentPosition: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface CodeRecognizeEvent {\n /**\n * The scanned code value.\n *\n * @since 8.0.0\n */\n code: string;\n /**\n * The type of the scanned code.\n *\n * @since 8.0.0\n */\n type: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface EnterContextEvent {\n /**\n * The ID of the entered context.\n *\n * @since 8.0.0\n */\n contextId: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface ExitContextEvent {\n /**\n * The ID of the exited context.\n *\n * @since 8.0.0\n */\n contextId: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface EventFromContentEvent {\n /**\n * The name of the custom event.\n *\n * @since 8.0.0\n */\n name: string;\n /**\n * The parameters of the custom event.\n *\n * @since 8.0.0\n */\n params: string;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface SyncProgressEvent {\n /**\n * The sync progress value between 0.0 and 1.0.\n *\n * @since 8.0.0\n */\n progress: number;\n}\n\n/**\n * @since 8.0.0\n */\nexport interface RequireSyncEvent {\n /**\n * The tags that require synchronization.\n *\n * @since 8.0.0\n */\n tags: string[];\n}\n\n/**\n * @since 8.0.0\n */\nexport interface GetVersionResult {\n /**\n * The version of the sdk.\n *\n * @since 8.0.0\n */\n version: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { PixlivePlugin } from './definitions';
2
+ declare const Pixlive: PixlivePlugin;
3
+ export * from './definitions';
4
+ export { Pixlive };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const Pixlive = registerPlugin('Pixlive', {
3
+ web: () => import('./web').then(m => new m.PixliveWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { Pixlive };
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,OAAO,GAAG,cAAc,CAAgB,SAAS,EAAE;IACvD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;CACzD,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { PixlivePlugin } from './definitions';\n\nconst Pixlive = registerPlugin<PixlivePlugin>('Pixlive', {\n web: () => import('./web').then(m => new m.PixliveWeb()),\n});\n\nexport * from './definitions';\nexport { Pixlive };\n"]}
@@ -0,0 +1,31 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { PixlivePlugin } from './definitions';
3
+ export declare class PixliveWeb extends WebPlugin implements PixlivePlugin {
4
+ initialize(): Promise<void>;
5
+ checkPermissions(): Promise<never>;
6
+ requestPermissions(): Promise<never>;
7
+ synchronize(): Promise<void>;
8
+ synchronizeWithToursAndContexts(): Promise<void>;
9
+ updateTagMapping(): Promise<void>;
10
+ enableContextsWithTags(): Promise<void>;
11
+ getContexts(): Promise<never>;
12
+ getContext(): Promise<never>;
13
+ activateContext(): Promise<void>;
14
+ stopContext(): Promise<void>;
15
+ getNearbyGPSPoints(): Promise<never>;
16
+ getGPSPointsInBoundingBox(): Promise<never>;
17
+ getNearbyBeacons(): Promise<never>;
18
+ startNearbyGPSDetection(): Promise<void>;
19
+ stopNearbyGPSDetection(): Promise<void>;
20
+ startGPSNotifications(): Promise<void>;
21
+ stopGPSNotifications(): Promise<void>;
22
+ setNotificationsSupport(): Promise<void>;
23
+ setInterfaceLanguage(): Promise<void>;
24
+ createARView(): Promise<void>;
25
+ destroyARView(): Promise<void>;
26
+ resizeARView(): Promise<void>;
27
+ setARViewTouchEnabled(): Promise<void>;
28
+ setARViewTouchHole(): Promise<void>;
29
+ getVersion(): Promise<never>;
30
+ private throwUnimplemented;
31
+ }
@@ -0,0 +1,85 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class PixliveWeb extends WebPlugin {
3
+ async initialize() {
4
+ this.throwUnimplemented();
5
+ }
6
+ async checkPermissions() {
7
+ this.throwUnimplemented();
8
+ }
9
+ async requestPermissions() {
10
+ this.throwUnimplemented();
11
+ }
12
+ async synchronize() {
13
+ this.throwUnimplemented();
14
+ }
15
+ async synchronizeWithToursAndContexts() {
16
+ this.throwUnimplemented();
17
+ }
18
+ async updateTagMapping() {
19
+ this.throwUnimplemented();
20
+ }
21
+ async enableContextsWithTags() {
22
+ this.throwUnimplemented();
23
+ }
24
+ async getContexts() {
25
+ this.throwUnimplemented();
26
+ }
27
+ async getContext() {
28
+ this.throwUnimplemented();
29
+ }
30
+ async activateContext() {
31
+ this.throwUnimplemented();
32
+ }
33
+ async stopContext() {
34
+ this.throwUnimplemented();
35
+ }
36
+ async getNearbyGPSPoints() {
37
+ this.throwUnimplemented();
38
+ }
39
+ async getGPSPointsInBoundingBox() {
40
+ this.throwUnimplemented();
41
+ }
42
+ async getNearbyBeacons() {
43
+ this.throwUnimplemented();
44
+ }
45
+ async startNearbyGPSDetection() {
46
+ this.throwUnimplemented();
47
+ }
48
+ async stopNearbyGPSDetection() {
49
+ this.throwUnimplemented();
50
+ }
51
+ async startGPSNotifications() {
52
+ this.throwUnimplemented();
53
+ }
54
+ async stopGPSNotifications() {
55
+ this.throwUnimplemented();
56
+ }
57
+ async setNotificationsSupport() {
58
+ this.throwUnimplemented();
59
+ }
60
+ async setInterfaceLanguage() {
61
+ this.throwUnimplemented();
62
+ }
63
+ async createARView() {
64
+ this.throwUnimplemented();
65
+ }
66
+ async destroyARView() {
67
+ this.throwUnimplemented();
68
+ }
69
+ async resizeARView() {
70
+ this.throwUnimplemented();
71
+ }
72
+ async setARViewTouchEnabled() {
73
+ this.throwUnimplemented();
74
+ }
75
+ async setARViewTouchHole() {
76
+ this.throwUnimplemented();
77
+ }
78
+ async getVersion() {
79
+ this.throwUnimplemented();
80
+ }
81
+ throwUnimplemented() {
82
+ throw this.unimplemented('Not implemented on web.');
83
+ }
84
+ }
85
+ //# 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,UAAW,SAAQ,SAAS;IACvC,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,+BAA+B;QACnC,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,sBAAsB;QAC1B,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,IAAI,C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n\nimport type { PixlivePlugin } from './definitions';\n\nexport class PixliveWeb extends WebPlugin implements PixlivePlugin {\n async initialize(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async checkPermissions(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async requestPermissions(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async synchronize(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async synchronizeWithToursAndContexts(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async updateTagMapping(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async enableContextsWithTags(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async getContexts(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async getContext(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async activateContext(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async stopContext(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async getNearbyGPSPoints(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async getGPSPointsInBoundingBox(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async getNearbyBeacons(): Promise<never> {\n this.throwUnimplemented();\n }\n\n async startNearbyGPSDetection(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async stopNearbyGPSDetection(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async startGPSNotifications(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async stopGPSNotifications(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async setNotificationsSupport(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async setInterfaceLanguage(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async createARView(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async destroyARView(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async resizeARView(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async setARViewTouchEnabled(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async setARViewTouchHole(): Promise<void> {\n this.throwUnimplemented();\n }\n\n async getVersion(): Promise<never> {\n this.throwUnimplemented();\n }\n\n private throwUnimplemented(): never {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n"]}
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+
3
+ var core = require('@capacitor/core');
4
+
5
+ const Pixlive = core.registerPlugin('Pixlive', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.PixliveWeb()),
7
+ });
8
+
9
+ class PixliveWeb extends core.WebPlugin {
10
+ async initialize() {
11
+ this.throwUnimplemented();
12
+ }
13
+ async checkPermissions() {
14
+ this.throwUnimplemented();
15
+ }
16
+ async requestPermissions() {
17
+ this.throwUnimplemented();
18
+ }
19
+ async synchronize() {
20
+ this.throwUnimplemented();
21
+ }
22
+ async synchronizeWithToursAndContexts() {
23
+ this.throwUnimplemented();
24
+ }
25
+ async updateTagMapping() {
26
+ this.throwUnimplemented();
27
+ }
28
+ async enableContextsWithTags() {
29
+ this.throwUnimplemented();
30
+ }
31
+ async getContexts() {
32
+ this.throwUnimplemented();
33
+ }
34
+ async getContext() {
35
+ this.throwUnimplemented();
36
+ }
37
+ async activateContext() {
38
+ this.throwUnimplemented();
39
+ }
40
+ async stopContext() {
41
+ this.throwUnimplemented();
42
+ }
43
+ async getNearbyGPSPoints() {
44
+ this.throwUnimplemented();
45
+ }
46
+ async getGPSPointsInBoundingBox() {
47
+ this.throwUnimplemented();
48
+ }
49
+ async getNearbyBeacons() {
50
+ this.throwUnimplemented();
51
+ }
52
+ async startNearbyGPSDetection() {
53
+ this.throwUnimplemented();
54
+ }
55
+ async stopNearbyGPSDetection() {
56
+ this.throwUnimplemented();
57
+ }
58
+ async startGPSNotifications() {
59
+ this.throwUnimplemented();
60
+ }
61
+ async stopGPSNotifications() {
62
+ this.throwUnimplemented();
63
+ }
64
+ async setNotificationsSupport() {
65
+ this.throwUnimplemented();
66
+ }
67
+ async setInterfaceLanguage() {
68
+ this.throwUnimplemented();
69
+ }
70
+ async createARView() {
71
+ this.throwUnimplemented();
72
+ }
73
+ async destroyARView() {
74
+ this.throwUnimplemented();
75
+ }
76
+ async resizeARView() {
77
+ this.throwUnimplemented();
78
+ }
79
+ async setARViewTouchEnabled() {
80
+ this.throwUnimplemented();
81
+ }
82
+ async setARViewTouchHole() {
83
+ this.throwUnimplemented();
84
+ }
85
+ async getVersion() {
86
+ this.throwUnimplemented();
87
+ }
88
+ throwUnimplemented() {
89
+ throw this.unimplemented('Not implemented on web.');
90
+ }
91
+ }
92
+
93
+ var web = /*#__PURE__*/Object.freeze({
94
+ __proto__: null,
95
+ PixliveWeb: PixliveWeb
96
+ });
97
+
98
+ exports.Pixlive = Pixlive;
99
+ //# 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 Pixlive = registerPlugin('Pixlive', {\n web: () => import('./web').then(m => new m.PixliveWeb()),\n});\nexport * from './definitions';\nexport { Pixlive };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PixliveWeb extends WebPlugin {\n async initialize() {\n this.throwUnimplemented();\n }\n async checkPermissions() {\n this.throwUnimplemented();\n }\n async requestPermissions() {\n this.throwUnimplemented();\n }\n async synchronize() {\n this.throwUnimplemented();\n }\n async synchronizeWithToursAndContexts() {\n this.throwUnimplemented();\n }\n async updateTagMapping() {\n this.throwUnimplemented();\n }\n async enableContextsWithTags() {\n this.throwUnimplemented();\n }\n async getContexts() {\n this.throwUnimplemented();\n }\n async getContext() {\n this.throwUnimplemented();\n }\n async activateContext() {\n this.throwUnimplemented();\n }\n async stopContext() {\n this.throwUnimplemented();\n }\n async getNearbyGPSPoints() {\n this.throwUnimplemented();\n }\n async getGPSPointsInBoundingBox() {\n this.throwUnimplemented();\n }\n async getNearbyBeacons() {\n this.throwUnimplemented();\n }\n async startNearbyGPSDetection() {\n this.throwUnimplemented();\n }\n async stopNearbyGPSDetection() {\n this.throwUnimplemented();\n }\n async startGPSNotifications() {\n this.throwUnimplemented();\n }\n async stopGPSNotifications() {\n this.throwUnimplemented();\n }\n async setNotificationsSupport() {\n this.throwUnimplemented();\n }\n async setInterfaceLanguage() {\n this.throwUnimplemented();\n }\n async createARView() {\n this.throwUnimplemented();\n }\n async destroyARView() {\n this.throwUnimplemented();\n }\n async resizeARView() {\n this.throwUnimplemented();\n }\n async setARViewTouchEnabled() {\n this.throwUnimplemented();\n }\n async setARViewTouchHole() {\n this.throwUnimplemented();\n }\n async getVersion() {\n this.throwUnimplemented();\n }\n throwUnimplemented() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC5D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,+BAA+B,GAAG;AAC5C,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,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jC,IAAI;AACJ,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AACjC,IAAI;AACJ,IAAI,kBAAkB,GAAG;AACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,102 @@
1
+ var capacitorPixlive = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ const Pixlive = core.registerPlugin('Pixlive', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.PixliveWeb()),
6
+ });
7
+
8
+ class PixliveWeb extends core.WebPlugin {
9
+ async initialize() {
10
+ this.throwUnimplemented();
11
+ }
12
+ async checkPermissions() {
13
+ this.throwUnimplemented();
14
+ }
15
+ async requestPermissions() {
16
+ this.throwUnimplemented();
17
+ }
18
+ async synchronize() {
19
+ this.throwUnimplemented();
20
+ }
21
+ async synchronizeWithToursAndContexts() {
22
+ this.throwUnimplemented();
23
+ }
24
+ async updateTagMapping() {
25
+ this.throwUnimplemented();
26
+ }
27
+ async enableContextsWithTags() {
28
+ this.throwUnimplemented();
29
+ }
30
+ async getContexts() {
31
+ this.throwUnimplemented();
32
+ }
33
+ async getContext() {
34
+ this.throwUnimplemented();
35
+ }
36
+ async activateContext() {
37
+ this.throwUnimplemented();
38
+ }
39
+ async stopContext() {
40
+ this.throwUnimplemented();
41
+ }
42
+ async getNearbyGPSPoints() {
43
+ this.throwUnimplemented();
44
+ }
45
+ async getGPSPointsInBoundingBox() {
46
+ this.throwUnimplemented();
47
+ }
48
+ async getNearbyBeacons() {
49
+ this.throwUnimplemented();
50
+ }
51
+ async startNearbyGPSDetection() {
52
+ this.throwUnimplemented();
53
+ }
54
+ async stopNearbyGPSDetection() {
55
+ this.throwUnimplemented();
56
+ }
57
+ async startGPSNotifications() {
58
+ this.throwUnimplemented();
59
+ }
60
+ async stopGPSNotifications() {
61
+ this.throwUnimplemented();
62
+ }
63
+ async setNotificationsSupport() {
64
+ this.throwUnimplemented();
65
+ }
66
+ async setInterfaceLanguage() {
67
+ this.throwUnimplemented();
68
+ }
69
+ async createARView() {
70
+ this.throwUnimplemented();
71
+ }
72
+ async destroyARView() {
73
+ this.throwUnimplemented();
74
+ }
75
+ async resizeARView() {
76
+ this.throwUnimplemented();
77
+ }
78
+ async setARViewTouchEnabled() {
79
+ this.throwUnimplemented();
80
+ }
81
+ async setARViewTouchHole() {
82
+ this.throwUnimplemented();
83
+ }
84
+ async getVersion() {
85
+ this.throwUnimplemented();
86
+ }
87
+ throwUnimplemented() {
88
+ throw this.unimplemented('Not implemented on web.');
89
+ }
90
+ }
91
+
92
+ var web = /*#__PURE__*/Object.freeze({
93
+ __proto__: null,
94
+ PixliveWeb: PixliveWeb
95
+ });
96
+
97
+ exports.Pixlive = Pixlive;
98
+
99
+ return exports;
100
+
101
+ })({}, capacitorExports);
102
+ //# 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 Pixlive = registerPlugin('Pixlive', {\n web: () => import('./web').then(m => new m.PixliveWeb()),\n});\nexport * from './definitions';\nexport { Pixlive };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PixliveWeb extends WebPlugin {\n async initialize() {\n this.throwUnimplemented();\n }\n async checkPermissions() {\n this.throwUnimplemented();\n }\n async requestPermissions() {\n this.throwUnimplemented();\n }\n async synchronize() {\n this.throwUnimplemented();\n }\n async synchronizeWithToursAndContexts() {\n this.throwUnimplemented();\n }\n async updateTagMapping() {\n this.throwUnimplemented();\n }\n async enableContextsWithTags() {\n this.throwUnimplemented();\n }\n async getContexts() {\n this.throwUnimplemented();\n }\n async getContext() {\n this.throwUnimplemented();\n }\n async activateContext() {\n this.throwUnimplemented();\n }\n async stopContext() {\n this.throwUnimplemented();\n }\n async getNearbyGPSPoints() {\n this.throwUnimplemented();\n }\n async getGPSPointsInBoundingBox() {\n this.throwUnimplemented();\n }\n async getNearbyBeacons() {\n this.throwUnimplemented();\n }\n async startNearbyGPSDetection() {\n this.throwUnimplemented();\n }\n async stopNearbyGPSDetection() {\n this.throwUnimplemented();\n }\n async startGPSNotifications() {\n this.throwUnimplemented();\n }\n async stopGPSNotifications() {\n this.throwUnimplemented();\n }\n async setNotificationsSupport() {\n this.throwUnimplemented();\n }\n async setInterfaceLanguage() {\n this.throwUnimplemented();\n }\n async createARView() {\n this.throwUnimplemented();\n }\n async destroyARView() {\n this.throwUnimplemented();\n }\n async resizeARView() {\n this.throwUnimplemented();\n }\n async setARViewTouchEnabled() {\n this.throwUnimplemented();\n }\n async setARViewTouchHole() {\n this.throwUnimplemented();\n }\n async getVersion() {\n this.throwUnimplemented();\n }\n throwUnimplemented() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;I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AAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,oBAAoB,GAAG;IACjC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,oBAAoB,GAAG;IACjC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,YAAY,GAAG;IACzB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,YAAY,GAAG;IACzB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,qBAAqB,GAAG;IAClC,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,IAAI,CAAC,kBAAkB,EAAE;IACjC,IAAI;IACJ,IAAI,kBAAkB,GAAG;IACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;;;;;;;;;;;;;;;"}
@@ -0,0 +1,17 @@
1
+ import Foundation
2
+ import VDARSDK
3
+
4
+ class CapacitorARViewController: VDARLiveAnnotationViewController {
5
+
6
+ weak var pixlive: Pixlive?
7
+
8
+ override func annotationViewDidBecomeEmpty() {
9
+ super.annotationViewDidBecomeEmpty()
10
+ pixlive?.annotationViewDidBecomeEmpty()
11
+ }
12
+
13
+ override func annotationViewDidPresentAnnotations() {
14
+ super.annotationViewDidPresentAnnotations()
15
+ pixlive?.annotationViewDidPresentAnnotations()
16
+ }
17
+ }
@@ -0,0 +1,16 @@
1
+ import Capacitor
2
+
3
+ @objc public class ActivateContextOptions: NSObject {
4
+ let contextId: String
5
+
6
+ init(_ call: CAPPluginCall) throws {
7
+ self.contextId = try ActivateContextOptions.getContextIdFromCall(call)
8
+ }
9
+
10
+ private static func getContextIdFromCall(_ call: CAPPluginCall) throws -> String {
11
+ guard let contextId = call.getString("contextId") else {
12
+ throw CustomError.contextIdMissing
13
+ }
14
+ return contextId
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ import Capacitor
2
+
3
+ @objc public class CreateARViewOptions: NSObject {
4
+ // swiftlint:disable:next identifier_name
5
+ let x: Int
6
+ // swiftlint:disable:next identifier_name
7
+ let y: Int
8
+ let width: Int
9
+ let height: Int
10
+
11
+ init(_ call: CAPPluginCall) throws {
12
+ self.x = try CreateARViewOptions.getXFromCall(call)
13
+ self.y = try CreateARViewOptions.getYFromCall(call)
14
+ self.width = try CreateARViewOptions.getWidthFromCall(call)
15
+ self.height = try CreateARViewOptions.getHeightFromCall(call)
16
+ }
17
+
18
+ private static func getXFromCall(_ call: CAPPluginCall) throws -> Int {
19
+ // swiftlint:disable:next identifier_name
20
+ guard let x = call.getInt("x") else {
21
+ throw CustomError.xMissing
22
+ }
23
+ return x
24
+ }
25
+
26
+ private static func getYFromCall(_ call: CAPPluginCall) throws -> Int {
27
+ // swiftlint:disable:next identifier_name
28
+ guard let y = call.getInt("y") else {
29
+ throw CustomError.yMissing
30
+ }
31
+ return y
32
+ }
33
+
34
+ private static func getWidthFromCall(_ call: CAPPluginCall) throws -> Int {
35
+ guard let width = call.getInt("width") else {
36
+ throw CustomError.widthMissing
37
+ }
38
+ return width
39
+ }
40
+
41
+ private static func getHeightFromCall(_ call: CAPPluginCall) throws -> Int {
42
+ guard let height = call.getInt("height") else {
43
+ throw CustomError.heightMissing
44
+ }
45
+ return height
46
+ }
47
+ }
@@ -0,0 +1,16 @@
1
+ import Capacitor
2
+
3
+ @objc public class EnableContextsWithTagsOptions: NSObject {
4
+ let tags: [String]
5
+
6
+ init(_ call: CAPPluginCall) throws {
7
+ self.tags = try EnableContextsWithTagsOptions.getTagsFromCall(call)
8
+ }
9
+
10
+ private static func getTagsFromCall(_ call: CAPPluginCall) throws -> [String] {
11
+ guard let tags = call.getArray("tags") as? [String] else {
12
+ throw CustomError.tagsMissing
13
+ }
14
+ return tags
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ import Capacitor
2
+
3
+ @objc public class GetContextOptions: NSObject {
4
+ let contextId: String
5
+
6
+ init(_ call: CAPPluginCall) throws {
7
+ self.contextId = try GetContextOptions.getContextIdFromCall(call)
8
+ }
9
+
10
+ private static func getContextIdFromCall(_ call: CAPPluginCall) throws -> String {
11
+ guard let contextId = call.getString("contextId") else {
12
+ throw CustomError.contextIdMissing
13
+ }
14
+ return contextId
15
+ }
16
+ }
@@ -0,0 +1,43 @@
1
+ import Capacitor
2
+
3
+ @objc public class GetGPSPointsInBoundingBoxOptions: NSObject {
4
+ let minLatitude: Float
5
+ let minLongitude: Float
6
+ let maxLatitude: Float
7
+ let maxLongitude: Float
8
+
9
+ init(_ call: CAPPluginCall) throws {
10
+ self.minLatitude = try GetGPSPointsInBoundingBoxOptions.getMinLatitudeFromCall(call)
11
+ self.minLongitude = try GetGPSPointsInBoundingBoxOptions.getMinLongitudeFromCall(call)
12
+ self.maxLatitude = try GetGPSPointsInBoundingBoxOptions.getMaxLatitudeFromCall(call)
13
+ self.maxLongitude = try GetGPSPointsInBoundingBoxOptions.getMaxLongitudeFromCall(call)
14
+ }
15
+
16
+ private static func getMinLatitudeFromCall(_ call: CAPPluginCall) throws -> Float {
17
+ guard let value = call.getFloat("minLatitude") else {
18
+ throw CustomError.minLatitudeMissing
19
+ }
20
+ return value
21
+ }
22
+
23
+ private static func getMinLongitudeFromCall(_ call: CAPPluginCall) throws -> Float {
24
+ guard let value = call.getFloat("minLongitude") else {
25
+ throw CustomError.minLongitudeMissing
26
+ }
27
+ return value
28
+ }
29
+
30
+ private static func getMaxLatitudeFromCall(_ call: CAPPluginCall) throws -> Float {
31
+ guard let value = call.getFloat("maxLatitude") else {
32
+ throw CustomError.maxLatitudeMissing
33
+ }
34
+ return value
35
+ }
36
+
37
+ private static func getMaxLongitudeFromCall(_ call: CAPPluginCall) throws -> Float {
38
+ guard let value = call.getFloat("maxLongitude") else {
39
+ throw CustomError.maxLongitudeMissing
40
+ }
41
+ return value
42
+ }
43
+ }
@@ -0,0 +1,25 @@
1
+ import Capacitor
2
+
3
+ @objc public class GetNearbyGPSPointsOptions: NSObject {
4
+ let latitude: Float
5
+ let longitude: Float
6
+
7
+ init(_ call: CAPPluginCall) throws {
8
+ self.latitude = try GetNearbyGPSPointsOptions.getLatitudeFromCall(call)
9
+ self.longitude = try GetNearbyGPSPointsOptions.getLongitudeFromCall(call)
10
+ }
11
+
12
+ private static func getLatitudeFromCall(_ call: CAPPluginCall) throws -> Float {
13
+ guard let latitude = call.getFloat("latitude") else {
14
+ throw CustomError.latitudeMissing
15
+ }
16
+ return latitude
17
+ }
18
+
19
+ private static func getLongitudeFromCall(_ call: CAPPluginCall) throws -> Float {
20
+ guard let longitude = call.getFloat("longitude") else {
21
+ throw CustomError.longitudeMissing
22
+ }
23
+ return longitude
24
+ }
25
+ }
@@ -0,0 +1,47 @@
1
+ import Capacitor
2
+
3
+ @objc public class ResizeARViewOptions: NSObject {
4
+ // swiftlint:disable:next identifier_name
5
+ let x: Int
6
+ // swiftlint:disable:next identifier_name
7
+ let y: Int
8
+ let width: Int
9
+ let height: Int
10
+
11
+ init(_ call: CAPPluginCall) throws {
12
+ self.x = try ResizeARViewOptions.getXFromCall(call)
13
+ self.y = try ResizeARViewOptions.getYFromCall(call)
14
+ self.width = try ResizeARViewOptions.getWidthFromCall(call)
15
+ self.height = try ResizeARViewOptions.getHeightFromCall(call)
16
+ }
17
+
18
+ private static func getXFromCall(_ call: CAPPluginCall) throws -> Int {
19
+ // swiftlint:disable:next identifier_name
20
+ guard let x = call.getInt("x") else {
21
+ throw CustomError.xMissing
22
+ }
23
+ return x
24
+ }
25
+
26
+ private static func getYFromCall(_ call: CAPPluginCall) throws -> Int {
27
+ // swiftlint:disable:next identifier_name
28
+ guard let y = call.getInt("y") else {
29
+ throw CustomError.yMissing
30
+ }
31
+ return y
32
+ }
33
+
34
+ private static func getWidthFromCall(_ call: CAPPluginCall) throws -> Int {
35
+ guard let width = call.getInt("width") else {
36
+ throw CustomError.widthMissing
37
+ }
38
+ return width
39
+ }
40
+
41
+ private static func getHeightFromCall(_ call: CAPPluginCall) throws -> Int {
42
+ guard let height = call.getInt("height") else {
43
+ throw CustomError.heightMissing
44
+ }
45
+ return height
46
+ }
47
+ }