Showing
25 changed files
with
288 additions
and
33 deletions
No preview for this file type
| @@ -212,7 +212,102 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -212,7 +212,102 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 212 | /// 初始化 SDK | 212 | /// 初始化 SDK |
| 213 | /// \param option 可选的 SDK 配置 | 213 | /// \param option 可选的 SDK 配置 |
| 214 | /// | 214 | /// |
| 215 | -- (void)startWithOption:(HHSDKOptions * _Nullable)option; | 215 | +- (void)startWithOption:(HHSDKOptions * _Nonnull)option; |
| 216 | +- (nonnull instancetype)init SWIFT_UNAVAILABLE; | ||
| 217 | ++ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); | ||
| 218 | +@end | ||
| 219 | + | ||
| 220 | +@class HHCallerInfo; | ||
| 221 | +@protocol HHCallDelegate; | ||
| 222 | + | ||
| 223 | +@interface HHSDK (SWIFT_EXTENSION(HHMedicSDK)) | ||
| 224 | +/// 主动发起多人通话 | ||
| 225 | +/// \param type 呼叫类型 | ||
| 226 | +/// | ||
| 227 | +/// \param callee 被呼叫人的信息 | ||
| 228 | +/// | ||
| 229 | +- (void)startTeamCall:(enum HHCallType)type callee:(HHCallerInfo * _Nonnull)callee callDelegate:(id <HHCallDelegate> _Nullable)callDelegate; | ||
| 230 | +@end | ||
| 231 | + | ||
| 232 | + | ||
| 233 | +@interface HHSDK (SWIFT_EXTENSION(HHMedicSDK)) | ||
| 234 | +/// 呼叫 | ||
| 235 | +/// <ul> | ||
| 236 | +/// <li> | ||
| 237 | +/// Parameters: | ||
| 238 | +/// </li> | ||
| 239 | +/// <li> | ||
| 240 | +/// type: 呼叫类型 | ||
| 241 | +/// </li> | ||
| 242 | +/// <li> | ||
| 243 | +/// callDelegate: 呼叫状态回调 | ||
| 244 | +/// </li> | ||
| 245 | +/// </ul> | ||
| 246 | +- (void)startCall:(enum HHCallType)type callDelegate:(id <HHCallDelegate> _Nullable)callDelegate; | ||
| 247 | +/// 指定人呼叫 | ||
| 248 | +/// <ul> | ||
| 249 | +/// <li> | ||
| 250 | +/// Parameters: | ||
| 251 | +/// </li> | ||
| 252 | +/// <li> | ||
| 253 | +/// uuid: 呼叫人Uuid | ||
| 254 | +/// </li> | ||
| 255 | +/// <li> | ||
| 256 | +/// callDelegate: 呼叫状态回调 | ||
| 257 | +/// </li> | ||
| 258 | +/// </ul> | ||
| 259 | +- (void)startCall:(NSInteger)uuid type:(enum HHCallType)type callDelegate:(id <HHCallDelegate> _Nullable)callDelegate; | ||
| 260 | +@end | ||
| 261 | + | ||
| 262 | + | ||
| 263 | +@interface HHSDK (SWIFT_EXTENSION(HHMedicSDK)) | ||
| 264 | +/// 登录账户 | ||
| 265 | +/// <ul> | ||
| 266 | +/// <li> | ||
| 267 | +/// Parameters: | ||
| 268 | +/// </li> | ||
| 269 | +/// <li> | ||
| 270 | +/// userToken: 用户的唯一标志 | ||
| 271 | +/// </li> | ||
| 272 | +/// <li> | ||
| 273 | +/// completion: 完成的回调 | ||
| 274 | +/// </li> | ||
| 275 | +/// </ul> | ||
| 276 | +- (void)loginWithUserToken:(NSString * _Nonnull)userToken completion:(void (^ _Nonnull)(NSError * _Nullable))completion; | ||
| 277 | +/// 自动登录(如果已经保存了用户帐号和令牌,建议使用这个登录方式) | ||
| 278 | +/// \param uuid 自动登录参数 | ||
| 279 | +/// | ||
| 280 | +- (void)autoLoginWithUuid:(NSInteger)uuid; | ||
| 281 | +/// 登出 | ||
| 282 | +/// \param callback 登出回调(字符串为空表示成功) | ||
| 283 | +/// | ||
| 284 | +- (void)logout:(void (^ _Nullable)(NSString * _Nullable))callback; | ||
| 285 | +@end | ||
| 286 | + | ||
| 287 | + | ||
| 288 | +SWIFT_CLASS("_TtC10HHMedicSDK12HHSDKOptions") | ||
| 289 | +@interface HHSDKOptions : NSObject <OptionProtocal> | ||
| 290 | +@property (nonatomic) BOOL isDebug; | ||
| 291 | +@property (nonatomic) BOOL isDevelopment; | ||
| 292 | +@property (nonatomic, copy) NSString * _Nonnull sdkProductId; | ||
| 293 | +@property (nonatomic, copy) NSString * _Nonnull mExtensionString; | ||
| 294 | +@property (nonatomic) BOOL isTRTC; | ||
| 295 | +@property (nonatomic) BOOL allowBeauty; | ||
| 296 | +@property (nonatomic) BOOL allowEvaluate; | ||
| 297 | +@property (nonatomic) BOOL allowAddMember; | ||
| 298 | +@property (nonatomic) BOOL allowMulti; | ||
| 299 | +@property (nonatomic) BOOL isShowDocInfo; | ||
| 300 | +@property (nonatomic) BOOL shouldWaingCall; | ||
| 301 | +@property (nonatomic) NSInteger changeDoctorInterval; | ||
| 302 | +@property (nonatomic) BOOL isFilterSummary; | ||
| 303 | +@property (nonatomic) BOOL isFilterMedicinal; | ||
| 304 | +@property (nonatomic, copy) NSString * _Nonnull defaultDocHeader; | ||
| 305 | +@property (nonatomic, copy) NSString * _Nonnull messageTitle; | ||
| 306 | +@property (nonatomic) BOOL isByPresent; | ||
| 307 | +@property (nonatomic) BOOL hideUserCenter; | ||
| 308 | +@property (nonatomic) BOOL enableActivate; | ||
| 309 | +@property (nonatomic) BOOL enableMedical; | ||
| 310 | +- (nonnull instancetype)initWithSdkProductId:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelop:(BOOL)isDevelop OBJC_DESIGNATED_INITIALIZER; | ||
| 216 | - (nonnull instancetype)init SWIFT_UNAVAILABLE; | 311 | - (nonnull instancetype)init SWIFT_UNAVAILABLE; |
| 217 | + (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); | 312 | + (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); |
| 218 | @end | 313 | @end |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| @@ -411,7 +411,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | @@ -411,7 +411,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | ||
| 411 | HHMCallingStateDidRing = 4, | 411 | HHMCallingStateDidRing = 4, |
| 412 | }; | 412 | }; |
| 413 | 413 | ||
| 414 | -@class HHSDKOptions; | 414 | +@protocol OptionProtocal; |
| 415 | @protocol HHRTC; | 415 | @protocol HHRTC; |
| 416 | 416 | ||
| 417 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") | 417 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") |
| @@ -421,7 +421,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -421,7 +421,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 421 | /// 初始化 SDK | 421 | /// 初始化 SDK |
| 422 | /// \param option 可选的 SDK 配置 | 422 | /// \param option 可选的 SDK 配置 |
| 423 | /// | 423 | /// |
| 424 | -- (void)startWithOption:(HHSDKOptions * _Nullable)option im:(id <HHIM> _Nonnull)im rtc:(id <HHRTC> _Nonnull)rtc; | 424 | +- (void)startWithOption:(id <OptionProtocal> _Nonnull)option im:(id <HHIM> _Nonnull)im rtc:(id <HHRTC> _Nonnull)rtc; |
| 425 | /// 登录账户 | 425 | /// 登录账户 |
| 426 | /// <ul> | 426 | /// <ul> |
| 427 | /// <li> | 427 | /// <li> |
| @@ -644,10 +644,10 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") | @@ -644,10 +644,10 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") | ||
| 644 | @class UsercenterOptions; | 644 | @class UsercenterOptions; |
| 645 | 645 | ||
| 646 | /// 基础全局配置 | 646 | /// 基础全局配置 |
| 647 | -SWIFT_CLASS("_TtC10HHSDKVideo12HHSDKOptions") | ||
| 648 | -@interface HHSDKOptions : NSObject | ||
| 649 | -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKOptions * _Nonnull default_;) | ||
| 650 | -+ (HHSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | 647 | +SWIFT_CLASS("_TtC10HHSDKVideo17HHVideoSDKOptions") |
| 648 | +@interface HHVideoSDKOptions : NSObject | ||
| 649 | +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHVideoSDKOptions * _Nonnull default_;) | ||
| 650 | ++ (HHVideoSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | ||
| 651 | /// 调试模式(打印日志) | 651 | /// 调试模式(打印日志) |
| 652 | @property (nonatomic) BOOL isDebug; | 652 | @property (nonatomic) BOOL isDebug; |
| 653 | /// 是否开启测试服 | 653 | /// 是否开启测试服 |
| @@ -696,6 +696,31 @@ SWIFT_CLASS("_TtC10HHSDKVideo14MessageOptions") | @@ -696,6 +696,31 @@ SWIFT_CLASS("_TtC10HHSDKVideo14MessageOptions") | ||
| 696 | 696 | ||
| 697 | 697 | ||
| 698 | 698 | ||
| 699 | +SWIFT_PROTOCOL("_TtP10HHSDKVideo14OptionProtocal_") | ||
| 700 | +@protocol OptionProtocal | ||
| 701 | +@property (nonatomic) BOOL isDebug; | ||
| 702 | +@property (nonatomic) BOOL isDevelopment; | ||
| 703 | +@property (nonatomic, copy) NSString * _Nonnull sdkProductId; | ||
| 704 | +@property (nonatomic, copy) NSString * _Nonnull mExtensionString; | ||
| 705 | +@property (nonatomic) BOOL isTRTC; | ||
| 706 | +@property (nonatomic) BOOL allowBeauty; | ||
| 707 | +@property (nonatomic) BOOL allowEvaluate; | ||
| 708 | +@property (nonatomic) BOOL allowAddMember; | ||
| 709 | +@property (nonatomic) BOOL allowMulti; | ||
| 710 | +@property (nonatomic) BOOL isShowDocInfo; | ||
| 711 | +@property (nonatomic) BOOL shouldWaingCall; | ||
| 712 | +@property (nonatomic) NSInteger changeDoctorInterval; | ||
| 713 | +@property (nonatomic) BOOL isFilterSummary; | ||
| 714 | +@property (nonatomic) BOOL isFilterMedicinal; | ||
| 715 | +@property (nonatomic, copy) NSString * _Nonnull defaultDocHeader; | ||
| 716 | +@property (nonatomic, copy) NSString * _Nonnull messageTitle; | ||
| 717 | +@property (nonatomic) BOOL isByPresent; | ||
| 718 | +@property (nonatomic) BOOL hideUserCenter; | ||
| 719 | +@property (nonatomic) BOOL enableActivate; | ||
| 720 | +@property (nonatomic) BOOL enableMedical; | ||
| 721 | +@end | ||
| 722 | + | ||
| 723 | + | ||
| 699 | 724 | ||
| 700 | typedef SWIFT_ENUM(NSInteger, PermissionType, open) { | 725 | typedef SWIFT_ENUM(NSInteger, PermissionType, open) { |
| 701 | PermissionTypeLocationAlways = 0, | 726 | PermissionTypeLocationAlways = 0, |
| @@ -1215,7 +1240,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | @@ -1215,7 +1240,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | ||
| 1215 | HHMCallingStateDidRing = 4, | 1240 | HHMCallingStateDidRing = 4, |
| 1216 | }; | 1241 | }; |
| 1217 | 1242 | ||
| 1218 | -@class HHSDKOptions; | 1243 | +@protocol OptionProtocal; |
| 1219 | @protocol HHRTC; | 1244 | @protocol HHRTC; |
| 1220 | 1245 | ||
| 1221 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") | 1246 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") |
| @@ -1225,7 +1250,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -1225,7 +1250,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 1225 | /// 初始化 SDK | 1250 | /// 初始化 SDK |
| 1226 | /// \param option 可选的 SDK 配置 | 1251 | /// \param option 可选的 SDK 配置 |
| 1227 | /// | 1252 | /// |
| 1228 | -- (void)startWithOption:(HHSDKOptions * _Nullable)option im:(id <HHIM> _Nonnull)im rtc:(id <HHRTC> _Nonnull)rtc; | 1253 | +- (void)startWithOption:(id <OptionProtocal> _Nonnull)option im:(id <HHIM> _Nonnull)im rtc:(id <HHRTC> _Nonnull)rtc; |
| 1229 | /// 登录账户 | 1254 | /// 登录账户 |
| 1230 | /// <ul> | 1255 | /// <ul> |
| 1231 | /// <li> | 1256 | /// <li> |
| @@ -1448,10 +1473,10 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") | @@ -1448,10 +1473,10 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") | ||
| 1448 | @class UsercenterOptions; | 1473 | @class UsercenterOptions; |
| 1449 | 1474 | ||
| 1450 | /// 基础全局配置 | 1475 | /// 基础全局配置 |
| 1451 | -SWIFT_CLASS("_TtC10HHSDKVideo12HHSDKOptions") | ||
| 1452 | -@interface HHSDKOptions : NSObject | ||
| 1453 | -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKOptions * _Nonnull default_;) | ||
| 1454 | -+ (HHSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | 1476 | +SWIFT_CLASS("_TtC10HHSDKVideo17HHVideoSDKOptions") |
| 1477 | +@interface HHVideoSDKOptions : NSObject | ||
| 1478 | +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHVideoSDKOptions * _Nonnull default_;) | ||
| 1479 | ++ (HHVideoSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | ||
| 1455 | /// 调试模式(打印日志) | 1480 | /// 调试模式(打印日志) |
| 1456 | @property (nonatomic) BOOL isDebug; | 1481 | @property (nonatomic) BOOL isDebug; |
| 1457 | /// 是否开启测试服 | 1482 | /// 是否开启测试服 |
| @@ -1500,6 +1525,31 @@ SWIFT_CLASS("_TtC10HHSDKVideo14MessageOptions") | @@ -1500,6 +1525,31 @@ SWIFT_CLASS("_TtC10HHSDKVideo14MessageOptions") | ||
| 1500 | 1525 | ||
| 1501 | 1526 | ||
| 1502 | 1527 | ||
| 1528 | +SWIFT_PROTOCOL("_TtP10HHSDKVideo14OptionProtocal_") | ||
| 1529 | +@protocol OptionProtocal | ||
| 1530 | +@property (nonatomic) BOOL isDebug; | ||
| 1531 | +@property (nonatomic) BOOL isDevelopment; | ||
| 1532 | +@property (nonatomic, copy) NSString * _Nonnull sdkProductId; | ||
| 1533 | +@property (nonatomic, copy) NSString * _Nonnull mExtensionString; | ||
| 1534 | +@property (nonatomic) BOOL isTRTC; | ||
| 1535 | +@property (nonatomic) BOOL allowBeauty; | ||
| 1536 | +@property (nonatomic) BOOL allowEvaluate; | ||
| 1537 | +@property (nonatomic) BOOL allowAddMember; | ||
| 1538 | +@property (nonatomic) BOOL allowMulti; | ||
| 1539 | +@property (nonatomic) BOOL isShowDocInfo; | ||
| 1540 | +@property (nonatomic) BOOL shouldWaingCall; | ||
| 1541 | +@property (nonatomic) NSInteger changeDoctorInterval; | ||
| 1542 | +@property (nonatomic) BOOL isFilterSummary; | ||
| 1543 | +@property (nonatomic) BOOL isFilterMedicinal; | ||
| 1544 | +@property (nonatomic, copy) NSString * _Nonnull defaultDocHeader; | ||
| 1545 | +@property (nonatomic, copy) NSString * _Nonnull messageTitle; | ||
| 1546 | +@property (nonatomic) BOOL isByPresent; | ||
| 1547 | +@property (nonatomic) BOOL hideUserCenter; | ||
| 1548 | +@property (nonatomic) BOOL enableActivate; | ||
| 1549 | +@property (nonatomic) BOOL enableMedical; | ||
| 1550 | +@end | ||
| 1551 | + | ||
| 1552 | + | ||
| 1503 | 1553 | ||
| 1504 | typedef SWIFT_ENUM(NSInteger, PermissionType, open) { | 1554 | typedef SWIFT_ENUM(NSInteger, PermissionType, open) { |
| 1505 | PermissionTypeLocationAlways = 0, | 1555 | PermissionTypeLocationAlways = 0, |
No preview for this file type
| @@ -16,11 +16,33 @@ import SecurityKit | @@ -16,11 +16,33 @@ import SecurityKit | ||
| 16 | import Swift | 16 | import Swift |
| 17 | import UIKit | 17 | import UIKit |
| 18 | import UserNotifications | 18 | import UserNotifications |
| 19 | -public var HMDefaultOpt: HHSDKVideo.HHSDKOptions { | 19 | +@objc public protocol OptionProtocal { |
| 20 | + @objc var isDebug: Swift.Bool { get set } | ||
| 21 | + @objc var isDevelopment: Swift.Bool { get set } | ||
| 22 | + @objc var sdkProductId: Swift.String { get set } | ||
| 23 | + @objc var mExtensionString: Swift.String { get set } | ||
| 24 | + @objc var isTRTC: Swift.Bool { get set } | ||
| 25 | + @objc var allowBeauty: Swift.Bool { get set } | ||
| 26 | + @objc var allowEvaluate: Swift.Bool { get set } | ||
| 27 | + @objc var allowAddMember: Swift.Bool { get set } | ||
| 28 | + @objc var allowMulti: Swift.Bool { get set } | ||
| 29 | + @objc var isShowDocInfo: Swift.Bool { get set } | ||
| 30 | + @objc var shouldWaingCall: Swift.Bool { get set } | ||
| 31 | + @objc var changeDoctorInterval: Swift.Int { get set } | ||
| 32 | + @objc var isFilterSummary: Swift.Bool { get set } | ||
| 33 | + @objc var isFilterMedicinal: Swift.Bool { get set } | ||
| 34 | + @objc var defaultDocHeader: Swift.String { get set } | ||
| 35 | + @objc var messageTitle: Swift.String { get set } | ||
| 36 | + @objc var isByPresent: Swift.Bool { get set } | ||
| 37 | + @objc var hideUserCenter: Swift.Bool { get set } | ||
| 38 | + @objc var enableActivate: Swift.Bool { get set } | ||
| 39 | + @objc var enableMedical: Swift.Bool { get set } | ||
| 40 | +} | ||
| 41 | +public var HMDefaultOpt: HHSDKVideo.OptionProtocal { | ||
| 20 | get | 42 | get |
| 21 | } | 43 | } |
| 22 | -@objc public class HHSDKOptions : ObjectiveC.NSObject { | ||
| 23 | - @objc public static let `default`: HHSDKVideo.HHSDKOptions | 44 | +@objc public class HHVideoSDKOptions : ObjectiveC.NSObject { |
| 45 | + @objc public static let `default`: HHSDKVideo.HHVideoSDKOptions | ||
| 24 | @objc public var isDebug: Swift.Bool | 46 | @objc public var isDebug: Swift.Bool |
| 25 | @objc public var isDevelopment: Swift.Bool | 47 | @objc public var isDevelopment: Swift.Bool |
| 26 | @objc public var sdkProductId: Swift.String | 48 | @objc public var sdkProductId: Swift.String |
| @@ -1017,7 +1039,7 @@ public struct EKAttributes { | @@ -1017,7 +1039,7 @@ public struct EKAttributes { | ||
| 1017 | @objc public static let `default`: HHSDKVideo.HHMSDK | 1039 | @objc public static let `default`: HHSDKVideo.HHMSDK |
| 1018 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? | 1040 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? |
| 1019 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? | 1041 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? |
| 1020 | - @objc public func start(option: HHSDKVideo.HHSDKOptions? = nil, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) | 1042 | + @objc public func start(option: HHSDKVideo.OptionProtocal, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) |
| 1021 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 1043 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1022 | @objc public func autoLogin(uuid: Swift.Int) | 1044 | @objc public func autoLogin(uuid: Swift.Int) |
| 1023 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1045 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
No preview for this file type
| @@ -16,11 +16,33 @@ import SecurityKit | @@ -16,11 +16,33 @@ import SecurityKit | ||
| 16 | import Swift | 16 | import Swift |
| 17 | import UIKit | 17 | import UIKit |
| 18 | import UserNotifications | 18 | import UserNotifications |
| 19 | -public var HMDefaultOpt: HHSDKVideo.HHSDKOptions { | 19 | +@objc public protocol OptionProtocal { |
| 20 | + @objc var isDebug: Swift.Bool { get set } | ||
| 21 | + @objc var isDevelopment: Swift.Bool { get set } | ||
| 22 | + @objc var sdkProductId: Swift.String { get set } | ||
| 23 | + @objc var mExtensionString: Swift.String { get set } | ||
| 24 | + @objc var isTRTC: Swift.Bool { get set } | ||
| 25 | + @objc var allowBeauty: Swift.Bool { get set } | ||
| 26 | + @objc var allowEvaluate: Swift.Bool { get set } | ||
| 27 | + @objc var allowAddMember: Swift.Bool { get set } | ||
| 28 | + @objc var allowMulti: Swift.Bool { get set } | ||
| 29 | + @objc var isShowDocInfo: Swift.Bool { get set } | ||
| 30 | + @objc var shouldWaingCall: Swift.Bool { get set } | ||
| 31 | + @objc var changeDoctorInterval: Swift.Int { get set } | ||
| 32 | + @objc var isFilterSummary: Swift.Bool { get set } | ||
| 33 | + @objc var isFilterMedicinal: Swift.Bool { get set } | ||
| 34 | + @objc var defaultDocHeader: Swift.String { get set } | ||
| 35 | + @objc var messageTitle: Swift.String { get set } | ||
| 36 | + @objc var isByPresent: Swift.Bool { get set } | ||
| 37 | + @objc var hideUserCenter: Swift.Bool { get set } | ||
| 38 | + @objc var enableActivate: Swift.Bool { get set } | ||
| 39 | + @objc var enableMedical: Swift.Bool { get set } | ||
| 40 | +} | ||
| 41 | +public var HMDefaultOpt: HHSDKVideo.OptionProtocal { | ||
| 20 | get | 42 | get |
| 21 | } | 43 | } |
| 22 | -@objc public class HHSDKOptions : ObjectiveC.NSObject { | ||
| 23 | - @objc public static let `default`: HHSDKVideo.HHSDKOptions | 44 | +@objc public class HHVideoSDKOptions : ObjectiveC.NSObject { |
| 45 | + @objc public static let `default`: HHSDKVideo.HHVideoSDKOptions | ||
| 24 | @objc public var isDebug: Swift.Bool | 46 | @objc public var isDebug: Swift.Bool |
| 25 | @objc public var isDevelopment: Swift.Bool | 47 | @objc public var isDevelopment: Swift.Bool |
| 26 | @objc public var sdkProductId: Swift.String | 48 | @objc public var sdkProductId: Swift.String |
| @@ -1017,7 +1039,7 @@ public struct EKAttributes { | @@ -1017,7 +1039,7 @@ public struct EKAttributes { | ||
| 1017 | @objc public static let `default`: HHSDKVideo.HHMSDK | 1039 | @objc public static let `default`: HHSDKVideo.HHMSDK |
| 1018 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? | 1040 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? |
| 1019 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? | 1041 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? |
| 1020 | - @objc public func start(option: HHSDKVideo.HHSDKOptions? = nil, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) | 1042 | + @objc public func start(option: HHSDKVideo.OptionProtocal, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) |
| 1021 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 1043 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1022 | @objc public func autoLogin(uuid: Swift.Int) | 1044 | @objc public func autoLogin(uuid: Swift.Int) |
| 1023 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1045 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
No preview for this file type
| @@ -16,11 +16,33 @@ import SecurityKit | @@ -16,11 +16,33 @@ import SecurityKit | ||
| 16 | import Swift | 16 | import Swift |
| 17 | import UIKit | 17 | import UIKit |
| 18 | import UserNotifications | 18 | import UserNotifications |
| 19 | -public var HMDefaultOpt: HHSDKVideo.HHSDKOptions { | 19 | +@objc public protocol OptionProtocal { |
| 20 | + @objc var isDebug: Swift.Bool { get set } | ||
| 21 | + @objc var isDevelopment: Swift.Bool { get set } | ||
| 22 | + @objc var sdkProductId: Swift.String { get set } | ||
| 23 | + @objc var mExtensionString: Swift.String { get set } | ||
| 24 | + @objc var isTRTC: Swift.Bool { get set } | ||
| 25 | + @objc var allowBeauty: Swift.Bool { get set } | ||
| 26 | + @objc var allowEvaluate: Swift.Bool { get set } | ||
| 27 | + @objc var allowAddMember: Swift.Bool { get set } | ||
| 28 | + @objc var allowMulti: Swift.Bool { get set } | ||
| 29 | + @objc var isShowDocInfo: Swift.Bool { get set } | ||
| 30 | + @objc var shouldWaingCall: Swift.Bool { get set } | ||
| 31 | + @objc var changeDoctorInterval: Swift.Int { get set } | ||
| 32 | + @objc var isFilterSummary: Swift.Bool { get set } | ||
| 33 | + @objc var isFilterMedicinal: Swift.Bool { get set } | ||
| 34 | + @objc var defaultDocHeader: Swift.String { get set } | ||
| 35 | + @objc var messageTitle: Swift.String { get set } | ||
| 36 | + @objc var isByPresent: Swift.Bool { get set } | ||
| 37 | + @objc var hideUserCenter: Swift.Bool { get set } | ||
| 38 | + @objc var enableActivate: Swift.Bool { get set } | ||
| 39 | + @objc var enableMedical: Swift.Bool { get set } | ||
| 40 | +} | ||
| 41 | +public var HMDefaultOpt: HHSDKVideo.OptionProtocal { | ||
| 20 | get | 42 | get |
| 21 | } | 43 | } |
| 22 | -@objc public class HHSDKOptions : ObjectiveC.NSObject { | ||
| 23 | - @objc public static let `default`: HHSDKVideo.HHSDKOptions | 44 | +@objc public class HHVideoSDKOptions : ObjectiveC.NSObject { |
| 45 | + @objc public static let `default`: HHSDKVideo.HHVideoSDKOptions | ||
| 24 | @objc public var isDebug: Swift.Bool | 46 | @objc public var isDebug: Swift.Bool |
| 25 | @objc public var isDevelopment: Swift.Bool | 47 | @objc public var isDevelopment: Swift.Bool |
| 26 | @objc public var sdkProductId: Swift.String | 48 | @objc public var sdkProductId: Swift.String |
| @@ -1017,7 +1039,7 @@ public struct EKAttributes { | @@ -1017,7 +1039,7 @@ public struct EKAttributes { | ||
| 1017 | @objc public static let `default`: HHSDKVideo.HHMSDK | 1039 | @objc public static let `default`: HHSDKVideo.HHMSDK |
| 1018 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? | 1040 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? |
| 1019 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? | 1041 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? |
| 1020 | - @objc public func start(option: HHSDKVideo.HHSDKOptions? = nil, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) | 1042 | + @objc public func start(option: HHSDKVideo.OptionProtocal, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) |
| 1021 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 1043 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1022 | @objc public func autoLogin(uuid: Swift.Int) | 1044 | @objc public func autoLogin(uuid: Swift.Int) |
| 1023 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1045 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
No preview for this file type
| @@ -16,11 +16,33 @@ import SecurityKit | @@ -16,11 +16,33 @@ import SecurityKit | ||
| 16 | import Swift | 16 | import Swift |
| 17 | import UIKit | 17 | import UIKit |
| 18 | import UserNotifications | 18 | import UserNotifications |
| 19 | -public var HMDefaultOpt: HHSDKVideo.HHSDKOptions { | 19 | +@objc public protocol OptionProtocal { |
| 20 | + @objc var isDebug: Swift.Bool { get set } | ||
| 21 | + @objc var isDevelopment: Swift.Bool { get set } | ||
| 22 | + @objc var sdkProductId: Swift.String { get set } | ||
| 23 | + @objc var mExtensionString: Swift.String { get set } | ||
| 24 | + @objc var isTRTC: Swift.Bool { get set } | ||
| 25 | + @objc var allowBeauty: Swift.Bool { get set } | ||
| 26 | + @objc var allowEvaluate: Swift.Bool { get set } | ||
| 27 | + @objc var allowAddMember: Swift.Bool { get set } | ||
| 28 | + @objc var allowMulti: Swift.Bool { get set } | ||
| 29 | + @objc var isShowDocInfo: Swift.Bool { get set } | ||
| 30 | + @objc var shouldWaingCall: Swift.Bool { get set } | ||
| 31 | + @objc var changeDoctorInterval: Swift.Int { get set } | ||
| 32 | + @objc var isFilterSummary: Swift.Bool { get set } | ||
| 33 | + @objc var isFilterMedicinal: Swift.Bool { get set } | ||
| 34 | + @objc var defaultDocHeader: Swift.String { get set } | ||
| 35 | + @objc var messageTitle: Swift.String { get set } | ||
| 36 | + @objc var isByPresent: Swift.Bool { get set } | ||
| 37 | + @objc var hideUserCenter: Swift.Bool { get set } | ||
| 38 | + @objc var enableActivate: Swift.Bool { get set } | ||
| 39 | + @objc var enableMedical: Swift.Bool { get set } | ||
| 40 | +} | ||
| 41 | +public var HMDefaultOpt: HHSDKVideo.OptionProtocal { | ||
| 20 | get | 42 | get |
| 21 | } | 43 | } |
| 22 | -@objc public class HHSDKOptions : ObjectiveC.NSObject { | ||
| 23 | - @objc public static let `default`: HHSDKVideo.HHSDKOptions | 44 | +@objc public class HHVideoSDKOptions : ObjectiveC.NSObject { |
| 45 | + @objc public static let `default`: HHSDKVideo.HHVideoSDKOptions | ||
| 24 | @objc public var isDebug: Swift.Bool | 46 | @objc public var isDebug: Swift.Bool |
| 25 | @objc public var isDevelopment: Swift.Bool | 47 | @objc public var isDevelopment: Swift.Bool |
| 26 | @objc public var sdkProductId: Swift.String | 48 | @objc public var sdkProductId: Swift.String |
| @@ -1017,7 +1039,7 @@ public struct EKAttributes { | @@ -1017,7 +1039,7 @@ public struct EKAttributes { | ||
| 1017 | @objc public static let `default`: HHSDKVideo.HHMSDK | 1039 | @objc public static let `default`: HHSDKVideo.HHMSDK |
| 1018 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? | 1040 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? |
| 1019 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? | 1041 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? |
| 1020 | - @objc public func start(option: HHSDKVideo.HHSDKOptions? = nil, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) | 1042 | + @objc public func start(option: HHSDKVideo.OptionProtocal, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) |
| 1021 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 1043 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1022 | @objc public func autoLogin(uuid: Swift.Int) | 1044 | @objc public func autoLogin(uuid: Swift.Int) |
| 1023 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1045 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
No preview for this file type
| @@ -16,11 +16,33 @@ import SecurityKit | @@ -16,11 +16,33 @@ import SecurityKit | ||
| 16 | import Swift | 16 | import Swift |
| 17 | import UIKit | 17 | import UIKit |
| 18 | import UserNotifications | 18 | import UserNotifications |
| 19 | -public var HMDefaultOpt: HHSDKVideo.HHSDKOptions { | 19 | +@objc public protocol OptionProtocal { |
| 20 | + @objc var isDebug: Swift.Bool { get set } | ||
| 21 | + @objc var isDevelopment: Swift.Bool { get set } | ||
| 22 | + @objc var sdkProductId: Swift.String { get set } | ||
| 23 | + @objc var mExtensionString: Swift.String { get set } | ||
| 24 | + @objc var isTRTC: Swift.Bool { get set } | ||
| 25 | + @objc var allowBeauty: Swift.Bool { get set } | ||
| 26 | + @objc var allowEvaluate: Swift.Bool { get set } | ||
| 27 | + @objc var allowAddMember: Swift.Bool { get set } | ||
| 28 | + @objc var allowMulti: Swift.Bool { get set } | ||
| 29 | + @objc var isShowDocInfo: Swift.Bool { get set } | ||
| 30 | + @objc var shouldWaingCall: Swift.Bool { get set } | ||
| 31 | + @objc var changeDoctorInterval: Swift.Int { get set } | ||
| 32 | + @objc var isFilterSummary: Swift.Bool { get set } | ||
| 33 | + @objc var isFilterMedicinal: Swift.Bool { get set } | ||
| 34 | + @objc var defaultDocHeader: Swift.String { get set } | ||
| 35 | + @objc var messageTitle: Swift.String { get set } | ||
| 36 | + @objc var isByPresent: Swift.Bool { get set } | ||
| 37 | + @objc var hideUserCenter: Swift.Bool { get set } | ||
| 38 | + @objc var enableActivate: Swift.Bool { get set } | ||
| 39 | + @objc var enableMedical: Swift.Bool { get set } | ||
| 40 | +} | ||
| 41 | +public var HMDefaultOpt: HHSDKVideo.OptionProtocal { | ||
| 20 | get | 42 | get |
| 21 | } | 43 | } |
| 22 | -@objc public class HHSDKOptions : ObjectiveC.NSObject { | ||
| 23 | - @objc public static let `default`: HHSDKVideo.HHSDKOptions | 44 | +@objc public class HHVideoSDKOptions : ObjectiveC.NSObject { |
| 45 | + @objc public static let `default`: HHSDKVideo.HHVideoSDKOptions | ||
| 24 | @objc public var isDebug: Swift.Bool | 46 | @objc public var isDebug: Swift.Bool |
| 25 | @objc public var isDevelopment: Swift.Bool | 47 | @objc public var isDevelopment: Swift.Bool |
| 26 | @objc public var sdkProductId: Swift.String | 48 | @objc public var sdkProductId: Swift.String |
| @@ -1017,7 +1039,7 @@ public struct EKAttributes { | @@ -1017,7 +1039,7 @@ public struct EKAttributes { | ||
| 1017 | @objc public static let `default`: HHSDKVideo.HHMSDK | 1039 | @objc public static let `default`: HHSDKVideo.HHMSDK |
| 1018 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? | 1040 | weak public var mCallDelegate: HHSDKVideo.HHCallDelegate? |
| 1019 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? | 1041 | weak public var mHHRTCDelegate: HHSDKVideo.HHRTCDelegate? |
| 1020 | - @objc public func start(option: HHSDKVideo.HHSDKOptions? = nil, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) | 1042 | + @objc public func start(option: HHSDKVideo.OptionProtocal, im: HHSDKVideo.HHIM, rtc: HHSDKVideo.HHRTC) |
| 1021 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 1043 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1022 | @objc public func autoLogin(uuid: Swift.Int) | 1044 | @objc public func autoLogin(uuid: Swift.Int) |
| 1023 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1045 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
-
Please register or login to post a comment