CNLiveClassifyKitImpl.m
2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// CNLiveClassifyKitImpl.m
// CNLiveVideoClassifyKit_Example
//
// Created by CNLive on 2021/9/9.
// Copyright © 2021 杨苓玉. All rights reserved.
//
#import "CNLiveClassifyKitImpl.h"
#import "CNLIVEDemoViewController.h"
#import "CNLIVEViewController.h"
#import <CNLiveCWebViewModule/CNLiveCWebViewModule.h>
#import <CNLiveCWebViewModule/CNLiveSubWebViewController.h>
#import <CNLiveCommonCategory/NSString+CNLiveUrlEncode.h>
@implementation CNLiveClassifyKitImpl
-(UIViewController *)listViewShowPageType:(NSUInteger)pageType param:(NSDictionary *)param
{
if (pageType == 4|| pageType == 5) {
CNLIVEDemoViewController *demo = [CNLIVEDemoViewController new];
return demo;
}else if (pageType == 2){
CNLIVEViewController *demo = [CNLIVEViewController new];
return demo;
}else if (pageType == 7){
CNLIVEViewController *demo = [CNLIVEViewController new];
return demo;
}else{
NSString *thirdUrl = param[@"thirdUrl"];
NSString *backgroundColor = param[@"backgroundColor"];
NSString *backImageH5 = param[@"backgroundImgH5"];
if (!CNLiveStringIsEmpty(thirdUrl)) {
NSString *andStr = @"&";
if (![thirdUrl cn_containsString:@"?"]) {
andStr = @"?";
}
thirdUrl = [thirdUrl stringByAppendingFormat:@"%@backgroundColor=%@&backgroundImgH5=%@",andStr,backgroundColor?[backgroundColor urlEncode]:@"",backImageH5?[backImageH5 urlEncode]:@""];
}
CNLiveSubWebViewController *subVC = [CNLiveCWebViewModule showWebVCWithLunchForWebURL:thirdUrl ParamDict:param ShowType:CNLiveWebViewLunchShowTypeHidden];
return subVC;
}
}
-(UIView *)showViewOrPushVCWithCurrentVC:(UIViewController *)currentVC
pushType:(CNLiveClassifyJumpType)type pageType:(NSInteger)pageType param:(NSDictionary *_Nullable)param {
return [UIView new];
}
-(BOOL)audioPlayerIsplaying
{
return YES;
}
-(void)listViewRefreshWithVC:(UIViewController *)currentVC
pageType:(NSInteger)pageType
param:(NSDictionary *)param
refreshTime:(NSTimeInterval)time{
}
- (void)checkForloginTurnToWithURL:(NSURL *)url{}
- (void)checkWithFunctionForShareURL:(NSString *)shareUrl{}
- (void)bringCenterLoginViewToFront{}
-(void)popOverShowEvent:(UIEvent *)event
imageDone:(FTPopDoneBlock)doneBlock
dismissBlock:(FTPopDismissBlock)dismissBlock{
}
@end