目录

FeatureKitManager

java.lang.Object

|---com.huawei.multimedia.audiokit.interfaces.FeatureKitManager

public class FeatureKitManager
extends java.lang.Object

创建type对应的功能对象,绑定对应服务,回调结果给三方应用

Method Summary

Modifier and Type

Method and Description

protected void

bindService(android.content.Context context, android.content.ServiceConnection connection, java.lang.String classeName) 通用绑定服务

protected <T extends AudioFeaturesKit>T

createFeatureKit(int type, android.content.Context context) 创建对应类型的功能对象

protected IAudioKitCallback

getCallBack() 获取回调对象

protected static FeatureKitManager

getInstance() 获取FeatureKitManager单例对象

protected boolean

isAudioKitSupport(android.content.Context context) 判断是否安装Audio Engine服务

protected void

onCallBack(int result) 回调结果给三方应用

protected void

setCallBack(IAudioKitCallback callBack) 添加回调

protected void

unbindService(android.content.Context context, android.content.ServiceConnection connectionService) 解绑服务

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Method Detail

[h2]getInstance

protected static FeatureKitManager getInstance()

获取FeatureKitManager单例对象

Returns:

FeatureKitManager对象

[h2]createFeatureKit

protected <T extends AudioFeaturesKit> T createFeatureKit(int type, android.content.Context context)

创建对应类型的功能对象

Type Parameters:

Type Parameter Name

Type Parameter Description

T

返回的子类

Parameters:

Parameter Name

Parameter Description

type

被创建对象的类型

context

三方应用传入的上下文对象

Returns:

对应类型的对象

[h2]bindService

protected void bindService(android.content.Context context, android.content.ServiceConnection connection, java.lang.String classeName)

通用绑定服务

Parameters:

Parameter Name

Parameter Description

context

三方应用传入的上下文对象

connection

service连接

classeName

service名称

[h2]unbindService

protected void unbindService(android.content.Context context, android.content.ServiceConnection connectionService)

解绑服务

Parameters:

Parameter Name

Parameter Description

context

三方应用传入的上下文对象

connectionService

解绑的服务

[h2]isAudioKitSupport

protected boolean isAudioKitSupport(android.content.Context context)

判断是否安装Audio Engine服务

Parameters:

Parameter Name

Parameter Description

context

三方应用传入的上下文对象

Returns:

安装或未安装

[h2]onCallBack

protected void onCallBack(int result)

回调结果给三方应用

Parameters:

Parameter Name

Parameter Description

result

回调的结果

[h2]setCallBack

protected void setCallBack(IAudioKitCallback callBack)

添加回调

Parameters:

Parameter Name

Parameter Description

callBack

回调接口

[h2]getCallBack

protected IAudioKitCallback getCallBack()

获取回调对象

Returns:

回调接口对象