@mentra/bluetooth-sdk 0.1.13 → 0.1.14
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 +15 -3
- package/android/src/main/java/com/mentra/bluetoothsdk/BluetoothSdkModule.kt +27 -40
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +7 -13
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceStore.kt +0 -4
- package/android/src/main/java/com/mentra/bluetoothsdk/MentraBluetoothSdk.kt +19 -20
- package/android/src/main/java/com/mentra/bluetoothsdk/camera/CameraModels.kt +3 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/controllers/ControllerManager.kt +1 -2
- package/android/src/main/java/com/mentra/bluetoothsdk/controllers/R1.kt +1 -2
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/G1.kt +1 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/G2.kt +0 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/Mach1.kt +1 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLive.kt +1 -39
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraNex.kt +1 -2
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/SGCManager.kt +2 -4
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/Simulated.kt +3 -7
- package/android/src/main/java/com/mentra/bluetoothsdk/status/DeviceStatus.kt +0 -6
- package/android/src/main/java/com/mentra/bluetoothsdk/streaming/StreamModels.kt +16 -33
- package/build/BluetoothSdk.types.d.ts +12 -11
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/_private/BluetoothSdkModule.d.ts +4 -6
- package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
- package/build/_private/BluetoothSdkModule.js +0 -4
- package/build/_private/BluetoothSdkModule.js.map +1 -1
- package/build/_private/photoRequestPayload.d.ts.map +1 -1
- package/build/_private/photoRequestPayload.js +3 -1
- package/build/_private/photoRequestPayload.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -12
- package/build/index.js.map +1 -1
- package/ios/BluetoothSdkModule.swift +11 -16
- package/ios/Source/DeviceManager.swift +5 -11
- package/ios/Source/DeviceStore.swift +0 -4
- package/ios/Source/MentraBluetoothSDK.swift +24 -28
- package/ios/Source/camera/CameraModels.swift +7 -11
- package/ios/Source/controllers/ControllerManager.swift +1 -2
- package/ios/Source/controllers/R1.swift +1 -2
- package/ios/Source/sgcs/Frame.swift +0 -2
- package/ios/Source/sgcs/G1.swift +1 -3
- package/ios/Source/sgcs/G2.swift +1 -2
- package/ios/Source/sgcs/Mach1.swift +1 -3
- package/ios/Source/sgcs/MentraLive.swift +12 -39
- package/ios/Source/sgcs/MentraNex.swift +1 -3
- package/ios/Source/sgcs/SGCManager.swift +4 -5
- package/ios/Source/sgcs/Simulated.swift +2 -6
- package/ios/Source/status/DeviceStatus.swift +0 -8
- package/ios/Source/streaming/StreamModels.swift +7 -32
- package/package.json +1 -1
- package/src/BluetoothSdk.types.ts +12 -11
- package/src/_private/BluetoothSdkModule.ts +4 -11
- package/src/_private/photoRequestPayload.ts +3 -1
- package/src/index.ts +7 -15
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
BluetoothSdkEventListener,
|
|
4
4
|
BluetoothSdkEventName,
|
|
5
5
|
BluetoothSdkPublicModule,
|
|
6
|
-
|
|
6
|
+
VideoRecordingDefaults,
|
|
7
7
|
} from "./BluetoothSdk.types"
|
|
8
8
|
|
|
9
9
|
const PUBLIC_EVENT_NAMES = new Set<BluetoothSdkEventName>([
|
|
@@ -85,19 +85,10 @@ export const BluetoothSdk: BluetoothSdkPublicModule = Object.freeze({
|
|
|
85
85
|
setGalleryModeEnabled: PrivateBluetoothSdkModule.setGalleryModeEnabled.bind(PrivateBluetoothSdkModule),
|
|
86
86
|
setVoiceActivityDetectionEnabled:
|
|
87
87
|
PrivateBluetoothSdkModule.setVoiceActivityDetectionEnabled.bind(PrivateBluetoothSdkModule),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return PrivateBluetoothSdkModule.setButtonPhotoCaptureSettings(settings)
|
|
93
|
-
}
|
|
94
|
-
// Legacy fallback: old native bridge only accepts a size string
|
|
95
|
-
return PrivateBluetoothSdkModule.setButtonPhotoSettings({size: settings.size ?? "max"} as any)
|
|
96
|
-
},
|
|
97
|
-
setButtonVideoRecordingSettings:
|
|
98
|
-
PrivateBluetoothSdkModule.setButtonVideoRecordingSettings.bind(PrivateBluetoothSdkModule),
|
|
99
|
-
setButtonCameraLed: PrivateBluetoothSdkModule.setButtonCameraLed.bind(PrivateBluetoothSdkModule),
|
|
100
|
-
setButtonMaxRecordingTime: PrivateBluetoothSdkModule.setButtonMaxRecordingTime.bind(PrivateBluetoothSdkModule),
|
|
88
|
+
setPhotoCaptureDefaults: PrivateBluetoothSdkModule.setPhotoCaptureDefaults.bind(PrivateBluetoothSdkModule),
|
|
89
|
+
setVideoRecordingDefaults: ({width, height, fps}: VideoRecordingDefaults) =>
|
|
90
|
+
PrivateBluetoothSdkModule.setVideoRecordingDefaults(width, height, fps),
|
|
91
|
+
setMaxVideoRecordingDuration: PrivateBluetoothSdkModule.setMaxVideoRecordingDuration.bind(PrivateBluetoothSdkModule),
|
|
101
92
|
setCameraFov: PrivateBluetoothSdkModule.setCameraFov.bind(PrivateBluetoothSdkModule),
|
|
102
93
|
queryGalleryStatus: PrivateBluetoothSdkModule.queryGalleryStatus.bind(PrivateBluetoothSdkModule),
|
|
103
94
|
requestPhoto: PrivateBluetoothSdkModule.requestPhoto.bind(PrivateBluetoothSdkModule),
|
|
@@ -155,7 +146,7 @@ export type {
|
|
|
155
146
|
BluetoothSdkPublicModule as BluetoothSdkModule,
|
|
156
147
|
BluetoothSdkSubscription,
|
|
157
148
|
ButtonPhotoSize,
|
|
158
|
-
|
|
149
|
+
PhotoCaptureDefaults,
|
|
159
150
|
ButtonPressEvent,
|
|
160
151
|
CameraFovPreset,
|
|
161
152
|
CameraFovRequest,
|
|
@@ -226,6 +217,7 @@ export type {
|
|
|
226
217
|
SwipeVolumeStatusEvent,
|
|
227
218
|
SwitchStatusEvent,
|
|
228
219
|
TouchEvent,
|
|
220
|
+
VideoRecordingDefaults,
|
|
229
221
|
VideoRecordingStartedStatusEvent,
|
|
230
222
|
VideoRecordingStatusEvent,
|
|
231
223
|
VideoRecordingStatusState,
|