|
//
// IPUFlipperView.h
// IPUMobile
//
// Created by 秋林 on 2019/1/15.
// Copyright © 2019 Asiainfo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "IPUMobileDelegate.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_OPTIONS(NSUInteger, IPUAnimationType) {
IPUAnimationNone = 0,
IPUAnimationPushFromRight = 1 << 0,
IPUAnimationScale = 1 << 1,
IPUAnimationFade = 1 << 2
};
@interface IPUFlipperView : UIView
/**
向下一级添加视图
@param view <#view description#>
*/
- (void)addView:(UIView *)view;
/**
获取当前展示的视图
@return <#return value description#>
*/
- (UIView *)getCurrView;
/**
获取下一级视图
@return <#return value description#>
*/
- (UIView *)getNextView;
/**
获取上一级视图
@return <#return value description#>
*/
- (IPUCommonWebView)getFormerView;
/**
显示下一级视图
@return <#return value description#>
*/
- (NSInteger)showNextView;
/**
界面回退
*/
- (void)back;
- (void)backWithCount:(NSInteger)count;
/**
判断是否可以回退
@return <#return value description#>
*/
- (BOOL)canGoBack;
/**
设置页面切换动画,默认IPUAnimationPushFromRight
@param animationType <#animationType description#>
*/
- (void)setAnimationType:(IPUAnimationType)animationType;
/**
设置动画持续时间
@param duration 持续时间
*/
- (void)setDuration:(NSTimeInterval)duration;
/**
显示下一级视图
@param animationType 动画类型
@param duration 动画时间
@return <#return value description#>
*/
- (NSInteger)showNextViewWidthAnimationType:(IPUAnimationType)animationType duration:(NSTimeInterval)duration;
/**
返回指定页面
@param animationType 动画类型
@param duration 动画时间
@param count 偏离值
*/
- (void)backWidthAnimationType:(IPUAnimationType)animationType
duration:(NSTimeInterval)duration
AndCount:(NSInteger)count;
/**
清空视图栈
*/
- (void)clearBackStack;
/**
当前视图前的视图个数
@return <#return value description#>
*/
- (NSUInteger)backViewCount;
/*
获取所有webview:add by lfl
*/
- (NSMutableArray *)getAllWebView;
/**
获取指定pageAction View的offset
@param pageAction 页面名称
@return <#return value description#>
*/
- (NSUInteger)getViewOffset:(NSString *)pageAction;
/// 获取指定pageAction View的offset以及视图对象
/// @param pageAction <#pageAction description#>
/// @param destinationView <#destinationView description#>
- (NSUInteger)getViewOffert:(NSString *)pageAction view:(UIView **)destinationView;
@end
NS_ASSUME_NONNULL_END
|