StandardizedEventHandlepublic interface TelephoneEventHandle extends StandardizedEventHandle
Call events include answering, rejecting, and hanging up a call.
StandardizedEventHandleSystemCapability.MultimodalInput#MULTIMODAL_INPUT| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
onAnswer(MultimodalEvent multimodalEvent) |
Called when a call is answered.
|
boolean |
onHangup(MultimodalEvent multimodalEvent) |
Called when a call is hung up.
|
boolean |
onRefuse(MultimodalEvent multimodalEvent) |
Called when a call is rejected.
|
boolean |
onTelephoneControl(MultimodalEvent multimodalEvent) |
Called when a call control event occurs.
|
boolean onAnswer(MultimodalEvent multimodalEvent)
multimodalEvent - Indicates the multimodal input event information that contains the intent of answering a
call.true if the event is handled; returns false otherwise.onRefuse(MultimodalEvent multimodalEvent)。,
onHangup(MultimodalEvent multimodalEvent)。boolean onRefuse(MultimodalEvent multimodalEvent)
multimodalEvent - Indicates the multimodal input event information that contains the intent of rejecting a
call.true if the event is handled; returns false otherwise.onAnswer(MultimodalEvent multimodalEvent)。,
onHangup(MultimodalEvent multimodalEvent)。boolean onHangup(MultimodalEvent multimodalEvent)
multimodalEvent - Indicates the multimodal input event information that contains the intent of hanging up a
call.true if the event is handled; returns false otherwise.onAnswer(MultimodalEvent multimodalEvent)。,
onRefuse(MultimodalEvent multimodalEvent)。boolean onTelephoneControl(MultimodalEvent multimodalEvent)
This method is used when the specific call intent in the passed event cannot be determined. For example, it is undetermined whether the intent is to execute the answering or hang-up command because the current call status cannot be obtained.
multimodalEvent - Indicates the multimodal input event information that contains the intent of answering or
hanging up a call.true if the event is handled; returns false otherwise.