Tuya iOS Smart Life App SDK 5.15.0
ThingSmartActivatorDeviceModel Class Reference

Device Model. More...

#import <ThingSmartActivatorDeviceModel.h>

Inheritance diagram for ThingSmartActivatorDeviceModel:

Instance Methods

(instancetype) - initWithUniqueID:
 
(instancetype) - initWithDeviceModel:
 
(BOOL) - needWiFiAuthentication
 
(BOOL) - supportAbilityPlugPlay
 
(BOOL) - supportAbilityPegasus
 
(BOOL) - supportAbilityHomeKit
 
(BOOL) - supportAbilityBleZigbee
 
(BOOL) - supportAbilityBlePrior
 
(BOOL) - supportAbilityBleQRCode
 
(BOOL) - supportAbilityMatter
 
(BOOL) - supportAbilityMatterFabric
 
(BOOL) - supportAbilityBleWired
 
(BOOL) - supportAbilityWifiList
 
(BOOL) - deviceScanNoneThread
 
(NSString *) - deviceScanThreadGateway
 
(BOOL) - isEqualToDevice:
 
(BOOL) - isThingDevice
 
(instancetype) - initWithUniqueID:
 
(instancetype) - initWithDeviceModel:
 
(BOOL) - needWiFiAuthentication
 
(BOOL) - supportAbilityPlugPlay
 
(BOOL) - supportAbilityPegasus
 
(BOOL) - supportAbilityHomeKit
 
(BOOL) - supportAbilityBleZigbee
 
(BOOL) - supportAbilityBlePrior
 
(BOOL) - supportAbilityBleQRCode
 
(BOOL) - supportAbilityMatter
 
(BOOL) - supportAbilityMatterFabric
 
(BOOL) - supportAbilityBleWired
 
(BOOL) - supportAbilityWifiList
 
(BOOL) - deviceScanNoneThread
 
(NSString *) - deviceScanThreadGateway
 
(BOOL) - isEqualToDevice:
 
(BOOL) - isThingDevice
 

Properties

NSString * uniqueID
 Device unique identifier. More...
 
NSString * devId
 Device virtual ID, devId is the virtual ID assigned by the cloud after the device completes the network configuration. It is empty before the network configuration. More...
 
ThingSearchDeviceModelType deviceModelType
 Device Type. More...
 
ThingSmartActivatorType activatorType
 Device network configuration type. More...
 
ThingActivatorDeviceAbility deviceAbility
 Device capabilities. More...
 
ThingSearchDeviceStatus deviceStatus
 Device status. More...
 
ThingActivatorStep step
 Pairing step. More...
 
ThingActivatorDeviceAbility selectAbility
 Pairing type. More...
 
NSString * name
 Device name. More...
 
NSString * iconUrl
 Device icon URL. More...
 
NSString * productId
 Product Id. More...
 
BOOL isSupport5G
 Error. More...
 
NSMutableArray< ThingSmartActivatorDeviceModel * > * deviceLists
 Reserved extension information. More...
 
NSDictionary * userInfo
 Reserved extension information. More...
 
NSError * error
 

Detailed Description

Device Model.

Definition at line 21 of file ThingSmartActivatorDeviceModel.h.

Method Documentation

◆ deviceScanNoneThread [1/2]

- (BOOL) deviceScanNoneThread

Checks if the device has not scanned any Thread network.

Returns
YES if the device has not scanned any Thread network, NO otherwise.

◆ deviceScanNoneThread [2/2]

- (BOOL) deviceScanNoneThread

Checks if the device has not scanned any Thread network.

Returns
YES if the device has not scanned any Thread network, NO otherwise.

◆ deviceScanThreadGateway [1/2]

- (NSString *) deviceScanThreadGateway

Returns the scanned gateway.

Returns
gatewayId Return the gateway id if scanned.

◆ deviceScanThreadGateway [2/2]

- (NSString *) deviceScanThreadGateway

Returns the scanned gateway.

Returns
gatewayId Return the gateway id if scanned.

◆ initWithDeviceModel: [1/2]

- (instancetype) initWithDeviceModel: (ThingSmartDeviceModel *)  deviceModel

Initializes the device object with a device model.

Parameters
deviceModelThe device model containing information about the device.
Returns
An instance of the device object.

◆ initWithDeviceModel: [2/2]

- (instancetype) initWithDeviceModel: (ThingSmartDeviceModel *)  deviceModel

Initializes the device object with a device model.

Parameters
deviceModelThe device model containing information about the device.
Returns
An instance of the device object.

◆ initWithUniqueID: [1/2]

- (instancetype) initWithUniqueID: (NSString *)  uniqueId

Initializes the device object with a unique identifier.

Parameters
uniqueIdThe unique identifier of the device.
Returns
An instance of the device object.

◆ initWithUniqueID: [2/2]

- (instancetype) initWithUniqueID: (NSString *)  uniqueId

Initializes the device object with a unique identifier.

Parameters
uniqueIdThe unique identifier of the device.
Returns
An instance of the device object.

◆ isEqualToDevice: [1/2]

- (BOOL) isEqualToDevice: (ThingSmartActivatorDeviceModel *)  aDevice

Checks if two devices are of the same model.

Returns
YES if the two devices are of the same model, NO otherwise.

◆ isEqualToDevice: [2/2]

- (BOOL) isEqualToDevice: (ThingSmartActivatorDeviceModel *)  aDevice

Checks if two devices are of the same model.

Returns
YES if the two devices are of the same model, NO otherwise.

◆ isThingDevice [1/2]

- (BOOL) isThingDevice

Checks if the device is Thing matter Device.

Returns
YES if the Device is Thing Matter Device, NO otherwise.

◆ isThingDevice [2/2]

- (BOOL) isThingDevice

Checks if the device is Thing matter Device.

Returns
YES if the Device is Thing Matter Device, NO otherwise.

◆ needWiFiAuthentication [1/2]

- (BOOL) needWiFiAuthentication

Determines whether the device pairing process is dependent on WiFi authentication information.

Returns
YES if the device pairing process requires WiFi authentication, NO otherwise.

◆ needWiFiAuthentication [2/2]

- (BOOL) needWiFiAuthentication

Determines whether the device pairing process is dependent on WiFi authentication information.

Returns
YES if the device pairing process requires WiFi authentication, NO otherwise.

◆ supportAbilityBlePrior [1/2]

- (BOOL) supportAbilityBlePrior

Checks if the device supports Bluetooth priority.

Returns
YES if the device supports Bluetooth priority, NO otherwise.

◆ supportAbilityBlePrior [2/2]

- (BOOL) supportAbilityBlePrior

Checks if the device supports Bluetooth priority.

Returns
YES if the device supports Bluetooth priority, NO otherwise.

◆ supportAbilityBleQRCode [1/2]

- (BOOL) supportAbilityBleQRCode

Checks if the device supports Bluetooth QR code pairing.

Returns
YES if the device supports Bluetooth QR code pairing, NO otherwise.

◆ supportAbilityBleQRCode [2/2]

- (BOOL) supportAbilityBleQRCode

Checks if the device supports Bluetooth QR code pairing.

Returns
YES if the device supports Bluetooth QR code pairing, NO otherwise.

◆ supportAbilityBleWired [1/2]

- (BOOL) supportAbilityBleWired

Checks if the device support ble Wired pairing

Returns
YES if the device support wired, NO otherwise

◆ supportAbilityBleWired [2/2]

- (BOOL) supportAbilityBleWired

Checks if the device support ble Wired pairing

Returns
YES if the device support wired, NO otherwise

◆ supportAbilityBleZigbee [1/2]

- (BOOL) supportAbilityBleZigbee

Checks if the device supports Bluetooth-ZigBee capability.

Returns
YES if the device supports Bluetooth-ZigBee capability, NO otherwise.

◆ supportAbilityBleZigbee [2/2]

- (BOOL) supportAbilityBleZigbee

Checks if the device supports Bluetooth-ZigBee capability.

Returns
YES if the device supports Bluetooth-ZigBee capability, NO otherwise.

◆ supportAbilityHomeKit [1/2]

- (BOOL) supportAbilityHomeKit

Checks if the device supports the HomeKit capability.

Returns
YES if the device supports HomeKit capability, NO otherwise.

◆ supportAbilityHomeKit [2/2]

- (BOOL) supportAbilityHomeKit

Checks if the device supports the HomeKit capability.

Returns
YES if the device supports HomeKit capability, NO otherwise.

◆ supportAbilityMatter [1/2]

- (BOOL) supportAbilityMatter

Checks if the device supports Matter.

Returns
YES if the device supports Matter, NO otherwise.

◆ supportAbilityMatter [2/2]

- (BOOL) supportAbilityMatter

Checks if the device supports Matter.

Returns
YES if the device supports Matter, NO otherwise.

◆ supportAbilityMatterFabric [1/2]

- (BOOL) supportAbilityMatterFabric

Checks if the device supports Matter Fabric.

Returns
YES if the device supports Matter Fabric, NO otherwise.

◆ supportAbilityMatterFabric [2/2]

- (BOOL) supportAbilityMatterFabric

Checks if the device supports Matter Fabric.

Returns
YES if the device supports Matter Fabric, NO otherwise.

◆ supportAbilityPegasus [1/2]

- (BOOL) supportAbilityPegasus

Checks if the device supports the Pegasus capability.

Returns
YES if the device supports Pegasus capability, NO otherwise.

◆ supportAbilityPegasus [2/2]

- (BOOL) supportAbilityPegasus

Checks if the device supports the Pegasus capability.

Returns
YES if the device supports Pegasus capability, NO otherwise.

◆ supportAbilityPlugPlay [1/2]

- (BOOL) supportAbilityPlugPlay

Checks if the device supports the Plug&Play capability.

Returns
YES if the device supports Plug&Play capability, NO otherwise.

◆ supportAbilityPlugPlay [2/2]

- (BOOL) supportAbilityPlugPlay

Checks if the device supports the Plug&Play capability.

Returns
YES if the device supports Plug&Play capability, NO otherwise.

◆ supportAbilityWifiList [1/2]

- (BOOL) supportAbilityWifiList

Checks if the device support returns a list of surrounding WiFi during the pairing process

Returns
YES if the device support, NO otherwise

◆ supportAbilityWifiList [2/2]

- (BOOL) supportAbilityWifiList

Checks if the device support returns a list of surrounding WiFi during the pairing process

Returns
YES if the device support, NO otherwise

Property Documentation

◆ activatorType

- (ThingSmartActivatorType) activatorType
readwritenonatomicassign

Device network configuration type.

Definition at line 32 of file ThingSmartActivatorDeviceModel.h.

◆ deviceAbility

- (ThingActivatorDeviceAbility) deviceAbility
readwritenonatomicassign

Device capabilities.

Definition at line 34 of file ThingSmartActivatorDeviceModel.h.

◆ deviceLists

- (NSMutableArray< ThingSmartActivatorDeviceModel * > *) deviceLists
readwritenonatomicstrong

Reserved extension information.

Definition at line 56 of file ThingSmartActivatorDeviceModel.h.

◆ deviceModelType

- (ThingSearchDeviceModelType) deviceModelType
readwritenonatomicassign

Device Type.

Definition at line 30 of file ThingSmartActivatorDeviceModel.h.

◆ deviceStatus

- (ThingSearchDeviceStatus) deviceStatus
readwritenonatomicassign

Device status.

Definition at line 36 of file ThingSmartActivatorDeviceModel.h.

◆ devId

- (NSString *) devId
readwritenonatomiccopy

Device virtual ID, devId is the virtual ID assigned by the cloud after the device completes the network configuration. It is empty before the network configuration.

Definition at line 27 of file ThingSmartActivatorDeviceModel.h.

◆ error

- (NSError *) error
readwritenonatomicstrong

Definition at line 61 of file ThingSmartActivatorDeviceModel.h.

◆ iconUrl

- (NSString *) iconUrl
readwritenonatomiccopy

Device icon URL.

Definition at line 44 of file ThingSmartActivatorDeviceModel.h.

◆ isSupport5G

- (BOOL) isSupport5G
readwritenonatomicassign

Error.

Whether the device supports 5GHz network, default NO

Definition at line 53 of file ThingSmartActivatorDeviceModel.h.

◆ name

- (NSString *) name
readwritenonatomiccopy

Device name.

Definition at line 42 of file ThingSmartActivatorDeviceModel.h.

◆ productId

- (NSString *) productId
readwritenonatomiccopy

Product Id.

Definition at line 46 of file ThingSmartActivatorDeviceModel.h.

◆ selectAbility

- (ThingActivatorDeviceAbility) selectAbility
readwritenonatomicassign

Pairing type.

Definition at line 40 of file ThingSmartActivatorDeviceModel.h.

◆ step

- (ThingActivatorStep) step
readwritenonatomicassign

Pairing step.

Definition at line 38 of file ThingSmartActivatorDeviceModel.h.

◆ uniqueID

- (NSString *) uniqueID
readnonatomiccopy

Device unique identifier.

Definition at line 24 of file ThingSmartActivatorDeviceModel.h.

◆ userInfo

- (NSDictionary *) userInfo
readwritenonatomiccopy

Reserved extension information.

Definition at line 59 of file ThingSmartActivatorDeviceModel.h.


The documentation for this class was generated from the following files: