AVCaptureDevice(TuSDKTSAVCaptureDeviceExtend) Category Reference
Declared in | TuSDKTSAVCaptureDevice+Extend.h |
---|
+ lsqHasVideoAuthor
测试系统摄像头授权状态
+ (BOOL)lsqHasVideoAuthor
Return Value
系统摄像头是否授权
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqCameraCounts
相机设备总数
+ (int)lsqCameraCounts
Return Value
相机设备总数
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqShowAlertIfNotSupportCameraWithController:
如果不支持摄像头显示警告信息
+ (BOOL)lsqShowAlertIfNotSupportCameraWithController:(UIViewController *)controller
Parameters
controller |
UIViewController |
---|
Return Value
是否显示警告
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqFirstBackCameraPosition
获取相机设备标识(前置或后置) 后置优先
+ (AVCaptureDevicePosition)lsqFirstBackCameraPosition
Return Value
相机设备标识
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqFirstFrontCameraPosition
获取相机设备标识(前置或后置) 前置优先
+ (AVCaptureDevicePosition)lsqFirstFrontCameraPosition
Return Value
相机设备标识
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqGetBackOrFrontCamera
获取相机设备(前置或后置) 后置优先
+ (AVCaptureDevice *)lsqGetBackOrFrontCamera
Return Value
相机设备
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqGetCameraWithType:
获取相机设备
+ (AVCaptureDevice *)lsqGetCameraWithType:(AVCaptureDevicePosition)type
Parameters
type |
获取相机设备标识 |
---|
Return Value
相机设备
Declared In
TuSDKTSAVCaptureDevice+Extend.h
+ lsqConvertPoint:withPosition:outputImageOrientation:
转换触摸点为相机聚焦点坐标
+ (CGPoint)lsqConvertPoint:(CGPoint)point withPosition:(AVCaptureDevicePosition)position outputImageOrientation:(UIInterfaceOrientation)orient
Parameters
point |
触摸点百分比坐标 |
---|---|
position |
相机前后置 |
orient |
相机方向 |
Return Value
相机聚焦点坐标
Declared In
TuSDKTSAVCaptureDevice+Extend.h