Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authorizationBeforeAction用法的疑惑 #3

Open
Mr-yuwei opened this issue Dec 2, 2021 · 1 comment
Open

authorizationBeforeAction用法的疑惑 #3

Mr-yuwei opened this issue Dec 2, 2021 · 1 comment

Comments

@Mr-yuwei
Copy link

Mr-yuwei commented Dec 2, 2021

比如跳转到A场景之前需要满足某种条件,不满足条件就到跳转到B场景。
如果应用中出现多种上述场景,TPMediatorDelegate对应的实现是否会导致耦合,我想的是如登录场景,打开扫码前要判断授权权限的场景。还有就是URL是网页该如何打开一个网页。

- (BOOL)mediator:(TPMediator *)mediator routerAction:(TPMediatorRouterActionModel *)routerAction checkAuthRetryPerformActionHandler:(void (^)(void))retryHandler
@Mr-yuwei
Copy link
Author

Mr-yuwei commented Dec 2, 2021

如果加上一层拦截器,会违背设计的初衷。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant