QMUIZoomImageViewDelegate
@protocol QMUIZoomImageViewDelegate <NSObject>
@optional
- (void)singleTouchInZoomingImageView:(QMUIZoomImageView *)zoomImageView location:(CGPoint)location;
- (void)doubleTouchInZoomingImageView:(QMUIZoomImageView *)zoomImageView location:(CGPoint)location;
- (void)longPressInZoomingImageView:(QMUIZoomImageView *)zoomImageView;
/**
* 告知 delegate 用户点击了 iCloud 图片的重试按钮
*/
- (void)didTouchICloudRetryButtonInZoomImageView:(QMUIZoomImageView *)imageView;
/**
* 告知 delegate 在视频预览界面里,由于用户点击了空白区域或播放视频等导致了底部的视频工具栏被显示或隐藏
* @param didHide 如果为 YES 则表示工具栏被隐藏,NO 表示工具栏被显示了出来
*/
- (void)zoomImageView:(QMUIZoomImageView *)imageView didHideVideoToolbar:(BOOL)didHide;
/// 是否支持缩放,默认为 YES
- (BOOL)enabledZoomViewInZoomImageView:(QMUIZoomImageView *)zoomImageView;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)singleTouchInZoomingImageView:(QMUIZoomImageView *)zoomImageView location:(CGPoint)location;
Swift
optional func singleTouch(inZooming zoomImageView: QMUIZoomImageView!, location: CGPoint)
-
Undocumented
Declaration
Objective-C
- (void)doubleTouchInZoomingImageView:(QMUIZoomImageView *)zoomImageView location:(CGPoint)location;
Swift
optional func doubleTouch(inZooming zoomImageView: QMUIZoomImageView!, location: CGPoint)
-
Undocumented
Declaration
Objective-C
- (void)longPressInZoomingImageView:(QMUIZoomImageView *)zoomImageView;
Swift
optional func longPress(inZooming zoomImageView: QMUIZoomImageView!)
-
告知 delegate 用户点击了 iCloud 图片的重试按钮
Declaration
Objective-C
- (void)didTouchICloudRetryButtonInZoomImageView:(QMUIZoomImageView *)imageView;
Swift
optional func didTouchICloudRetryButton(in imageView: QMUIZoomImageView!)
-
告知 delegate 在视频预览界面里,由于用户点击了空白区域或播放视频等导致了底部的视频工具栏被显示或隐藏
Declaration
Objective-C
- (void)zoomImageView:(QMUIZoomImageView *)imageView didHideVideoToolbar:(BOOL)didHide;
Swift
optional func zoomImageView(_ imageView: QMUIZoomImageView!, didHideVideoToolbar didHide: Bool)
Parameters
didHide
如果为 YES 则表示工具栏被隐藏,NO 表示工具栏被显示了出来
-
是否支持缩放,默认为 YES
Declaration
Objective-C
- (BOOL)enabledZoomViewInZoomImageView:(QMUIZoomImageView *)zoomImageView;
Swift
optional func enabledZoomView(in zoomImageView: QMUIZoomImageView!) -> Bool