YealinkSDK服务
initSdk
接口说明
初始化SDK
接口定义
public static boolean initSdk(final Application mContext, final AuthParam authParam, SdkInitListener sdkInitListener) {
参数描述
参数 | 类型 | 含义 |
---|---|---|
mContext | Application | 上下文 |
authParam | AuthParam | SDK授权参数 |
sdkInitListener | SdkInitListener | 初始化接听回调 |
AuthParam: SDK授权参数
public class AuthParam implements Serializable {
/**
* 应用程序对应的Client ID
*/
private String clientId;
/**
* 应用程序对应的Client Secret
*/
private String clientSecret;
}
SdkInitListener: 初始化接听回调
public interface SdkInitListener {
/**
* SDK初始化成功通知
*/
void onSuccess();
/**
* SDK初始化失败通知
*/
void onFailure();
}
返回值描述
无返回值
isInit
接口说明
SDK是否初始化成功
接口定义
public static boolean isInit() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
boolean | 初始化成功(true),失败(false) |
isAuthorized
接口说明
SDK是否授权成功
接口定义
public static boolean isAuthorized() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
boolean | 授权成功(true),失败(false) |
setOnShareEvent
接口说明
重写分享点击事件
接口定义
public static void setOnShareEvent(OnShareEvent onShareEvent) {
参数描述
参数 | 类型 | 含义 |
---|---|---|
onShareEvent | OnShareEvent | 分享点击事件 |
OnShareEvent: 分享点击事件
public interface OnShareEvent {
//分享至微信
void shareToWechat(Activity activity, String url, String title, String content);
//分享至qq
void shareToQQ(Activity activity, String shareMessage) ;
}
返回值描述
无返回值
getMeetingService
接口说明
获取会议服务实例,内含会议相关接口
接口定义
public static synchronized IMeetingService getMeetingService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
IMeetingService | 会议服务实例 |
getAccountService
接口说明
获取账号服务实例,内含账号相关接口
接口定义
public static synchronized IAuthService getAccountService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
IAuthService | 账号服务实例 |
getPhoneService
接口说明
获取通话服务实例,内含通话相关接口
接口定义
public static synchronized IPhoneService getPhoneService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
IPhoneService | 通话服务实例 |
getSettingService
接口说明
获取设置服务实例,内含设置相关接口
接口定义
public static synchronized ISettingService getSettingService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
ISettingService | 设置服务实例 |
getPhoneHistoryService
接口说明
获取通话记录服务实例,内含通话记录相关接口
接口定义
public static synchronized IPhoneHistoryService getPhoneHistoryService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
IPhoneHistoryService | 通话记录服务实例 |
getFeedBackService
接口说明
获取意见反馈服务实例,内含意见反馈相关接口
接口定义
public static synchronized IFeedBackService getFeedBackService() {
参数描述
无参数
返回值描述
类型 | 含义 |
---|---|
IFeedBackService | 意见反馈服务实例 |