File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 36
36
@property (nonatomic , assign ) BOOL includeStatusBar; // defaults to NO, which means the status bar will be cropped out
37
37
@property (nonatomic , weak ) KSScreenshotManager *manager; // set by addScreenshotAction:, you don't have to set this yourself
38
38
39
- + (instancetype )actionWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)())actionBlock cleanupBlock : (void (^)())cleanupBlock ;
39
+ + (instancetype )actionWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)(void ))actionBlock cleanupBlock : (void (^)(void ))cleanupBlock ;
40
40
41
41
/* *
42
42
* Encapsulates a screenshot action. The real portion of interest is the asynchronous flag. If set to NO, the screenshot will be taken immediately after
49
49
* @param actionBlock Block to set up the screenshot.
50
50
* @param cleanupBlock Block called after the screenshot is taken. Can be nil.
51
51
*/
52
- - (id )initWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)())actionBlock cleanupBlock : (void (^)())cleanupBlock ;
52
+ - (id )initWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)(void ))actionBlock cleanupBlock : (void (^)(void ))cleanupBlock ;
53
53
54
54
@end
55
55
Original file line number Diff line number Diff line change 28
28
29
29
@implementation KSScreenshotAction
30
30
31
- + (instancetype )actionWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)())actionBlock cleanupBlock : (void (^)())cleanupBlock
31
+ + (instancetype )actionWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)(void ))actionBlock cleanupBlock : (void (^)(void ))cleanupBlock
32
32
{
33
33
return [[self alloc ] initWithName: name asynchronous: asynchronous actionBlock: actionBlock cleanupBlock: cleanupBlock];
34
34
}
35
35
36
- - (id )initWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)())actionBlock cleanupBlock : (void (^)())cleanupBlock
36
+ - (id )initWithName : (NSString *)name asynchronous : (BOOL )asynchronous actionBlock : (void (^)(void ))actionBlock cleanupBlock : (void (^)(void ))cleanupBlock
37
37
{
38
38
if ( (self = [super init ]) ) {
39
39
[self setName: name];
You can’t perform that action at this time.
0 commit comments