Tuya iOS Smart Life App SDK 5.15.0
ThingGatewayTransferManager Class Reference

#import <ThingGatewayTransferManager.h>

Inheritance diagram for ThingGatewayTransferManager:

Instance Methods

(instancetype) - initWithDeviceId:
 
(void) - addListener:
 
(void) - removeListener:
 
(void) - deviceSupportsTransferWithSuccess:failure:
 
(void) - deviceTransferInfoWithSuccess:failure:
 
(void) - gatewaysWithSuccess:failure:
 
(void) - transferFromGateway:success:failure:
 
(instancetype) - initWithDeviceId:
 
(void) - addListener:
 
(void) - removeListener:
 
(void) - deviceSupportsTransferWithSuccess:failure:
 
(void) - deviceTransferInfoWithSuccess:failure:
 
(void) - gatewaysWithSuccess:failure:
 
(void) - transferFromGateway:success:failure:
 

Class Methods

(void) + deviceSupportsTransfer:success:failure:
 
(void) + deviceTransferInfoWithDeviceId:success:failure:
 
(void) + gatewaysWithDeviceId:success:failure:
 
(void) + transferFromGateway:toGateway:success:failure:
 
(void) + deviceSupportsTransfer:success:failure:
 
(void) + deviceTransferInfoWithDeviceId:success:failure:
 
(void) + gatewaysWithDeviceId:success:failure:
 
(void) + transferFromGateway:toGateway:success:failure:
 

Detailed Description

Definition at line 65 of file ThingGatewayTransferManager.h.

Method Documentation

◆ addListener: [1/2]

- (void) addListener: (id< ThingGatewayTransferManagerDelegate >)  listener

Add a listener

◆ addListener: [2/2]

- (void) addListener: (id< ThingGatewayTransferManagerDelegate >)  listener

Add a listener

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

+ (void) deviceSupportsTransfer: (NSString *)  deviceId
success: (void(^)(BOOL support))  success
failure: (void(^)(NSError *error))  failure 

Determine whether the device support transfer or not. True if can otherwise false

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback
    • failure: failure callback with error

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

+ (void) deviceSupportsTransfer: (NSString *)  deviceId
success: (void(^)(BOOL support))  success
failure: (void(^)(NSError *error))  failure 

Determine whether the device support transfer or not. True if can otherwise false

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback
    • failure: failure callback with error

◆ deviceSupportsTransferWithSuccess:failure: [1/2]

- (void) deviceSupportsTransferWithSuccess: (void(^)(BOOL support))  success
failure: (void(^)(NSError *error))  failure 

Determine whether the device support transfer or not. True if can otherwise false

  • Parameters:
    • success: success callback
    • failure: failure callback with error

◆ deviceSupportsTransferWithSuccess:failure: [2/2]

- (void) deviceSupportsTransferWithSuccess: (void(^)(BOOL support))  success
failure: (void(^)(NSError *error))  failure 

Determine whether the device support transfer or not. True if can otherwise false

  • Parameters:
    • success: success callback
    • failure: failure callback with error

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

+ (void) deviceTransferInfoWithDeviceId: (NSString *)  deviceId
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Get the transfer info of the device You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback with ThingGatewayTransferInfo
    • failure: failure callback with error

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

+ (void) deviceTransferInfoWithDeviceId: (NSString *)  deviceId
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Get the transfer info of the device You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback with ThingGatewayTransferInfo
    • failure: failure callback with error

◆ deviceTransferInfoWithSuccess:failure: [1/2]

- (void) deviceTransferInfoWithSuccess: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Get the transfer info of the device You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

◆ deviceTransferInfoWithSuccess:failure: [2/2]

- (void) deviceTransferInfoWithSuccess: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Get the transfer info of the device You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

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

+ (void) gatewaysWithDeviceId: (NSString *)  deviceId
success: (void(^)(NSArray< NSString * > *gatewayIds))  success
failure: (void(^)(NSError *error))  failure 

Get the gateways You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback with the device id of gateways
    • failure: failure callback with error

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

+ (void) gatewaysWithDeviceId: (NSString *)  deviceId
success: (void(^)(NSArray< NSString * > *gatewayIds))  success
failure: (void(^)(NSError *error))  failure 

Get the gateways You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • deviceId: the id of the device which you want to transfer.
    • success: success callback with the device id of gateways
    • failure: failure callback with error

◆ gatewaysWithSuccess:failure: [1/2]

- (void) gatewaysWithSuccess: (void(^)(NSArray< NSString * > *gatewayIds))  success
failure: (void(^)(NSError *error))  failure 

Get the gateways You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • success: success callback with the device id of gateways
    • failure: failure callback with error

◆ gatewaysWithSuccess:failure: [2/2]

- (void) gatewaysWithSuccess: (void(^)(NSArray< NSString * > *gatewayIds))  success
failure: (void(^)(NSError *error))  failure 

Get the gateways You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • success: success callback with the device id of gateways
    • failure: failure callback with error

◆ initWithDeviceId: [1/2]

- (instancetype) initWithDeviceId: (NSString *)  deviceId

Init a ThingGatewayTransferManager

  • Parameter deviceId: the id of the device which you want to transfer.

◆ initWithDeviceId: [2/2]

- (instancetype) initWithDeviceId: (NSString *)  deviceId

Init a ThingGatewayTransferManager

  • Parameter deviceId: the id of the device which you want to transfer.

◆ removeListener: [1/2]

- (void) removeListener: (id< ThingGatewayTransferManagerDelegate >)  listener

Remove a listener

◆ removeListener: [2/2]

- (void) removeListener: (id< ThingGatewayTransferManagerDelegate >)  listener

Remove a listener

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

- (void) transferFromGateway: (NSString *)  gatewayId
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Transfer the device to the specified gateway You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • gatewayId: the device id of the gateway, which is one of the result returned by 'retrieveDeviceTransferGatewaysWithSuccess:failure:'
    • success: success callback
    • failure: failure callback with error

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

- (void) transferFromGateway: (NSString *)  gatewayId
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Transfer the device to the specified gateway You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • gatewayId: the device id of the gateway, which is one of the result returned by 'retrieveDeviceTransferGatewaysWithSuccess:failure:'
    • success: success callback
    • failure: failure callback with error

◆ transferFromGateway:toGateway:success:failure: [1/2]

+ (void) transferFromGateway: (NSString *)  from
toGateway: (NSString *)  to
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Transfer the device to the specified gateway You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • from: the device id of the gateway, which is one of the result returned by 'retrieveDeviceTransferGatewaysWithSuccess:failure:'
    • to: the device id of the current gateway
    • success: success callback
    • failure: failure callback with error

◆ transferFromGateway:toGateway:success:failure: [2/2]

+ (void) transferFromGateway: (NSString *)  from
toGateway: (NSString *)  to
success: (void(^)(ThingGatewayTransferInfo *model))  success
failure: (void(^)(NSError *error))  failure 

Transfer the device to the specified gateway You can only call this method when the 'deviceSupportsTransfer:success:failure:' or 'deviceSupportsTransferWithSuccess:failure:' success with true.

  • Parameters:
    • from: the device id of the gateway, which is one of the result returned by 'retrieveDeviceTransferGatewaysWithSuccess:failure:'
    • to: the device id of the current gateway
    • success: success callback
    • failure: failure callback with error

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