pub type OH_TextEditorProxy_ReceivePrivateCommandFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, privateCommand: *mut *mut InputMethod_PrivateCommand, size: usize) -> i32>;Expand description
@brief Called when input method sending private command.
You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetReceivePrivateCommandFunc}, 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 privateCommand Private command from input method. You can only access the memory when this callback is called. After this callback returns, the memory will be released and you should not access this memory again. @param size Size of private command. @return Returns the result of handling private command. @since 12
Aliased Type§
pub enum OH_TextEditorProxy_ReceivePrivateCommandFunc {
None,
Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, *mut *mut InputMethod_PrivateCommand, usize) -> i32),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, *mut *mut InputMethod_PrivateCommand, usize) -> i32)
Some value of type T.