Skip to main content

OH_PrivateCommand_Create

Function OH_PrivateCommand_Create 

Source
pub unsafe extern "C" fn OH_PrivateCommand_Create(
    key: *mut c_char,
    keyLength: usize,
) -> *mut InputMethod_PrivateCommand
Expand description

@brief Create a new {@link InputMethod_PrivateCommand} instance.

@param key The key of the private command. @param keyLength The length of the key. @return If the creation succeeds, a pointer to the newly created {@link InputMethod_PrivateCommand} instance is returned. If the creation fails, NULL is returned, possible cause is insufficient memory. @since 12