Tuya iOS Smart Life App SDK 5.15.0
ThingSmartHomeKitActivator Class Reference

#import <ThingSmartHomeKitActivator.h>

Inheritance diagram for ThingSmartHomeKitActivator:

Instance Methods

(void) - getTokenSuccess:failure:
 
(void) - startDiscoverHomeKitDeviceWithTimeout:token:success:failure:
 
(void) - startDiscoverHomeKitDeviceWithTimeout:success:failure:
 
(void) - getHomekitDeviceInfoWithProductId:success:failure:
 
(void) - getHomekitDeviceInfoWithProductId:uuid:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(void) - getTokenSuccess:failure:
 
(void) - startDiscoverHomeKitDeviceWithTimeout:token:success:failure:
 
(void) - startDiscoverHomeKitDeviceWithTimeout:success:failure:
 
(void) - getHomekitDeviceInfoWithProductId:success:failure:
 
(void) - getHomekitDeviceInfoWithProductId:uuid:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(void) - getTokenWithHomeID:Success:failure:
 
(void) - getTokenWithHomeID:Success:failure:
 
(void) - bindHomeKitDeviceWithHomeId:devIds:success:failure:
 
(void) - bindHomeKitDeviceWithHomeId: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< ThingSmartHomeKitActivatorDelegatedelegate
 

Detailed Description

Definition at line 24 of file ThingSmartHomeKitActivator.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.

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

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

Adds HomeKit 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 ThingSmartHomeKitActivator(Home).

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

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

Adds HomeKit 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 ThingSmartHomeKitActivator(Home).

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

- (void) getHomekitDeviceInfoWithProductId: (NSString *)  productId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns device information by product ID.

Parameters
productIdThe product ID.
successCalled when the task is finished. ThingSuccessDict is returned.
failureCalled when the task is interrupted by an error.

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

- (void) getHomekitDeviceInfoWithProductId: (NSString *)  productId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns device information by product ID.

Parameters
productIdThe product ID.
successCalled when the task is finished. ThingSuccessDict is returned.
failureCalled when the task is interrupted by an error.

◆ getHomekitDeviceInfoWithProductId:uuid:success:failure: [1/2]

- (void) getHomekitDeviceInfoWithProductId: (NSString *)  productId
uuid: (nullable NSString *)  uuid
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns device information by product ID.

Parameters
productIdThe product ID.
uuidThe device UUID.
successCalled when the task is finished. ThingSuccessDict is returned.
failureCalled when the task is interrupted by an error.

◆ getHomekitDeviceInfoWithProductId:uuid:success:failure: [2/2]

- (void) getHomekitDeviceInfoWithProductId: (NSString *)  productId
uuid: (nullable NSString *)  uuid
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns device information by product ID.

Parameters
productIdThe product ID.
uuidThe device UUID.
successCalled when the task is finished. ThingSuccessDict is returned.
failureCalled when the task is interrupted by an error.

◆ getTokenSuccess:failure: [1/2]

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

Returns the pairing token for HomeKit devices.

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 for HomeKit devices.

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

◆ getTokenWithHomeID:Success:failure: [1/2]

- (void) getTokenWithHomeID: (long long)  homeID
Success: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token for HomeKit devices.

Parameters
homeIDThe home ID.
successCalled when the task is finished. The token is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHomeKitActivator(Home).

◆ getTokenWithHomeID:Success:failure: [2/2]

- (void) getTokenWithHomeID: (long long)  homeID
Success: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token for HomeKit devices.

Parameters
homeIDThe home ID.
successCalled when the task is finished. The token is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartHomeKitActivator(Home).

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

- (void) startDiscoverHomeKitDeviceWithTimeout: (NSTimeInterval)  timeout
success: (ThingSuccessString success
failure: (ThingFailureError failure 

Scans for HomeKit devices.

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

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

- (void) startDiscoverHomeKitDeviceWithTimeout: (NSTimeInterval)  timeout
success: (ThingSuccessString success
failure: (ThingFailureError failure 

Scans for HomeKit devices.

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

◆ startDiscoverHomeKitDeviceWithTimeout:token:success:failure: [1/2]

- (void) startDiscoverHomeKitDeviceWithTimeout: (NSTimeInterval)  timeout
token: (NSString *)  token
success: (void(^)(ThingSmartDeviceModel *))  success
failure: (ThingFailureError failure 

Scans for HomeKit devices.

Parameters
timeoutThe timeout value.
tokenThe pairing token.
successCalled when the task is finished. ThingSmartDeviceModel is returned.
failureCalled when the task is interrupted by an error.

◆ startDiscoverHomeKitDeviceWithTimeout:token:success:failure: [2/2]

- (void) startDiscoverHomeKitDeviceWithTimeout: (NSTimeInterval)  timeout
token: (NSString *)  token
success: (void(^)(ThingSmartDeviceModel *))  success
failure: (ThingFailureError failure 

Scans for HomeKit devices.

Parameters
timeoutThe timeout value.
tokenThe pairing token.
successCalled when the task is finished. ThingSmartDeviceModel is returned.
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< ThingSmartHomeKitActivatorDelegate >) delegate
readwritenonatomicweak

Definition at line 29 of file ThingSmartHomeKitActivator.h.


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