BKPageControlViewController.h
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// BKPageControlViewController.h
// DSCnliveShopSDK
//
// Created by zhaolin on 2019/8/20.
// Copyright © 2019 BIKE. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class BKPageControlBgScrollView;
#ifndef BKPageControlViewController_h
#define BKPageControlViewController_h
@protocol BKPageControlViewController <NSObject>
@optional
#pragma mark - 滑动主视图
/**
开始滑动主视图
@param bgScrollView 主滚动视图
*/
-(void)bk_willBeginDraggingSuperBgScrollView:(nonnull BKPageControlBgScrollView*)bgScrollView;
/**
滑动主视图
@param bgScrollView 主滚动视图
*/
-(void)bk_didScrollSuperBgScrollView:(nonnull BKPageControlBgScrollView*)bgScrollView;
/**
主视图即将停止拖拽
@param bgScrollView 主滚动视图
@param velocity 速度
@param targetContentOffset 目标偏移量
*/
-(void)bk_willEndDraggingSuperBgScrollView:(nonnull BKPageControlBgScrollView*)bgScrollView withVelocity:(CGPoint)velocity targetContentOffset:(nonnull inout CGPoint *)targetContentOffset;
/**
主视图停止拖拽
@param bgScrollView 主滚动视图
@param decelerate 是否有惯性
*/
-(void)bk_didEndDraggingSuperBgScrollView:(nonnull BKPageControlBgScrollView*)bgScrollView willDecelerate:(BOOL)decelerate;
/**
主视图惯性结束
@param bgScrollView 主滚动视图
*/
-(void)bk_didEndDeceleratingSuperBgScrollView:(nonnull BKPageControlBgScrollView*)bgScrollView;
@end
#endif /* BKPageControlViewController_h */