Tuya iOS Smart Life App SDK 5.15.0
ThingSmartPegasusActivator Class Reference

#import <ThingSmartPegasusActivator.h>

Inheritance diagram for ThingSmartPegasusActivator:

Instance Methods

(void) - startDiscoverWithDevIDs:serverTimeout:clientTimeout:success:failure:
 
(void) - stopDiscoverWithDevIDs:success:failure:
 
(void) - startActivatorWithDevIDs:UUIDs:token:timeout:success:failure:
 
(void) - cancelActivatorWithDevIDs:UUIDs:success:failure:
 
(void) - startDiscoverWithDevIDs:serverTimeout:clientTimeout:success:failure:
 
(void) - stopDiscoverWithDevIDs:success:failure:
 
(void) - startActivatorWithDevIDs:UUIDs:token:timeout:success:failure:
 
(void) - cancelActivatorWithDevIDs:UUIDs:success:failure:
 

Class Methods

(NSArray< ThingSmartDeviceModel * > *) + pegasusDeviceListWithHomeID:
 
(NSArray< ThingSmartDeviceModel * > *) + pegasusDeviceListWithHomeID:
 

Properties

id< ThingSmartPegasusActivatorDelegatedelegate
 

Detailed Description

Definition at line 30 of file ThingSmartPegasusActivator.h.

Method Documentation

◆ cancelActivatorWithDevIDs:UUIDs:success:failure: [1/2]

- (void) cancelActivatorWithDevIDs: (NSArray< NSString * > *)  devIDs
UUIDs: (NSArray< NSString * > *)  UUIDs
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Cancels the Pegasus-based pairing of devices.

Parameters
devIDsA list of devices that support Pegasus.
UUIDsA list of UUIDs of devices to be paired.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ cancelActivatorWithDevIDs:UUIDs:success:failure: [2/2]

- (void) cancelActivatorWithDevIDs: (NSArray< NSString * > *)  devIDs
UUIDs: (NSArray< NSString * > *)  UUIDs
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Cancels the Pegasus-based pairing of devices.

Parameters
devIDsA list of devices that support Pegasus.
UUIDsA list of UUIDs of devices to be paired.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ pegasusDeviceListWithHomeID: [1/2]

+ (NSArray< ThingSmartDeviceModel * > *) pegasusDeviceListWithHomeID: (long long)  homeID

Returns the devices that support Pegasus.

Parameters
homeIDThe home ID.
Returns
A list of devices that support Pegasus.

Provided by category ThingSmartPegasusActivator(Home).

◆ pegasusDeviceListWithHomeID: [2/2]

+ (NSArray< ThingSmartDeviceModel * > *) pegasusDeviceListWithHomeID: (long long)  homeID

Returns the devices that support Pegasus.

Parameters
homeIDThe home ID.
Returns
A list of devices that support Pegasus.

Provided by category ThingSmartPegasusActivator(Home).

◆ startActivatorWithDevIDs:UUIDs:token:timeout:success:failure: [1/2]

- (void) startActivatorWithDevIDs: (NSArray< NSString * > *)  devIDs
UUIDs: (NSArray< NSString * > *)  UUIDs
token: (NSString *)  token
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Pairs specified devices by using Pegasus.

Parameters
devIDsA list of devices that support Pegasus.
UUIDsA list of UUIDs of devices to be configured.
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.

◆ startActivatorWithDevIDs:UUIDs:token:timeout:success:failure: [2/2]

- (void) startActivatorWithDevIDs: (NSArray< NSString * > *)  devIDs
UUIDs: (NSArray< NSString * > *)  UUIDs
token: (NSString *)  token
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Pairs specified devices by using Pegasus.

Parameters
devIDsA list of devices that support Pegasus.
UUIDsA list of UUIDs of devices to be configured.
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:serverTimeout:clientTimeout:success:failure: [1/2]

- (void) startDiscoverWithDevIDs: (NSArray< NSString * > *)  devIDs
serverTimeout: (NSTimeInterval)  serverTimeout
clientTimeout: (NSTimeInterval)  clientTimeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for and pair devices by using Pegasus.

Parameters
devIDsA list of device IDs.
serverTimeoutThe timeout value for paired devices to scan for devices to be paired.
clientTimeoutThe timeout value for devices to be paired. These devices are not added to the home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverWithDevIDs:serverTimeout:clientTimeout:success:failure: [2/2]

- (void) startDiscoverWithDevIDs: (NSArray< NSString * > *)  devIDs
serverTimeout: (NSTimeInterval)  serverTimeout
clientTimeout: (NSTimeInterval)  clientTimeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for and pair devices by using Pegasus.

Parameters
devIDsA list of device IDs.
serverTimeoutThe timeout value for paired devices to scan for devices to be paired.
clientTimeoutThe timeout value for devices to be paired. These devices are not added to the home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ stopDiscoverWithDevIDs:success:failure: [1/2]

- (void) stopDiscoverWithDevIDs: (NSArray< NSString * > *)  devIDs
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Stops pairing devices by Pegasus after devices are paired.

Parameters
devIDsA list of devices that support Pegasus.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ stopDiscoverWithDevIDs:success:failure: [2/2]

- (void) stopDiscoverWithDevIDs: (NSArray< NSString * > *)  devIDs
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Stops pairing devices by Pegasus after devices are paired.

Parameters
devIDsA list of devices that support Pegasus.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Property Documentation

◆ delegate

- (id< ThingSmartPegasusActivatorDelegate >) delegate
readwritenonatomicweak

Definition at line 32 of file ThingSmartPegasusActivator.h.


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