1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>AppTextCheckCallback</title>
8  </head>
9  <body>
10    <h1><CODE>nn::swkbd::CTR::AppTextCheckCallback</CODE> Type</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14typedef <a href="../../../nn/swkbd/CTR/AppTextCheckResult.html">AppTextCheckResult</a>(* nn::swkbd::CTR::AppTextCheckCallback)(const wchar_t **ppDialogText, const wchar_t *pInputText, u16 inputTextLength);</pre>
15    </div>
16    <h2>Description</h2>
17    <div class="section">
18      <p>Function type that indicates the callback for text checking performed by the application.</p><p>When text checking by the application is enabled—in other words, when the <CODE>TEXT_CHECK_APP</CODE> flag is set in the <CODE>textCheckFlag</CODE> member variable of the <a href="../../../nn/swkbd/CTR/Config/Overview.html"><CODE>nn::swkbd::CTR::Config</CODE></a> structure—this is the callback function invoked when the users finalize their input. The callback function is set by the <a href="../../../nn/swkbd/CTR/StartKeyboardApplet.html"><CODE>nn::swkbd::CTR::StartKeyboardApplet</CODE></a> function.</p><p>The starting address of the user's text input is given by the <span class="argument">pInputText</span> argument and the length of the string is given by the <span class="argument">inputTextLength</span> argument. Return the result of the text check as a <a href="../../../nn/swkbd/CTR/AppTextCheckResult.html"><CODE>nn::swkbd::CTR::AppTextCheckResult</CODE></a>-type value.</p><p>If the result of the text check is anything other than <CODE>APP_TEXT_CHECK_RESULT_OK</CODE>, store the starting address of the string to display in the dialog in the <span class="argument">ppDialogText</span> argument. <br /> This string must be no longer than <a href="../../../nn/swkbd/CTR/APP_TEXT_CHECK_DIALOG_TEXT_LENGTH_MAX.html"><CODE>nn::swkbd::CTR::APP_TEXT_CHECK_DIALOG_TEXT_LENGTH_MAX</CODE></a> and must be <CODE>NULL</CODE>-terminated. <br /> When the result is <CODE>APP_TEXT_CHECK_RESULT_OK</CODE>, this process is not needed.</p></div>
19    <h2>Revision History</h2>
20    <div class="section">
21      <dl class="history">
22        <dt>2011/03/01</dt>
23        <dd>Initial version.<br />
24        </dd>
25      </dl>
26    </div>
27  <hr><p>CONFIDENTIAL</p></body>
28</html>