1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // MPTransition.h
- // MPPlayerDemo
- //
- // Created by Maple on 2019/12/31.
- // Copyright © 2019 Maple. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class MPPlayerController;
- /// 用于视频信息流的转场动画
- @interface MPTransition : NSObject<UIViewControllerAnimatedTransitioning>
- /**
- 初始化动画
-
- @param duration 动画时长
- @param startView 开始视图
- @param startImage 开始图片
- @param player 播放器
- @param operation 动画形式
- @param completion 动画完成block
- @return 动画实例
- */
- + (instancetype)animationWithDuration:(NSTimeInterval)duration
- startView:(UIView *)startView
- startImage:(UIImage *)startImage
- player: (MPPlayerController *)player
- operation:(UINavigationControllerOperation)operation
- completion:(void(^)(void))completion;
- @end
- NS_ASSUME_NONNULL_END
|