Skip to main content

OH_TextEditorProxy_SendEnterKeyFunc

Type Alias OH_TextEditorProxy_SendEnterKeyFunc 

Source
pub type OH_TextEditorProxy_SendEnterKeyFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, enterKeyType: InputMethod_EnterKeyType)>;
Expand description

@brief Called when input method sending enter key.

You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetSendEnterKeyFunc}, and use {@link OH_InputMethodController_Attach} to complete the registration.\n

@param textEditorProxy Represents a pointer to an {@link InputMethod_TextEditorProxy} instance which will be set in. @param enterKeyType Enter key type, which is defined in {@link InputMethod_EnterKeyType}. @since 12

Aliased Type§

pub enum OH_TextEditorProxy_SendEnterKeyFunc {
    None,
    Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, u32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, u32))

Some value of type T.