MPTransition.h 986 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // MPTransition.h
  3. // MPPlayerDemo
  4. //
  5. // Created by Maple on 2019/12/31.
  6. // Copyright © 2019 Maple. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class MPPlayerController;
  11. /// 用于视频信息流的转场动画
  12. @interface MPTransition : NSObject<UIViewControllerAnimatedTransitioning>
  13. /**
  14. 初始化动画
  15. @param duration 动画时长
  16. @param startView 开始视图
  17. @param startImage 开始图片
  18. @param player 播放器
  19. @param operation 动画形式
  20. @param completion 动画完成block
  21. @return 动画实例
  22. */
  23. + (instancetype)animationWithDuration:(NSTimeInterval)duration
  24. startView:(UIView *)startView
  25. startImage:(UIImage *)startImage
  26. player: (MPPlayerController *)player
  27. operation:(UINavigationControllerOperation)operation
  28. completion:(void(^)(void))completion;
  29. @end
  30. NS_ASSUME_NONNULL_END