|
@@ -48,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
This block will be called before the asynchronous drawing begins.
|
|
|
It will be called on the main thread.
|
|
|
|
|
|
- @param layer The layer.
|
|
|
+ block param layer: The layer.
|
|
|
*/
|
|
|
@property (nullable, nonatomic, copy) void (^willDisplay)(CALayer *layer);
|
|
|
|
|
@@ -58,9 +58,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
@discussion This block may be called on main thread or background thread,
|
|
|
so is should be thread-safe.
|
|
|
|
|
|
- @param context A new bitmap content created by layer.
|
|
|
- @param size The content size (typically same as layer's bound size).
|
|
|
- @param isCancelled If this block returns `YES`, the method should cancel the
|
|
|
+ block param context: A new bitmap content created by layer.
|
|
|
+ block param size: The content size (typically same as layer's bound size).
|
|
|
+ block param isCancelled: If this block returns `YES`, the method should cancel the
|
|
|
drawing process and return as quickly as possible.
|
|
|
*/
|
|
|
@property (nullable, nonatomic, copy) void (^display)(CGContextRef context, CGSize size, BOOL(^isCancelled)(void));
|
|
@@ -69,8 +69,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
This block will be called after the asynchronous drawing finished.
|
|
|
It will be called on the main thread.
|
|
|
|
|
|
- @param layer The layer.
|
|
|
- @param finished If the draw process is cancelled, it's `NO`, otherwise it's `YES`;
|
|
|
+ block param layer: The layer.
|
|
|
+ block param finished: If the draw process is cancelled, it's `NO`, otherwise it's `YES`;
|
|
|
*/
|
|
|
@property (nullable, nonatomic, copy) void (^didDisplay)(CALayer *layer, BOOL finished);
|
|
|
|