![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartPTZManager.h>
Properties | |
id< ThingSmartPTZManagerDeletate > | delegate |
Definition at line 113 of file ThingSmartPTZManager.h.
- (void) addCollectionPointWithName: | (NSString *) | name | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Add collection point
name | Collection point name |
success | Successful callback |
failure | Failed callback |
- (void) addCollectionPointWithName: | (NSString *) | name | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Add collection point
name | Collection point name |
success | Successful callback |
failure | Failed callback |
- (BOOL) couldOperateCollectionPoint |
Could operate collection point. Only in non-cruise mode, can operate collection point
- (BOOL) couldOperateCollectionPoint |
Could operate collection point. Only in non-cruise mode, can operate collection point
- (void) deleteCollectionPoints: | (NSArray< ThingCameraCollectionPointModel * > *) | models | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Delete collection points
models | The collection point model array you want to remove |
success | Successful callback |
failure | Failed callback |
- (void) deleteCollectionPoints: | (NSArray< ThingCameraCollectionPointModel * > *) | models | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Delete collection points
models | The collection point model array you want to remove |
success | Successful callback |
failure | Failed callback |
- (ThingSmartPTZControlCruiseMode) getCurrentCruiseMode |
Get current cruise mode 0, Panoramic cruise; 1, Preset point cruise
- (ThingSmartPTZControlCruiseMode) getCurrentCruiseMode |
Get current cruise mode 0, Panoramic cruise; 1, Preset point cruise
- (ThingSmartPTZControlCruiseState) getCurrentCruiseState |
Get current cruise state 0,Panoramic cruising;1,Collection point cruising;2,Not in cruising
- (ThingSmartPTZControlCruiseState) getCurrentCruiseState |
Get current cruise state 0,Panoramic cruising;1,Collection point cruising;2,Not in cruising
- (NSString *) getCurrentCruiseTime |
Get current cruise time Format:startTime-endTime,eg, "09:00-18:00"
- (NSString *) getCurrentCruiseTime |
Get current cruise time Format:startTime-endTime,eg, "09:00-18:00"
- (ThingSmartPTZControlCruiseTimeMode) getCurrentCruiseTimeMode |
Get current cruise time mode 0, Full day cruise; 1, Custom time cruise
- (ThingSmartPTZControlCruiseTimeMode) getCurrentCruiseTimeMode |
Get current cruise time mode 0, Full day cruise; 1, Custom time cruise
- (instancetype) initWithDeviceId: | (NSString *) | devId |
Initialization
devId | Device id |
- (instancetype) initWithDeviceId: | (NSString *) | devId |
Initialization
devId | Device id |
- (BOOL) isOpenCruise |
Get current cruise open state.
- (BOOL) isOpenCruise |
Get current cruise open state.
- (BOOL) isOpenMotionTracking |
Is open motionTracking.
- (BOOL) isOpenMotionTracking |
Is open motionTracking.
- (BOOL) isSupportCollectionPoint |
Is support collection point.
- (BOOL) isSupportCollectionPoint |
Is support collection point.
- (BOOL) isSupportCruise |
Is support cruise.
- (BOOL) isSupportCruise |
Is support cruise.
- (BOOL) isSupportMotionTracking |
Is support motionTracking.
- (BOOL) isSupportMotionTracking |
Is support motionTracking.
- (BOOL) isSupportPresetPoint |
Is support preset point.
- (BOOL) isSupportPresetPoint |
Is support preset point.
- (BOOL) isSupportPTZControl |
Is support PTZ control.
- (BOOL) isSupportPTZControl |
Is support PTZ control.
- (BOOL) isSupportZoomAction |
Is support zoom action.
- (BOOL) isSupportZoomAction |
Is support zoom action.
- (void) renameCollectionPoint: | (ThingCameraCollectionPointModel *) | model | |
name: | (NSString *) | name | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Modify collection point name
model | Collection point model |
name | New name |
success | Successful callback |
failure | Failed callback |
- (void) renameCollectionPoint: | (ThingCameraCollectionPointModel *) | model | |
name: | (NSString *) | name | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Modify collection point name
model | Collection point model |
name | New name |
success | Successful callback |
failure | Failed callback |
- (void) requestCollectionPointListWithSuccess: | (ThingSuccessList) | success | |
failure: | (ThingFailureError) | failure | |
Get collection points
success | Successful callback In the list is some ThingCameraCollectionPointModels |
failure | Failed callback |
- (void) requestCollectionPointListWithSuccess: | (ThingSuccessList) | success | |
failure: | (ThingFailureError) | failure | |
Get collection points
success | Successful callback In the list is some ThingCameraCollectionPointModels |
failure | Failed callback |
- (NSArray *) requestSupportedPresetPoints |
Get preset points, eg, ["1","2","3","4"].
- (NSArray *) requestSupportedPresetPoints |
Get preset points, eg, ["1","2","3","4"].
- (NSArray *) requestSupportedPTZControlDirections |
Get all supported directions Eg, ["0","1","2","3","4","5","6","7"]
- (NSArray *) requestSupportedPTZControlDirections |
Get all supported directions Eg, ["0","1","2","3","4","5","6","7"]
- (void) setCruiseCustomWithStartTime: | (NSString *) | startTime | |
endTime: | (NSString *) | endTime | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set custom time for cruise
startTime | Format "00:00" |
endTime | Format "00:00" |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseCustomWithStartTime: | (NSString *) | startTime | |
endTime: | (NSString *) | endTime | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set custom time for cruise
startTime | Format "00:00" |
endTime | Format "00:00" |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseMode: | (ThingSmartPTZControlCruiseMode) | mode | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise mode
mode | Cruise mode, 0, Panoramic cruise; 1, Preset point cruise |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseMode: | (ThingSmartPTZControlCruiseMode) | mode | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise mode
mode | Cruise mode, 0, Panoramic cruise; 1, Preset point cruise |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseOpen: | (BOOL) | isOpen | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Open or close cruise switch
isOpen | YES,open;NO,close |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseOpen: | (BOOL) | isOpen | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Open or close cruise switch
isOpen | YES,open;NO,close |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseState: | (ThingSmartPTZControlCruiseState) | state | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise state
state | cruise state,0, Panoramic cruise; 1, Collection point cruise; 2, Not in cruise |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseState: | (ThingSmartPTZControlCruiseState) | state | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise state
state | cruise state,0, Panoramic cruise; 1, Collection point cruise; 2, Not in cruise |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseTimeMode: | (ThingSmartPTZControlCruiseTimeMode) | timeMode | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise time mode
timeMode | Cruise time mode,0、Full day cruise; 1、Custom time cruise |
success | Successful callback |
failure | Failed callback |
- (void) setCruiseTimeMode: | (ThingSmartPTZControlCruiseTimeMode) | timeMode | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Set cruise time mode
timeMode | Cruise time mode,0、Full day cruise; 1、Custom time cruise |
success | Successful callback |
failure | Failed callback |
- (void) setMotionTrackingState: | (BOOL) | isOpen | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Open or close motionTracking
isOpen | YES,open action;NO,is close action |
success | Successful callback |
failure | Failed callback |
- (void) setMotionTrackingState: | (BOOL) | isOpen | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Open or close motionTracking
isOpen | YES,open action;NO,is close action |
success | Successful callback |
failure | Failed callback |
- (void) setPresetPointWithIndex: | (NSInteger) | index | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Set the preset point at index
index | Enumeration value of preset point, which is get from requestSupportedPresetPoints api |
success | Successful callback |
failure | Failed callback |
- (void) setPresetPointWithIndex: | (NSInteger) | index | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Set the preset point at index
index | Enumeration value of preset point, which is get from requestSupportedPresetPoints api |
success | Successful callback |
failure | Failed callback |
- (void) startPTZWithDirection: | (ThingSmartPTZControlDirection) | direction | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Start PTZ control
direction | Direction enumeration |
success | Successful callback |
failure | Failed callback error.code, 8,Already reached the limit;9,It is being calibrated, please wait |
- (void) startPTZWithDirection: | (ThingSmartPTZControlDirection) | direction | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Start PTZ control
direction | Direction enumeration |
success | Successful callback |
failure | Failed callback error.code, 8,Already reached the limit;9,It is being calibrated, please wait |
- (void) startPTZZoomWithIsEnlarge: | (BOOL) | isEnlarge | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Start zooming
isEnlarge | YES,Get bigger;NO,Get smaller |
success | Successful callback |
failure | Failed callback |
- (void) startPTZZoomWithIsEnlarge: | (BOOL) | isEnlarge | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Start zooming
isEnlarge | YES,Get bigger;NO,Get smaller |
success | Successful callback |
failure | Failed callback |
- (void) stopPTZWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Stop PTZ control
success | Successful callback |
failure | Failed callback |
- (void) stopPTZWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Stop PTZ control
success | Successful callback |
failure | Failed callback |
- (void) stopZoomActionWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Stop zooming
success | Successful callback |
failure | Failed callback |
- (void) stopZoomActionWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Stop zooming
success | Successful callback |
failure | Failed callback |
- (void) viewCollectionPoint: | (ThingCameraCollectionPointModel *) | model | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
View collection point
model | Collection point model |
success | Successful callback |
failure | Failed callback |
- (void) viewCollectionPoint: | (ThingCameraCollectionPointModel *) | model | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
View collection point
model | Collection point model |
success | Successful callback |
failure | Failed callback |
- (void) viewPresetPointWithIndex: | (NSInteger) | index | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
View the preset point at Index
index | Enumeration value of preset point, which is get from requestSupportedPresetPoints api |
success | Successful callback |
failure | Failed callback |
- (void) viewPresetPointWithIndex: | (NSInteger) | index | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
View the preset point at Index
index | Enumeration value of preset point, which is get from requestSupportedPresetPoints api |
success | Successful callback |
failure | Failed callback |
|
readwritenonatomicweak |
Definition at line 115 of file ThingSmartPTZManager.h.