Commit ae472de5 by zhangyunjie

2.5.9.4

parent 23a31cb5
......@@ -24,7 +24,13 @@
[self.window makeKeyAndVisible];
//启动SDK
[[OffcnLiveSDK defaultService] setupWithAppUrlSchemes:@"" imageType:OffcnImageType_e60012 buttonType:OffcnButtonTypeRadius isTest:YES];
[[OffcnLiveSDK defaultService] setupWithAppUrlSchemes:@"zaixianketang" imageType:OffcnImageType_e60012 buttonType:OffcnButtonTypeRadius isTest:YES eventCallBack:^(OffcnSDKEvent event) {
if (event == OffcnSDKEventLookCourse) {
//查看课程
}
NSLog(@"eventCallBack:%lu",(unsigned long)event);
}];
return YES;
}
......
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'OffcnLiveSDKiOS'
s.version = '2.5.9.3'
s.version = '2.5.9.4'
s.summary = 'OffcnLiveSDKiOS.'
s.description = <<-DESC
......
......@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import "OffcnShareWindow.h"
static const NSString *OffcnLiveSDKVersion = @"2.5.9.3";
static const NSString *OffcnLiveSDKVersion = @"2.5.9.4";
//事件通知
#define kOffcnEventNotification @"kOffcnEventNotification"
......@@ -54,6 +54,10 @@ typedef NS_ENUM(NSUInteger, OffcnSDKReachabilityStatus) {
OffcnSDKReachabilityStatusViaWiFi,
};
typedef NS_ENUM(NSUInteger, OffcnSDKEvent) {
OffcnSDKEventLookCourse = 1, //查看课程
};
//直播间退出房间后回调
typedef void(^liveQuitCallBack)(NSString *password);
......@@ -70,6 +74,9 @@ typedef void(^playbackCallBack)(NSString *password, NSInteger recentlyWatchValue
//网络监听回调
typedef void(^OffcnSDKReachabilityStatusCallBack)(OffcnSDKReachabilityStatus status);
//事件回调
typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event);
@interface OffcnLiveSDK : NSObject
......@@ -105,6 +112,7 @@ typedef void(^OffcnSDKReachabilityStatusCallBack)(OffcnSDKReachabilityStatus sta
@property (nonatomic, assign) OffcnSDKReachabilityStatus OffcnReachabilityStatus;
@property (nonatomic, copy) OffcnSDKReachabilityStatusCallBack reachabilityStatusCallBack;
//是否选用测试环境
@property (nonatomic, assign) BOOL isTest;
//选用图片类型
......@@ -120,7 +128,8 @@ typedef void(^OffcnSDKReachabilityStatusCallBack)(OffcnSDKReachabilityStatus sta
/// @param imageType 主色调类型
/// @param buttonType 按钮样式
/// @param isTest 是否选用测试环境
-(void)setupWithAppUrlSchemes:(NSString *)appUrlSchemes imageType:(OffcnImageType)imageType buttonType:(OffcnButtonType)buttonType isTest:(BOOL)isTest;
/// @param callBack 事件回调
-(void)setupWithAppUrlSchemes:(NSString *)appUrlSchemes imageType:(OffcnImageType)imageType buttonType:(OffcnButtonType)buttonType isTest:(BOOL)isTest eventCallBack:(OffcnSDKEventCallBack)callBack;
/**
登录授权
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment