BBAAnimationLayer.h
845 Bytes
//
// BBAAnimationLayer.h
// BaiduHD
//
// Created by xmfeng on 15/7/20.
// Copyright (c) 2015年 Baidu Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CALayer (BBAAnimationLayer)
- (void)bba_executeAnimation:(NSDictionary *)json callback:(void(^)(BOOL))callback;
@end
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
@interface BBAAnimationLayer : CALayer <CAAnimationDelegate>
#else
@interface BBAAnimationLayer : CALayer
#endif
+ (BBAAnimationLayer *)layerWithStaticDrawer:(BOOL(^)(CGContextRef))drawer;
+ (BBAAnimationLayer *)layerWithDrawer:(BOOL(^)(CGContextRef, NSTimeInterval))drawer;
+ (BBAAnimationLayer *)layerWithDrawer:(BOOL(^)(CGContextRef, NSTimeInterval))drawer frameInterval:(NSTimeInterval)timeInterval;
@property(nonatomic, copy) void(^completionHandler)(CALayer *layer);
- (void)cleanup;
@end