public class MultimodalEventHandle extends Object
StandardizedEventHandleSystemCapability.MultimodalInput#MULTIMODAL_INPUT| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static int |
registerStandardizedEventHandle(Ability ability,
StandardizedEventHandle standardizedEventHandle) |
Registers a standard event.
|
static int |
unregisterStandardizedEventHandle(Ability ability,
StandardizedEventHandle standardizedEventHandle) |
Deregisters a standard event.
|
public static int registerStandardizedEventHandle(Ability ability, StandardizedEventHandle standardizedEventHandle)
ability - Indicates the object that creates the standard event.standardizedEventHandle - Indicates a standard event, which can be CommonEventHandle,
KeyEventHandle, MediaEventHandle, SystemEventHandle, TelephoneEventHandle, or
TouchEventHandle.MultimodalErrorCode.MMI_STANDARD_EVENT_INVALID_PARAMETER,
MultimodalErrorCode.MMI_STANDARD_EVENT_SUCCESS, or
MultimodalErrorCode.MMI_STANDARD_EVENT_EXIST.public static int unregisterStandardizedEventHandle(Ability ability, StandardizedEventHandle standardizedEventHandle)
ability - Indicates the object that creates the standard event.standardizedEventHandle - Indicates a standard event, which can be CommonEventHandle,
KeyEventHandle, MediaEventHandle, SystemEventHandle, TelephoneEventHandle, or
TouchEventHandle.MultimodalErrorCode.MMI_STANDARD_EVENT_INVALID_PARAMETER,
MultimodalErrorCode.MMI_STANDARD_EVENT_SUCCESS, or
MultimodalErrorCode.MMI_STANDARD_EVENT_NOT_EXIST.