You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.4 KiB

//
// JCManager.h
// watch
//
// Created by Apple on 2019/4/29.
// Copyright © 2019年 xTT. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JCSDKOC/JCSDKOC.h>
#import "JuPhoonCallViewController.h"
#import "JuphoonModel.h"
//默认是等待时间 60
#define DefineCallWaitTime 60
//默认 限制时间 60*3
#define DefineVideoLimitTime 60*3
//默认 限制时间前的提示 的倒数时间 30
#define DefineVideoLimitBeforeShowTime 30
//通话状态改变
#define kCallNotification @"kCallNotification"
//拨打设备
#define kCallWatchNotification @"kCallWatchNotification"
//登录状态
#define kClientOnLoginSuccessNotification @"kClientOnLoginNotification"
#define kClientOnLoginFailNotification @"kClientOnLoginFailNotification"
#define kClientOnLogoutNotification @"kClientOnLogoutNotification"
NS_ASSUME_NONNULL_BEGIN
@class JCClient;
@class JCMediaDevice;
@class JCCall;
@class JCAccount;
/**
*/
typedef void (^CanReCallBlock)(void);
@interface JCManager : NSObject
@property (nonatomic, strong) UIViewController* gMianVC;
@property (nonatomic, strong) JCClient* client;
/**
*/
@property (nonatomic, readonly) BOOL islogin;
@property (nonatomic, strong) JCMediaDevice* mediaDevice;
@property (nonatomic, strong) JCCall* call;
@property (nonatomic, strong) JCAccount* account;
@property (nonatomic, strong) JCPush* push;
@property (nonatomic, strong) JuPhoonCallViewController *callViewController;
@property (nonatomic) bool pstnMode;
@property (nonatomic) bool uriMode;
/**
s)
*/
@property (nonatomic, assign) int wait_time;
/**
s)
*/
@property (nonatomic, assign) int limit_time;
/**
*/
@property (nonatomic, strong) Device * device;
@property (strong, nonatomic) JuphoonModel *model;
/**
*/
@property (strong, nonatomic) NSDictionary *pushData;
/**
*/
@property (nonatomic) BOOL isSeachAndCall;
/**
*/
@property (copy, nonatomic)CanReCallBlock canReCallBlock;
+ (JCManager*)shared;
-(bool)initializeWithAPPKey:(NSString*)appkey;
-(void)uninitialize;
/**
@param userName
*/
-(void)callVideoWithUserName;
- (void)_stopCallTimeoutTimer;
- (void)_stopVideoLimitTimeoutTimer;
@end
NS_ASSUME_NONNULL_END