AceAbility, AceDataAbility, AceServiceAbilitypublic interface IAssistanceChannel
When a collaboration session is established, terminated during establishment, or disconnected, the framework
notifies your application through the IAssistanceChannel callback.
When your application calls the Ability#startAssistAbility method to establish a collaboration session,
IAssistanceChannel needs to be passed, and the peer ability of the collaboration session needs to implement
the IAssistanceChannel API.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onConnected(AbilityAgent agent) |
Invoked by the framework to notify your application when a collaboration session is established using the
Ability#startAssistAbility method. |
void |
onConnectFailed(int errorCode) |
Invoked by the framework to notify your application when a collaboration session fails to be established using
the
Ability#startAssistAbility method. |
void |
onDisconnected(int errorCode) |
Invoked by the framework to notify your application when a collaboration session is disconnected.
|
void onConnected(AbilityAgent agent)
Ability#startAssistAbility method.agent - Indicates the agent of the peer ability.void onConnectFailed(int errorCode)
Ability#startAssistAbility method.errorCode - Indicates the reason why the collaboration session fails to be established. For details about
the error code, see AssistantCode.void onDisconnected(int errorCode)
errorCode - Indicates the reason why the collaboration session is disconnected. For details about the
error code, see AssistantCode.