Commit 527c858805a2557b40a0424431a4215d1f5eb1d9
1 parent
57385962
组件方法兼容
Showing
2 changed files
with
31 additions
and
3 deletions
Example/CNLiveVideoClassifyKit/CNLIVEAppDelegate.m
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | 13 | ||
| 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
| 15 | { | 15 | { |
| 16 | - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore];//CNLiveDebugAppStore];//CNLiveProductionAppStore//CNLiveTestFlight | 16 | + [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore];//CNLiveDebugAppStore];//CNLiveProductionAppStore//CNLiveTestFlight |
| 17 | // Override point for customization after application launch. | 17 | // Override point for customization after application launch. |
| 18 | return YES; | 18 | return YES; |
| 19 | } | 19 | } |
Example/CNLiveVideoClassifyKit/CNLiveClassifyKitImpl.m
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | #import "CNLIVEDemoViewController.h" | 10 | #import "CNLIVEDemoViewController.h" |
| 11 | #import "CNLIVEViewController.h" | 11 | #import "CNLIVEViewController.h" |
| 12 | #import <CNLiveCWebViewModule/CNLiveCWebViewModule.h> | 12 | #import <CNLiveCWebViewModule/CNLiveCWebViewModule.h> |
| 13 | +#import <CNLiveVideoClassifyKit/CNAmuseChinaViewController.h> | ||
| 13 | #import <CNLiveCWebViewModule/CNLiveSubWebViewController.h> | 14 | #import <CNLiveCWebViewModule/CNLiveSubWebViewController.h> |
| 14 | #import "CNLiveWebViewModuleImpl.h" | 15 | #import "CNLiveWebViewModuleImpl.h" |
| 15 | #import <CNLiveCommonCategory/NSString+CNLiveUrlEncode.h> | 16 | #import <CNLiveCommonCategory/NSString+CNLiveUrlEncode.h> |
| @@ -19,8 +20,15 @@ | @@ -19,8 +20,15 @@ | ||
| 19 | -(UIViewController *)listViewShowPageType:(NSUInteger)pageType param:(NSDictionary *)param | 20 | -(UIViewController *)listViewShowPageType:(NSUInteger)pageType param:(NSDictionary *)param |
| 20 | { | 21 | { |
| 21 | if (pageType == 4|| pageType == 5) { | 22 | if (pageType == 4|| pageType == 5) { |
| 22 | - CNLIVEDemoViewController *demo = [CNLIVEDemoViewController new]; | ||
| 23 | - return demo; | 23 | + CNAmuseChinaViewController *amVC = [[CNAmuseChinaViewController alloc] init]; |
| 24 | + amVC.isBlack = [param boolForKey:@"isBlack"]; | ||
| 25 | + amVC.bgColor = CNLiveColorWithHexString(param[@"bgColor"]); | ||
| 26 | + amVC.title = param[@"title"]; | ||
| 27 | + amVC.backgroundImg = param[@"backgroundImg"]; | ||
| 28 | + amVC.channelId = param[@"channelId"]; | ||
| 29 | + amVC.channelName = param[@"channelName"]; | ||
| 30 | + amVC.pageId = param[@"pageId"]; | ||
| 31 | + return amVC; | ||
| 24 | }else if (pageType == 2){ | 32 | }else if (pageType == 2){ |
| 25 | CNLIVEViewController *demo = [CNLIVEViewController new]; | 33 | CNLIVEViewController *demo = [CNLIVEViewController new]; |
| 26 | return demo; | 34 | return demo; |
| @@ -69,4 +77,24 @@ | @@ -69,4 +77,24 @@ | ||
| 69 | 77 | ||
| 70 | } | 78 | } |
| 71 | 79 | ||
| 80 | +- (void)requestSPClassNoNotifWithIsFocus:(BOOL)isFocus SPId:(nonnull NSString *)spId CompleterBlock:(nonnull void (^)(BOOL, BOOL))completerBlock { | ||
| 81 | + | ||
| 82 | +} | ||
| 83 | + | ||
| 84 | + | ||
| 85 | +- (void)showLoginViewWithString:(nonnull NSString *)loginPrepositionUrl { | ||
| 86 | + | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | + | ||
| 90 | +- (void)showShareViewWithParamForShareTitle:(nonnull NSString *)shareTitle ShareUrl:(nonnull NSString *)shareUrl ShareDesc:(nonnull NSString *)shareDesc ShareImage:(nonnull id)shareImage ScreenFull:(BOOL)isFull HiddenWjj:(BOOL)isHiddenWjj HiddenQQ:(BOOL)isHiddenQQ HiddenWB:(BOOL)isHiddenWB HiddenLifeCircle:(BOOL)isHiddenLifeCircle HiddenWechatCircle:(BOOL)isHiddenWechatCircle HiddenWechat:(BOOL)isHiddenWechat HiddenSafari:(BOOL)isHiddenSafari FormVC:(nonnull UIViewController *)formVC TopImage:(nonnull NSArray<NSString *> *)topImage TopTitles:(nonnull NSArray<NSString *> *)topTitle programId:(nonnull NSString *)programId channelName:(nonnull NSString *)channelName { | ||
| 91 | + | ||
| 92 | +} | ||
| 93 | + | ||
| 94 | + | ||
| 95 | +- (void)skipType:(nonnull NSString *)type to:(nonnull NSString *)to shopType:(nonnull NSString *)shopType currentVC:(nonnull UIViewController *)currentVC { | ||
| 96 | + | ||
| 97 | +} | ||
| 98 | + | ||
| 99 | + | ||
| 72 | @end | 100 | @end |