-
public interface IThingDeviceActivator
Interface class for device activation functions.
-
-
Method Summary
Modifier and Type Method Description abstract IThingActivator
newActivator(ActivatorBuilder activatorBuilder)
Create an instance of activator for hotspot mode. abstract IThingActivator
newMultiActivator(ActivatorBuilder activatorBuilder)
Create an instance of activator for quick connection mode. abstract void
getMeshToken(long homeId, String meshId, IThingActivatorGetToken activatorGetToken)
Get token to provide mesh activation. abstract void
getActivatorDeviceInfo(String productId, String uuid, String mac, IThingDataCallback<ConfigProductInfoBean> callback)
Get information about inactive device. abstract void
getActivatorToken(long homeId, IThingActivatorGetToken activatorGetToken)
Get activation token. abstract void
getActivatorToken(long homeId, String pid, String options, IThingActivatorGetToken activatorGetToken)
abstract void
getActivatorToken(long homeId, String pid, IThingActivatorGetToken activatorGetToken)
Get activation token. abstract void
deviceQrCodeParse(String qrcode, IThingDataCallback<QrScanBean> callback)
parse qrcode by cloud abstract void
refreshActivatorToken(String token, IThingDataCallback<Boolean> callback)
The token is valid for 10 minutes by default. abstract IThingGwActivator
newThingGwActivator()
Create an instance of activator for Gateway devices. abstract IThingActivator
newGwActivator(ThingGwActivatorBuilder builder)
Create instance for gateway device activation. abstract IThingActivator
newGwSubDevActivator(ThingGwSubDevActivatorBuilder builder)
Create instance for gateway sub-device activation. abstract IThingActivator
newGwThreadSubDevActivator(ThingGwSubDevActivatorBuilder builder)
Create instance for gateway thread_sub-device activation. abstract IThingActivator
newQRCodeDevActivator(ThingQRCodeActivatorBuilder builder)
Create instance for scan the QR Code activation. abstract IThingCameraDevActivator
newCameraDevActivator(ThingCameraActivatorBuilder builder)
Create instance for camera device activation. abstract IThingActivator
newAutoConfigDevActivator(ThingAutoConfigActivatorBuilder builder)
Create instance for password-free activation. abstract void
getActivatorToken(IThingActivatorCreateToken activatorCreateToken)
Get activation token. abstract void
resumeTokenWhenExit(String token)
Check if the device might have successfully configured when exiting the activation abstract IThingActivator
newGatewayRouterDevActivator(ThingAutoConfigActivatorBuilder builder)
Create instance for gateway router device activation. abstract IThingActivator
newEZWifiConfigDevActivator(ActivatorBuilder activatorBuilder)
Create instance for wifi-device activation. abstract IThingLightningActivator
newLightningActivator()
Create instance for lightning activation. abstract List<String>
getSupportLightningActiveDevices(long homeId)
Get activated devices with lightning activation support. abstract IThingActivator
newDirectlyConnectedDeviceActivator(ThingDirectlyConnectedActivatorBuilder builder)
abstract IThingDirectActivator
newDirectlyDeviceActivator(ThingDirectlyDeviceActivatorBuilder builder)
for directly device rest_optimizationCreate instance for ipc auto config device activation. abstract void
deviceCloudActivate(String uuid, String groupType, long groupId, String timeZone, IThingResultCallback<DeviceBean> callback)
Local device cloud activation interface abstract void
deviceCloudActivateWithPin(String uuid, String groupType, long groupId, String timeZone, String timeZoneId, String pin, String hotspotName, IThingResultCallback<DeviceBean> callback)
Local device cloud activation interface abstract IThingActivator
newApContinueConfig(APSLActivatorBuilder activatorBuilder)
abstract IThingSmartBroadbandActivator
newBroadbandActivator()
router broadband activator abstract void
bindThingLinkDeviceWithQRCode(long homeId, String uuid, IThingDevActivatorListener listener)
bind thinglink device with scan qrcode abstract void
bindNbDeviceWithQRCode(long homeId, String uuid, String timeZone, IThingDevActivatorListener listener)
bind nb device with scan qrcode abstract void
getDeviceSecurityConfigs(IThingDataCallback<String> callback)
获取所有SL对应安全配置 abstract IThingOptimizedActivator
newOptimizedActivator(ThingApActivatorBuilder activatorBuilder)
Create an instance of activator for hotspot mode for new optimized process activator -
-
Method Detail
-
newActivator
abstract IThingActivator newActivator(ActivatorBuilder activatorBuilder)
Create an instance of activator for hotspot mode.
- Parameters:
activatorBuilder
- Activator information.
-
newMultiActivator
abstract IThingActivator newMultiActivator(ActivatorBuilder activatorBuilder)
Create an instance of activator for quick connection mode.
- Parameters:
activatorBuilder
- Activator information.
-
getMeshToken
abstract void getMeshToken(long homeId, String meshId, IThingActivatorGetToken activatorGetToken)
Get token to provide mesh activation.
- Parameters:
homeId
- Home id.meshId
- Mesh id.activatorGetToken
- Callback.
-
getActivatorDeviceInfo
abstract void getActivatorDeviceInfo(String productId, String uuid, String mac, IThingDataCallback<ConfigProductInfoBean> callback)
Get information about inactive device.
- Parameters:
productId
- Product Id.uuid
- Unique device identification.mac
- Device mac address.callback
- Callback.
-
getActivatorToken
abstract void getActivatorToken(long homeId, IThingActivatorGetToken activatorGetToken)
Get activation token.
- Parameters:
homeId
- Home id.activatorGetToken
- Callback.
-
getActivatorToken
abstract void getActivatorToken(long homeId, String pid, String options, IThingActivatorGetToken activatorGetToken)
-
getActivatorToken
abstract void getActivatorToken(long homeId, String pid, IThingActivatorGetToken activatorGetToken)
Get activation token.
- Parameters:
homeId
- Home id.pid
- Product id.activatorGetToken
- Callback.
-
deviceQrCodeParse
abstract void deviceQrCodeParse(String qrcode, IThingDataCallback<QrScanBean> callback)
parse qrcode by cloud
-
refreshActivatorToken
abstract void refreshActivatorToken(String token, IThingDataCallback<Boolean> callback)
The token is valid for 10 minutes by default. You can call this method to refresh the token.
- Parameters:
token
- The token you want to refreshcallback
- refresh result
-
newThingGwActivator
abstract IThingGwActivator newThingGwActivator()
Create an instance of activator for Gateway devices.
For gateway device search, gateway device activation, gateway sub-device activation.
-
newGwActivator
abstract IThingActivator newGwActivator(ThingGwActivatorBuilder builder)
Create instance for gateway device activation.
- Parameters:
builder
- Activation information.
-
newGwSubDevActivator
abstract IThingActivator newGwSubDevActivator(ThingGwSubDevActivatorBuilder builder)
Create instance for gateway sub-device activation.
- Parameters:
builder
- Activation information.
-
newGwThreadSubDevActivator
abstract IThingActivator newGwThreadSubDevActivator(ThingGwSubDevActivatorBuilder builder)
Create instance for gateway thread_sub-device activation.
- Parameters:
builder
- Activation information.
-
newQRCodeDevActivator
abstract IThingActivator newQRCodeDevActivator(ThingQRCodeActivatorBuilder builder)
Create instance for scan the QR Code activation.
- Parameters:
builder
- Activation information.
-
newCameraDevActivator
abstract IThingCameraDevActivator newCameraDevActivator(ThingCameraActivatorBuilder builder)
Create instance for camera device activation.
- Parameters:
builder
- Activation information.
-
newAutoConfigDevActivator
abstract IThingActivator newAutoConfigDevActivator(ThingAutoConfigActivatorBuilder builder)
Create instance for password-free activation.
- Parameters:
builder
- Activation information.
-
getActivatorToken
abstract void getActivatorToken(IThingActivatorCreateToken activatorCreateToken)
Get activation token.
- Parameters:
activatorCreateToken
- Callback.
-
resumeTokenWhenExit
abstract void resumeTokenWhenExit(String token)
Check if the device might have successfully configured when exiting the activation
-
newGatewayRouterDevActivator
abstract IThingActivator newGatewayRouterDevActivator(ThingAutoConfigActivatorBuilder builder)
Create instance for gateway router device activation.
- Parameters:
builder
- Activation information.
-
newEZWifiConfigDevActivator
abstract IThingActivator newEZWifiConfigDevActivator(ActivatorBuilder activatorBuilder)
Create instance for wifi-device activation.
No homeId is required, but you need to bind your own family or other organization after success.
- Parameters:
activatorBuilder
- Activation information.
-
newLightningActivator
abstract IThingLightningActivator newLightningActivator()
Create instance for lightning activation.com.thingclips.smart.home.sdk.api.IThingLightningActivator
-
getSupportLightningActiveDevices
abstract List<String> getSupportLightningActiveDevices(long homeId)
Get activated devices with lightning activation support.
- Parameters:
homeId
- Home id.
-
newDirectlyConnectedDeviceActivator
@Deprecated() abstract IThingActivator newDirectlyConnectedDeviceActivator(ThingDirectlyConnectedActivatorBuilder builder)
- Parameters:
builder
- Activation information.
-
newDirectlyDeviceActivator
abstract IThingDirectActivator newDirectlyDeviceActivator(ThingDirectlyDeviceActivatorBuilder builder)
for directly device rest_optimizationCreate instance for ipc auto config device activation.
- Parameters:
builder
- Activation information.
-
deviceCloudActivate
abstract void deviceCloudActivate(String uuid, String groupType, long groupId, String timeZone, IThingResultCallback<DeviceBean> callback)
Local device cloud activation interface
- Parameters:
uuid
- device uuidgroupType
- Permission group type, support home group or device group,value range ["homeGroup","deviceGroup"]groupId
- homeId or device group idtimeZone
- time zone informationcallback
- Callback.
-
deviceCloudActivateWithPin
abstract void deviceCloudActivateWithPin(String uuid, String groupType, long groupId, String timeZone, String timeZoneId, String pin, String hotspotName, IThingResultCallback<DeviceBean> callback)
Local device cloud activation interface
- Parameters:
uuid
- device uuidgroupType
- Permission group type, support home group or device group,value range ["homeGroup","deviceGroup"]groupId
- homeId or device group idtimeZone
- time zone informationpin
- pin for localKeycallback
- Callback.
-
newApContinueConfig
abstract IThingActivator newApContinueConfig(APSLActivatorBuilder activatorBuilder)
-
newBroadbandActivator
abstract IThingSmartBroadbandActivator newBroadbandActivator()
router broadband activator
-
bindThingLinkDeviceWithQRCode
abstract void bindThingLinkDeviceWithQRCode(long homeId, String uuid, IThingDevActivatorListener listener)
bind thinglink device with scan qrcode
-
bindNbDeviceWithQRCode
abstract void bindNbDeviceWithQRCode(long homeId, String uuid, String timeZone, IThingDevActivatorListener listener)
bind nb device with scan qrcode
-
getDeviceSecurityConfigs
abstract void getDeviceSecurityConfigs(IThingDataCallback<String> callback)
获取所有SL对应安全配置
-
newOptimizedActivator
abstract IThingOptimizedActivator newOptimizedActivator(ThingApActivatorBuilder activatorBuilder)
Create an instance of activator for hotspot mode for new optimized process activator
- Parameters:
activatorBuilder
- Activator information.
-
-
-
-