1.1. ReactNative Preview Panel
Camera RN preview panel, packaged in TuyaPanelSDK, refer to TuyaPanelSDK.
Declaration
- (void)gotoPanelViewControllerWithDevice:(nonnull TuyaSmartDeviceModel *)device
completion:(void (^ _Nullable)(NSError *_Nullable error))completion;
Parameter
Parameter | Description |
---|---|
deviceModel | TuyaSmartDeviceModel |
Example
[TuyaSmartPanelSDK sharedInstance].homeId = deviceMode.homeId;
[[TuyaSmartPanelSDK sharedInstance] gotoPanelViewControllerWithDevice:deviceMode completion:nil];
Panel Display