react-native-gizwits-sdk-v5 1.4.52 → 1.4.53
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.
|
@@ -492,7 +492,8 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
|
|
|
492
492
|
sendEvent(withName: "GizMusicalRhythmEvnet", body: data)
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
var
|
|
495
|
+
var realCallback = params.needMonitor ? progressHandler : nil
|
|
496
|
+
var res = device.startMusicalRhythm(sensitivity: params.sensitivity, mode: params.mode, callback: realCallback)
|
|
496
497
|
GizRNCallbackManager.callbackWithResult(callback: result, result:GizResult<Int?, GizAPIException?>(successMessage: "", data: nil))
|
|
497
498
|
|
|
498
499
|
}
|