SDK自定义配置(包含卡片)
<h3>概述</h3>
<p>在调用 <strong>VTBRSDKManager</strong> 的接口前,可通过 <strong>VTBRConfigure</strong> 类提供的接口,来对sdk进行一些配置。现支持配置的有:</p>
<ul>
<li>UDID类型:可根据自己的需求,选择使用设备标识符;</li>
<li>数据存储路径:配置音频数据下载的目录路径;</li>
<li>设备ID:自定义sdk使用的deviceID;</li>
</ul>
<h3>1. UDID类型</h3>
<p>配置设备标识符的类型</p>
<p><strong>接口:</strong></p>
<p><code>public static void setUdidType(UdidType udidType)</code></p>
<p><strong>UdidType枚举类:</strong></p>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>MAC_ADDRESS</td>
<td>使用Mac地址 (默认)</td>
</tr>
<tr>
<td>SERIAL_NUMBER</td>
<td>使用序列号</td>
</tr>
<tr>
<td>VISIONTALK_ID</td>
<td>使用玩瞳设定的ID</td>
</tr>
</tbody>
</table>
<h3>2. 数据存储路径</h3>
<p>配置数据存储路径</p>
<p><strong>接口:</strong></p>
<p><code>public static void customizeAppFilesPath(String path)</code></p>
<h3>3. 设备ID</h3>
<p>配置自定义设备ID</p>
<p><strong>接口:</strong></p>
<p><code>public static void customizeDeviceID(String deviceID)</code></p>
<h3>4. 设备机型</h3>
<p>配置自定义设备机型:一个型号对应的出图一定要一样,如果出的图不一样 那就要定义新的机型。</p>
<p><strong>接口:</strong>
<code>public static void setCustomDeviceBrand(String customDeviceBrand)</code></p>
<h3>5. 缓存大小</h3>
<p>配置自定义缓存大小</p>
<p><strong>接口:</strong>
<code>public static void customizeCacheFileMBSize(float size)</code></p>
<hr />
<h3><strong>以下接口为卡片识别相关配置,2.13.0版本支持卡片识别及点读</strong></h3>
<h3>6. 设置支持卡片识别</h3>
<p>需要卡片识别的情况下 通过此接口来设置 默认开启。前提license要支持卡片识别,不然卡片识别无效</p>
<p><strong>接口名称:</strong></p>
<pre><code class="language-java">public static void setCardRecognize(boolean flag)</code></pre>
<h3>7. 查看是否之前卡片识别</h3>
<p>查看是否之前卡片识别,需要license认证之后才能使用</p>
<p><strong>接口名称:</strong></p>
<pre><code class="language-java">public static boolean isCardRecognize()</code></pre>
<h3>8.获取卡片套系</h3>
<p>获取当前license支持的卡片套系,需要license认证后才能使用</p>
<p><strong>接口名称:</strong></p>
<pre><code class="language-java">public static List&lt;CardGroupEntity&gt; getCardGroup()</code></pre>
<h3>9.设置需要识别的套系</h3>
<p>设置要识别的套系,不设置默认套系组的第一个ID</p>
<p><strong>接口名称:</strong></p>
<pre><code class="language-java">public static void setCurCardId(int curCardId)</code></pre>
<h3>10.获取当前识别的套系ID</h3>
<p>获取当前识别的套系ID</p>
<p><strong>接口名称:</strong></p>
<pre><code class="language-java">public static int getCurCardId()</code></pre>