@cuby-ui/ar 0.0.14 → 0.0.18

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/README.md CHANGED
@@ -18,8 +18,8 @@ npx cap sync
18
18
  * [`addListener(string, ...)`](#addlistenerstring-)
19
19
  * [`setFbxFolderPath(...)`](#setfbxfolderpath)
20
20
  * [`getFbxFolderPath()`](#getfbxfolderpath)
21
- * [`setJsonFile(...)`](#setjsonfile)
22
- * [`getJsonFile()`](#getjsonfile)
21
+ * [`setJsonData(...)`](#setjsondata)
22
+ * [`getJsonData()`](#getjsondata)
23
23
  * [Interfaces](#interfaces)
24
24
 
25
25
  </docgen-index>
@@ -102,30 +102,30 @@ Gets the current FBX folder path from native code.
102
102
  --------------------
103
103
 
104
104
 
105
- ### setJsonFile(...)
105
+ ### setJsonData(...)
106
106
 
107
107
  ```typescript
108
- setJsonFile(options: { path: string; }) => string
108
+ setJsonData(options: { data: string; }) => string
109
109
  ```
110
110
 
111
- Sets the path to the JSON file in native code.
111
+ Sets the path to the JSON data in native code.
112
112
 
113
113
  | Param | Type | Description |
114
114
  | ------------- | ------------------------------ | ------------------------------------- |
115
- | **`options`** | <code>{ path: string; }</code> | An object containing the path string. |
115
+ | **`options`** | <code>{ data: string; }</code> | An object containing the path string. |
116
116
 
117
117
  **Returns:** <code>string</code>
118
118
 
119
119
  --------------------
120
120
 
121
121
 
122
- ### getJsonFile()
122
+ ### getJsonData()
123
123
 
124
124
  ```typescript
125
- getJsonFile() => string
125
+ getJsonData() => string
126
126
  ```
127
127
 
128
- Gets the current JSON file path from native code.
128
+ Gets the current JSON data path from native code.
129
129
 
130
130
  **Returns:** <code>string</code>
131
131
 
Binary file
@@ -112,8 +112,6 @@ public class NativeBridge extends Plugin {
112
112
 
113
113
  try {
114
114
  NativeLogger.addOnScreenDebugMessage(message, (float) duration);
115
- String data = NativeLogger.returnData();
116
- Log.i(LOG_TAG, "Native data: " + data);
117
115
  JSObject ret = new JSObject();
118
116
  ret.put("status", "logged");
119
117
  call.resolve(ret);
package/dist/docs.json CHANGED
@@ -109,13 +109,13 @@
109
109
  "slug": "getfbxfolderpath"
110
110
  },
111
111
  {
112
- "name": "setJsonFile",
113
- "signature": "(options: { path: string; }) => string",
112
+ "name": "setJsonData",
113
+ "signature": "(options: { data: string; }) => string",
114
114
  "parameters": [
115
115
  {
116
116
  "name": "options",
117
117
  "docs": "An object containing the path string.",
118
- "type": "{ path: string; }"
118
+ "type": "{ data: string; }"
119
119
  }
120
120
  ],
121
121
  "returns": "string",
@@ -125,12 +125,12 @@
125
125
  "text": "options An object containing the path string."
126
126
  }
127
127
  ],
128
- "docs": "Sets the path to the JSON file in native code.",
128
+ "docs": "Sets the path to the JSON data in native code.",
129
129
  "complexTypes": [],
130
- "slug": "setjsonfile"
130
+ "slug": "setjsondata"
131
131
  },
132
132
  {
133
- "name": "getJsonFile",
133
+ "name": "getJsonData",
134
134
  "signature": "() => string",
135
135
  "parameters": [],
136
136
  "returns": "string",
@@ -140,9 +140,9 @@
140
140
  "text": "An object containing the path string."
141
141
  }
142
142
  ],
143
- "docs": "Gets the current JSON file path from native code.",
143
+ "docs": "Gets the current JSON data path from native code.",
144
144
  "complexTypes": [],
145
- "slug": "getjsonfile"
145
+ "slug": "getjsondata"
146
146
  }
147
147
  ],
148
148
  "properties": []
@@ -35,15 +35,15 @@ export interface NativeBridgePlugin {
35
35
  */
36
36
  getFbxFolderPath(): string;
37
37
  /**
38
- * Sets the path to the JSON file in native code.
38
+ * Sets the path to the JSON data in native code.
39
39
  * @param options An object containing the path string.
40
40
  */
41
- setJsonFile(options: {
42
- path: string;
41
+ setJsonData(options: {
42
+ data: string;
43
43
  }): string;
44
44
  /**
45
- * Gets the current JSON file path from native code.
45
+ * Gets the current JSON data path from native code.
46
46
  * @returns An object containing the path string.
47
47
  */
48
- getJsonFile(): string;
48
+ getJsonData(): string;
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from '@capacitor/core';\n\nexport interface NativeBridgePlugin {\n /**\n * Launches the AR activity.\n */\n startAR(): void;\n\n /**\n * Sends a message to native code to be logged. Returns a small status\n * object on success.\n * @param options The message to log and optional duration in seconds (default is 5).\n */\n addOnScreenDebugMessage(options: { message: string; duration?: number; }): void;\n\n /**\n * Listens for events from the native AR activity.\n * @param eventName The name of the event to listen for.\n * @param listenerFunc The function to call when the event occurs, receiving an event object with data.\n * @returns A handle to remove the listener when no longer needed.\n */\n addListener(\n eventName: string,\n listenerFunc: (event: { data: string }) => void\n ): PluginListenerHandle;\n\n /**\n * Sets the path to the FBX folder in native code.\n * @param options An object containing the path string.\n */\n setFbxFolderPath(options: { path: string }): string;\n\n /**\n * Gets the current FBX folder path from native code.\n * @returns An object containing the path string.\n */\n getFbxFolderPath(): string;\n\n /**\n * Sets the path to the JSON file in native code.\n * @param options An object containing the path string.\n */\n setJsonFile(options: { path: string }): string;\n\n /**\n * Gets the current JSON file path from native code.\n * @returns An object containing the path string.\n */\n getJsonFile(): string;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from '@capacitor/core';\n\nexport interface NativeBridgePlugin {\n /**\n * Launches the AR activity.\n */\n startAR(): void;\n\n /**\n * Sends a message to native code to be logged. Returns a small status\n * object on success.\n * @param options The message to log and optional duration in seconds (default is 5).\n */\n addOnScreenDebugMessage(options: { message: string; duration?: number; }): void;\n\n /**\n * Listens for events from the native AR activity.\n * @param eventName The name of the event to listen for.\n * @param listenerFunc The function to call when the event occurs, receiving an event object with data.\n * @returns A handle to remove the listener when no longer needed.\n */\n addListener(\n eventName: string,\n listenerFunc: (event: { data: string }) => void\n ): PluginListenerHandle;\n\n /**\n * Sets the path to the FBX folder in native code.\n * @param options An object containing the path string.\n */\n setFbxFolderPath(options: { path: string }): string;\n\n /**\n * Gets the current FBX folder path from native code.\n * @returns An object containing the path string.\n */\n getFbxFolderPath(): string;\n\n /**\n * Sets the path to the JSON data in native code.\n * @param options An object containing the path string.\n */\n setJsonData(options: { data: string }): string;\n\n /**\n * Gets the current JSON data path from native code.\n * @returns An object containing the path string.\n */\n getJsonData(): string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuby-ui/ar",
3
- "version": "0.0.14",
3
+ "version": "0.0.18",
4
4
  "description": "Ar/Vr plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",