nn::swkbd::CTR::AppTextCheckCallback Typetypedef AppTextCheckResult(* nn::swkbd::CTR::AppTextCheckCallback)(const wchar_t **ppDialogText, const wchar_t *pInputText, u16 inputTextLength);
Function type that indicates the callback for text checking performed by the application.
When text checking by the application is enabled—in other words, when the TEXT_CHECK_APP flag is set in the textCheckFlag member variable of the nn::swkbd::CTR::Config structure—this is the callback function invoked when the users finalize their input. The callback function is set by the nn::swkbd::CTR::StartKeyboardApplet function.
The starting address of the user's text input is given by the pInputText argument and the length of the string is given by the inputTextLength argument. Return the result of the text check as a nn::swkbd::CTR::AppTextCheckResult-type value.
If the result of the text check is anything other than APP_TEXT_CHECK_RESULT_OK, store the starting address of the string to display in the dialog in the ppDialogText argument.
This string must be no longer than nn::swkbd::CTR::APP_TEXT_CHECK_DIALOG_TEXT_LENGTH_MAX and must be NULL-terminated.
When the result is APP_TEXT_CHECK_RESULT_OK, this process is not needed.
CONFIDENTIAL