![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingGatewayTransferManager.h>
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: |
Definition at line 65 of file ThingGatewayTransferManager.h.
| - (void) addListener: | (id< ThingGatewayTransferManagerDelegate >) | listener |
Add a listener
| - (void) addListener: | (id< ThingGatewayTransferManagerDelegate >) | listener |
Add a listener
| + (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
| + (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
| - (void) deviceSupportsTransferWithSuccess: | (void(^)(BOOL support)) | success | |
| failure: | (void(^)(NSError *error)) | failure | |
Determine whether the device support transfer or not. True if can otherwise false
| - (void) deviceSupportsTransferWithSuccess: | (void(^)(BOOL support)) | success | |
| failure: | (void(^)(NSError *error)) | failure | |
Determine whether the device support transfer or not. True if can otherwise false
| + (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.
| + (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.
| - (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.
| - (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.
| + (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.
| + (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.
| - (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.
| - (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.
| - (instancetype) initWithDeviceId: | (NSString *) | deviceId |
Init a ThingGatewayTransferManager
| - (instancetype) initWithDeviceId: | (NSString *) | deviceId |
Init a ThingGatewayTransferManager
| - (void) removeListener: | (id< ThingGatewayTransferManagerDelegate >) | listener |
Remove a listener
| - (void) removeListener: | (id< ThingGatewayTransferManagerDelegate >) | listener |
Remove a listener
| - (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.
| - (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.
| + (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.
| + (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.