Tuya iOS Smart Life App SDK 5.15.0
ThingSmartAutoActivator Class Reference

#import <ThingSmartAutoActivator.h>

Inheritance diagram for ThingSmartAutoActivator:

Instance Methods

(void) - startDiscoverWithDevIds:timeout:success:failure:
 
(void) - getTokenSuccess:failure:
 
(void) - startDiscoverWithDevIds:token:timeout:success:failure:
 
(void) - startDiscoverRouterWithDevIds:type:timeout:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(void) - startDiscoverWithDevIds:timeout:success:failure:
 
(void) - getTokenSuccess:failure:
 
(void) - startDiscoverWithDevIds:token:timeout:success:failure:
 
(void) - startDiscoverRouterWithDevIds:type:timeout:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveSupportedDeviceListWithHomeId:
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveSupportedDeviceListWithHomeId:
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveRouterDeviceListWithHomeId:
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveRouterDeviceListWithHomeId:
 
(void) - bindDeviceWithHomeId:devIds:success:failure:
 
(void) - bindDeviceWithHomeId:devIds:success:failure:
 

Class Methods

((unavailable("Must use -[[ThingSmartActivator alloc] init] instead.") + __attribute__
 Returns the singleton instance of the class. More...
 
((unavailable("Must use -[[ThingSmartActivator alloc] init] instead.") + __attribute__
 Returns the singleton instance of the class. More...
 

Properties

id< ThingSmartAutoActivatorDelegatedelegate
 Returns the delegate of ThingSmartAutoActivator. More...
 

Detailed Description

Definition at line 24 of file ThingSmartAutoActivator.h.

Method Documentation

◆ __attribute__ [1/2]

+ ((unavailable("Must use -[[ThingSmartActivator alloc] init] instead.") __attribute__

Returns the singleton instance of the class.

◆ __attribute__ [2/2]

+ ((unavailable("Must use -[[ThingSmartActivator alloc] init] instead.") __attribute__

Returns the singleton instance of the class.

◆ autoActiveRouterDeviceListWithHomeId: [1/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveRouterDeviceListWithHomeId: ("Use - instead.")  __deprecated_msg[ThingSmartRouterActivator autoActiveRouterDeviceListWithHomeId:]

Returns all gateway router devices for the current home.

Parameters
homeIdThe home ID.
Returns
A list of all home gateway router devices.
Deprecated:
This method is deprecated. Use autoActiveRouterDeviceListWithHomeId: (ThingSmartRouterActivator(Home)) instead.

Provided by category ThingSmartAutoActivator(Home).

◆ autoActiveRouterDeviceListWithHomeId: [2/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveRouterDeviceListWithHomeId: ("Use - instead.")  __deprecated_msg[ThingSmartRouterActivator autoActiveRouterDeviceListWithHomeId:]

Returns all gateway router devices for the current home.

Parameters
homeIdThe home ID.
Returns
A list of all home gateway router devices.
Deprecated:
This method is deprecated. Use autoActiveRouterDeviceListWithHomeId: (ThingSmartRouterActivator(Home)) instead.

Provided by category ThingSmartAutoActivator(Home).

◆ autoActiveSupportedDeviceListWithHomeId: [1/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveSupportedDeviceListWithHomeId: (long long)  homeId

Returns all devices for the current home that supports the password-free pairing function.

Parameters
homeIdThe home ID.
Returns
All devices in the home that supports the password-free pairing function.

Provided by category ThingSmartAutoActivator(Home).

◆ autoActiveSupportedDeviceListWithHomeId: [2/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveSupportedDeviceListWithHomeId: (long long)  homeId

Returns all devices for the current home that supports the password-free pairing function.

Parameters
homeIdThe home ID.
Returns
All devices in the home that supports the password-free pairing function.

Provided by category ThingSmartAutoActivator(Home).

◆ bindDeviceWithHomeId:devIds:success:failure: [1/2]

- (void) bindDeviceWithHomeId: (long long)  homeId
devIds: (NSArray< NSString * > *)  devIds
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds devices to a specified home.

Parameters
homeIdThe home ID.
devIdsA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartAutoActivator(Home).

◆ bindDeviceWithHomeId:devIds:success:failure: [2/2]

- (void) bindDeviceWithHomeId: (long long)  homeId
devIds: (NSArray< NSString * > *)  devIds
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds devices to a specified home.

Parameters
homeIdThe home ID.
devIdsA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartAutoActivator(Home).

◆ getTokenSuccess:failure: [1/2]

- (void) getTokenSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token. This token is valid for 10 minutes.

Parameters
successCalled when the task is finished. ThingSuccessString is returned.
failureCalled when the task is interrupted by an error.

◆ getTokenSuccess:failure: [2/2]

- (void) getTokenSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token. This token is valid for 10 minutes.

Parameters
successCalled when the task is finished. ThingSuccessString is returned.
failureCalled when the task is interrupted by an error.

◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [1/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: ("Use - instead.")  __deprecated_msg[ThingSmartRouterActivator startDiscoverRouterWithDevIds:type:timeout:success:failure:] 

Starts to scan for gateway routers.

Parameters
devIdsA list of device IDs.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use startDiscoverRouterWithDevIds:type:timeout:success:failure: (ThingSmartRouterActivator) instead.

◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [2/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: ("Use - instead.")  __deprecated_msg[ThingSmartRouterActivator startDiscoverRouterWithDevIds:type:timeout:success:failure:] 

Starts to scan for gateway routers.

Parameters
devIdsA list of device IDs.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use startDiscoverRouterWithDevIds:type:timeout:success:failure: (ThingSmartRouterActivator) instead.

◆ startDiscoverWithDevIds:timeout:success:failure: [1/2]

- (void) startDiscoverWithDevIds: (NSArray< NSString * > *)  devIds
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverWithDevIds:timeout:success:failure: [2/2]

- (void) startDiscoverWithDevIds: (NSArray< NSString * > *)  devIds
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverWithDevIds:token:timeout:success:failure: [1/2]

- (void) startDiscoverWithDevIds: (NSArray< NSString * > *)  devIds
token: (NSString *)  token
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
tokenThe pairing token.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverWithDevIds:token:timeout:success:failure: [2/2]

- (void) startDiscoverWithDevIds: (NSArray< NSString * > *)  devIds
token: (NSString *)  token
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
tokenThe pairing token.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ stopDiscover [1/2]

- (void) stopDiscover

Stops scanning for devices.

◆ stopDiscover [2/2]

- (void) stopDiscover

Stops scanning for devices.

Property Documentation

◆ delegate

- (id< ThingSmartAutoActivatorDelegate >) delegate
readwritenonatomicweak

Returns the delegate of ThingSmartAutoActivator.

Definition at line 27 of file ThingSmartAutoActivator.h.


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