LOTLayerContainer.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // LOTLayerContainer.h
  3. // Lottie
  4. //
  5. // Created by brandon_withrow on 7/18/17.
  6. // Copyright © 2017 Airbnb. All rights reserved.
  7. //
  8. #import "LOTPlatformCompat.h"
  9. #import "LOTLayer.h"
  10. #import "LOTLayerGroup.h"
  11. #import "LOTKeypath.h"
  12. #import "LOTValueDelegate.h"
  13. @class LOTValueCallback;
  14. @interface LOTLayerContainer : CALayer
  15. - (instancetype _Nonnull)initWithModel:(LOTLayer * _Nullable)layer
  16. inLayerGroup:(LOTLayerGroup * _Nullable)layerGroup;
  17. @property (nonatomic, readonly, strong, nullable) NSString *layerName;
  18. @property (nonatomic, nullable) NSNumber *currentFrame;
  19. @property (nonatomic, readonly, nonnull) NSNumber *timeStretchFactor;
  20. @property (nonatomic, assign) CGRect viewportBounds;
  21. @property (nonatomic, readonly, nonnull) CALayer *wrapperLayer;
  22. @property (nonatomic, readonly, nonnull) NSDictionary *valueInterpolators;
  23. - (void)displayWithFrame:(NSNumber * _Nonnull)frame;
  24. - (void)displayWithFrame:(NSNumber * _Nonnull)frame forceUpdate:(BOOL)forceUpdate;
  25. - (void)searchNodesForKeypath:(LOTKeypath * _Nonnull)keypath;
  26. - (void)setValueDelegate:(id<LOTValueDelegate> _Nonnull)delegate
  27. forKeypath:(LOTKeypath * _Nonnull)keypath;
  28. @end