Skip to main content

OH_TextEditorProxy_SendKeyboardStatusFunc

Type Alias OH_TextEditorProxy_SendKeyboardStatusFunc 

Source
pub type OH_TextEditorProxy_SendKeyboardStatusFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, keyboardStatus: InputMethod_KeyboardStatus)>;
Expand description

@brief Called when input method notifying keyboard status.

You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetSendKeyboardStatusFunc}, 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 keyboardStatus Keyboard status, which is defined in {@link InputMethod_KeyboardStatus}. @since 12

Aliased Type§

pub enum OH_TextEditorProxy_SendKeyboardStatusFunc {
    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.