# Development Guidelines<a name="EN-US_TOPIC_0000001185364575"></a>
## When to Use<a name="section18502174174019"></a>
You can set your application to call the **ReminderRequest** class to create scheduled reminders for countdown timers, calendar events, and alarm clocks. When the created reminders are published, the timing and pop-up notification functions of your application will be taken over by the reminder agent in the background, even when your application is frozen or exits.
## Available APIs<a name="section1633115419401"></a>
**reminderAgent** encapsulates the methods for publishing and canceling reminders.
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p13562171015712"><aname="p13562171015712"></a><aname="p13562171015712"></a>Publishes a scheduled reminder.</p>
<pid="p9591131611311"><aname="p9591131611311"></a><aname="p9591131611311"></a>The maximum number of valid notifications (excluding expired ones that will not pop up again) is 30 for one application and 2000 for the entire system.</p>
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p3465939173317"><aname="p3465939173317"></a><aname="p3465939173317"></a>Cancels a specified reminder. (The value of <strongid="b83631346162614"><aname="b83631346162614"></a><aname="b83631346162614"></a>reminderId</strong> is obtained from the return value of <strongid="b236420465267"><aname="b236420465267"></a><aname="b236420465267"></a>publishReminder</strong>.)</p>
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p184651639143320"><aname="p184651639143320"></a><aname="p184651639143320"></a>Obtains all valid reminders set by the current application.</p>
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p19451839143310"><aname="p19451839143310"></a><aname="p19451839143310"></a>Cancels all reminders set by the current application.</p>
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p142081320344"><aname="p142081320344"></a><aname="p142081320344"></a>Registers a <ahref="../nottoctopics/en-us_topic_0000001180018813.md#section1382174172015">NotificationSlot</a> instance to be used by the reminder.</p>
<tdclass="cellrowborder"valign="top"width="42.61%"headers="mcps1.2.3.1.2 "><pid="p1407141783410"><aname="p1407141783410"></a><aname="p1407141783410"></a>Removes a <ahref="../nottoctopics/en-us_topic_0000001180018813.md#section1382174172015">NotificationSlot</a> instance of a specified type.</p>
</td>
</tr>
</tbody>
</table>
**ActionButtonType** enumerates types of buttons displayed in a reminder notification.
<tdclass="cellrowborder"valign="top"width="61.809999999999995%"headers="mcps1.2.3.1.2 "><pid="p13547161217154"><aname="p13547161217154"></a><aname="p13547161217154"></a>Close button, which can be tapped to stop the reminder alert tone, close the reminder notification, and cancel the reminder snoozing.</p>
<tdclass="cellrowborder"valign="top"width="52.04%"headers="mcps1.2.5.1.4 "><pid="p16804121112213"><aname="p16804121112213"></a><aname="p16804121112213"></a>Text on the button.</p>
<tdclass="cellrowborder"valign="top"width="51.66483351664834%"headers="mcps1.2.5.1.4 "><pid="p24967514355"><aname="p24967514355"></a><aname="p24967514355"></a>Name of the package redirected to when the reminder notification is clicked.</p>
<tdclass="cellrowborder"valign="top"width="51.66483351664834%"headers="mcps1.2.5.1.4 "><pid="p14966511359"><aname="p14966511359"></a><aname="p14966511359"></a>Name of the ability redirected to when the reminder notification is clicked.</p>
</td>
</tr>
</tbody>
</table>
**MaxScreenWantAgent** sets the name of the target package and ability to start automatically when the reminder arrives and the device is not in use. If the device is in use, a notification will be displayed.
<tdclass="cellrowborder"valign="top"width="51.300000000000004%"headers="mcps1.2.5.1.4 "><pid="p13390173423710"><aname="p13390173423710"></a><aname="p13390173423710"></a>Name of the package that is automatically started when the reminder arrives and the device is not in use.</p>
<tdclass="cellrowborder"valign="top"width="51.300000000000004%"headers="mcps1.2.5.1.4 "><pid="p639093443717"><aname="p639093443717"></a><aname="p639093443717"></a>Name of the ability that is automatically started when the reminder arrives and the device is not in use.</p>
</td>
</tr>
</tbody>
</table>
**ReminderRequest** defines the reminder to publish.
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p1019193963812"><aname="p1019193963812"></a><aname="p1019193963812"></a>Type of the reminder.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p3191133963820"><aname="p3191133963820"></a><aname="p3191133963820"></a>Action button displayed in the reminder notification.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p819218395387"><aname="p819218395387"></a><aname="p819218395387"></a>Information about the ability that is redirected to when the notification is clicked.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p119213933815"><aname="p119213933815"></a><aname="p119213933815"></a>Information about the ability that is automatically started when the reminder arrives. If the device is in use, a notification will be displayed.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p2286115418440"><aname="p2286115418440"></a><aname="p2286115418440"></a>Extended content to be displayed when the reminder expires.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p66021050104419"><aname="p66021050104419"></a><aname="p66021050104419"></a>Extended content to be displayed when the reminder is snoozing.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p16327733456"><aname="p16327733456"></a><aname="p16327733456"></a>Notification ID used by the reminder. For details, see the API reference of the <strongid="b1391142771410"><aname="b1391142771410"></a><aname="b1391142771410"></a>NotificationRequest.setNotificationId(int id)</strong> method.</p>
<tdclass="cellrowborder"valign="top"width="50.480000000000004%"headers="mcps1.2.5.1.4 "><pid="p193705238459"><aname="p193705238459"></a><aname="p193705238459"></a>Type of the slot used by the reminder</p>
</td>
</tr>
</tbody>
</table>
**ReminderRequestCalendar** extends **ReminderRequest** and defines a reminder for a calendar event.
The earliest reminder time must be later than the current time.
<tdclass="cellrowborder"valign="top"width="50.3%"headers="mcps1.2.5.1.4 "><pid="p2031411555218"><aname="p2031411555218"></a><aname="p2031411555218"></a>Months in which the reminder repeats.</p>
<tdclass="cellrowborder"valign="top"width="50.3%"headers="mcps1.2.5.1.4 "><pid="p18314141515212"><aname="p18314141515212"></a><aname="p18314141515212"></a>Date on which the reminder repeats.</p>
</td>
</tr>
</tbody>
</table>
**ReminderRequestAlarm** extends **ReminderRequest** and defines a reminder for the alarm clock.
<tdclass="cellrowborder"valign="top"width="49.86%"headers="mcps1.2.5.1.4 "><pid="p1770161618444"><aname="p1770161618444"></a><aname="p1770161618444"></a>Hour portion of the reminder time.</p>
<tdclass="cellrowborder"valign="top"width="49.86%"headers="mcps1.2.5.1.4 "><pid="p17703161445"><aname="p17703161445"></a><aname="p17703161445"></a>Minute portion of the reminder time.</p>
<tdclass="cellrowborder"valign="top"width="49.86%"headers="mcps1.2.5.1.4 "><pid="p16101423134917"><aname="p16101423134917"></a><aname="p16101423134917"></a>Days of a week when the reminder repeats.</p>
</td>
</tr>
</tbody>
</table>
**ReminderRequestTimer** extends **ReminderRequest** and defines a reminder for a scheduled timer.
<tdclass="cellrowborder"valign="top"width="49.17%"headers="mcps1.2.5.1.4 "><pid="p7214112014509"><aname="p7214112014509"></a><aname="p7214112014509"></a>Number of seconds in the countdown timer.</p>
</td>
</tr>
</tbody>
</table>
**LocalDateTime** defines a **LocalDateTime** instance.
Your application can call the **ReminderRequest** class to create scheduled reminders for countdown timers, calendar events, and alarm clocks. When the created reminders are published, the timing and pop-up notification functions of your application will be taken over by the reminder agent in the background, even when your application is frozen or exits.
<tdclass="cellrowborder"valign="top"width="52.739999999999995%"headers="mcps1.2.4.1.3 "><pid="p9186112481614"><aname="p9186112481614"></a><aname="p9186112481614"></a>Obtains an RDB store. You can set parameters for the RDB store based on service requirements, call APIs to perform data operations, and use a callback to return the result.</p>
<aname="ul20498114912320"></a><aname="ul20498114912320"></a><ulid="ul20498114912320"><li><strongid="b4112115595818"><aname="b4112115595818"></a><aname="b4112115595818"></a>config</strong>: configuration of the RDB store.</li><li><strongid="b11397121135919"><aname="b11397121135919"></a><aname="b11397121135919"></a>version</strong>: version of the RDB store.</li><li><strongid="b43570718591"><aname="b43570718591"></a><aname="b43570718591"></a>callback</strong>: callback invoked to return the RDB store.</li></ul>
<tdclass="cellrowborder"valign="top"width="52.739999999999995%"headers="mcps1.2.4.1.3 "><pid="p17526162133220"><aname="p17526162133220"></a><aname="p17526162133220"></a>Obtains an RDB store. You can set parameters for the RDB store based on service requirements, call APIs to perform data operations, and use a promise to return the result.</p>
<aname="ul19719610863"></a><aname="ul19719610863"></a><ulid="ul19719610863"><li><strongid="b153861822027"><aname="b153861822027"></a><aname="b153861822027"></a>config</strong>: configuration of the RDB store.</li><li><strongid="b175492306216"><aname="b175492306216"></a><aname="b175492306216"></a>version</strong>: version of the RDB store.</li></ul>
<tdclass="cellrowborder"valign="top"width="52.739999999999995%"headers="mcps1.2.4.1.3 "><pid="p761845132510"><aname="p761845132510"></a><aname="p761845132510"></a>Deletes an RDB store. This method uses a callback to return the result.</p>
<aname="ul11527402717"></a><aname="ul11527402717"></a><ulid="ul11527402717"><li><strongid="b152695571624"><aname="b152695571624"></a><aname="b152695571624"></a>name</strong>: name of the RDB store to delete.</li><li><strongid="b11959131911316"><aname="b11959131911316"></a><aname="b11959131911316"></a>callback</strong>: callback invoked to return the result. If the RDB store is deleted, <strongid="b717583515112554"><aname="b717583515112554"></a><aname="b717583515112554"></a>true</strong> will be returned. Otherwise, <strongid="b1492094045112554"><aname="b1492094045112554"></a><aname="b1492094045112554"></a>false</strong> will be returned.</li></ul>
<tdclass="cellrowborder"valign="top"width="52.739999999999995%"headers="mcps1.2.4.1.3 "><pid="p1112512307296"><aname="p1112512307296"></a><aname="p1112512307296"></a>Deletes an RDB store. This method uses a promise to return the result.</p>
<aname="ul114112033"></a><aname="ul114112033"></a><ulid="ul114112033"><li><strongid="b8147125819315"><aname="b8147125819315"></a><aname="b8147125819315"></a>name</strong>: name of the RDB store to delete.</li></ul>
</td>
</tr>
</tbody>
</table>
**Managing Data in an RDB Store**
The RDB provides APIs for inserting, deleting, modifying, and querying data in the local RDB store.
-**Inserting data**
The RDB provides methods for inserting data through **ValuesBucket** in a data table. If the data is inserted successfully, the row number of the data inserted is returned; otherwise, **-1** is returned.
**Table 2** APIs for inserting data to a data table
<td class="cellrowborder" valign="top" width="46.239999999999995%" headers="mcps1.2.4.1.3 "><p id="p891981214423"><a name="p891981214423"></a><a name="p891981214423"></a>Inserts a row of data into a table. This method uses a callback to return the result.</p>
<a name="ul929362324319"></a><a name="ul929362324319"></a><ul id="ul929362324319"><li><strong id="b791810215118"><a name="b791810215118"></a><a name="b791810215118"></a>name</strong>: name of the target table.</li><li><strong id="b1168133481113"><a name="b1168133481113"></a><a name="b1168133481113"></a>values</strong>: data to be inserted into the table.</li><li><strong id="b153601828111218"><a name="b153601828111218"></a><a name="b153601828111218"></a>callback</strong>: callback invoked to return the result. If the operation is successful, the row ID will be returned. Otherwise, <strong id="b1062976631112554"><a name="b1062976631112554"></a><a name="b1062976631112554"></a>-1</strong> will be returned.</li></ul>
<td class="cellrowborder" valign="top" width="46.239999999999995%" headers="mcps1.2.4.1.3 "><p id="p579311300812"><a name="p579311300812"></a><a name="p579311300812"></a>Inserts a row of data into a table. This method uses a promise to return the result.</p>
<a name="ul121533410439"></a><a name="ul121533410439"></a><ul id="ul121533410439"><li><strong id="b928413422120"><a name="b928413422120"></a><a name="b928413422120"></a>name</strong>: name of the target table.</li><li><strong id="b17334499123"><a name="b17334499123"></a><a name="b17334499123"></a>values</strong>: data to be inserted into the table.</li></ul>
</td>
</tr>
</tbody>
</table>
-**Updating data**
Call the **update\(\)** method to pass the new data and specify the update conditions by using **RdbPredicates**. If the data is successfully updated, the row number of the updated data is returned; otherwise, **0** is returned.
<td class="cellrowborder" valign="top" width="46.03%" headers="mcps1.2.4.1.3 "><p id="p173581429117"><a name="p173581429117"></a><a name="p173581429117"></a>Updates the data that meets the conditions specified by the <strong id="b656572122112554"><a name="b656572122112554"></a><a name="b656572122112554"></a>RdbPredicates</strong> object. This method uses a callback to return the result.</p>
<a name="ul192831157114818"></a><a name="ul192831157114818"></a><ul id="ul192831157114818"><li><strong id="b174257709112554"><a name="b174257709112554"></a><a name="b174257709112554"></a>values</strong>: data to update, which is stored in <strong id="b721764115206"><a name="b721764115206"></a><a name="b721764115206"></a>ValuesBucket</strong>.</li><li><strong id="b09125491559"><a name="b09125491559"></a><a name="b09125491559"></a>rdbPredicates</strong>: conditions for updating data.</li><li><strong id="b10866112471917"><a name="b10866112471917"></a><a name="b10866112471917"></a>callback</strong>: callback invoked to return the number of rows updated.</li></ul>
<td class="cellrowborder" valign="top" width="46.03%" headers="mcps1.2.4.1.3 "><p id="p102077125277"><a name="p102077125277"></a><a name="p102077125277"></a>Updates the data that meets the conditions specified by the <strong id="b11262847102416"><a name="b11262847102416"></a><a name="b11262847102416"></a>RdbPredicates</strong> object. This method uses a promise to return the result.</p>
<a name="ul3397556155017"></a><a name="ul3397556155017"></a><ul id="ul3397556155017"><li><strong id="b694170152510"><a name="b694170152510"></a><a name="b694170152510"></a>values</strong>: data to update, which is stored in <strong id="b3949012512"><a name="b3949012512"></a><a name="b3949012512"></a>ValuesBucket</strong>.</li><li><strong id="b1992219615"><a name="b1992219615"></a><a name="b1992219615"></a>rdbPredicates</strong>: conditions for updating data.</li></ul>
</td>
</tr>
</tbody>
</table>
-**Deleting data**
Call the **delete\(\)** method to delete data meeting the conditions specified by **RdbPredicates**. If the data is deleted, the row number of the deleted data is returned; otherwise, **0** is returned.
<td class="cellrowborder" valign="top" width="57.54%" headers="mcps1.2.4.1.3 "><p id="p1746563812810"><a name="p1746563812810"></a><a name="p1746563812810"></a>Deletes data based on the conditions specified by <strong id="b25823275112554"><a name="b25823275112554"></a><a name="b25823275112554"></a>RdbPredicates</strong>. This method uses a callback to return the result.</p>
<a name="ul199371937131312"></a><a name="ul199371937131312"></a><ul id="ul199371937131312"><li><strong id="b9647017192914"><a name="b9647017192914"></a><a name="b9647017192914"></a>rdbPredicates</strong>: conditions for deleting data.</li><li><strong id="b99708313304"><a name="b99708313304"></a><a name="b99708313304"></a>callback</strong>: callback invoked to return the number of rows deleted.</li></ul>
<td class="cellrowborder" valign="top" width="57.54%" headers="mcps1.2.4.1.3 "><p id="p124258512483"><a name="p124258512483"></a><a name="p124258512483"></a>Deletes data based on the conditions specified by <strong id="b801327406112554"><a name="b801327406112554"></a><a name="b801327406112554"></a>RdbPredicates</strong>. This method uses a promise to return the result.</p>
<td class="cellrowborder" valign="top" width="46.57%" headers="mcps1.2.4.1.3 "><p id="p854321661212"><a name="p854321661212"></a><a name="p854321661212"></a>Queries data in the database based on specified conditions. This method uses a callback to return the result.</p>
<a name="ul976011905112"></a><a name="ul976011905112"></a><ul id="ul976011905112"><li><strong id="b017915301348"><a name="b017915301348"></a><a name="b017915301348"></a>columns</strong>: columns to query. If this parameter is not specified, the query applies to all columns.</li><li><strong id="b45789585356"><a name="b45789585356"></a><a name="b45789585356"></a>callback</strong>: callback invoked to return the result. If the operation is successful, a <strong id="b575560452112554"><a name="b575560452112554"></a><a name="b575560452112554"></a>ResultSet</strong> object will be returned.</li></ul>
<td class="cellrowborder" valign="top" width="46.57%" headers="mcps1.2.4.1.3 "><p id="p3681422175117"><a name="p3681422175117"></a><a name="p3681422175117"></a>Queries data in the database based on specified conditions. This method uses a promise to return the result.</p>
<a name="ul982714175553"></a><a name="ul982714175553"></a><ul id="ul982714175553"><li><strong id="b1556413233711"><a name="b1556413233711"></a><a name="b1556413233711"></a>columns</strong>: columns to query. If this parameter is not specified, the query applies to all columns.</li></ul>
<td class="cellrowborder" valign="top" width="46.57%" headers="mcps1.2.4.1.3 "><p id="p767418510287"><a name="p767418510287"></a><a name="p767418510287"></a>Queries data in the RDB store using the specified SQL statement. This method uses a callback to return the result.</p>
<a name="ul982192010316"></a><a name="ul982192010316"></a><ul id="ul982192010316"><li><strong id="b125394844210"><a name="b125394844210"></a><a name="b125394844210"></a>bindArgs</strong>: arguments in the SQL statement.</li><li><strong id="b126351142164316"><a name="b126351142164316"></a><a name="b126351142164316"></a>callback</strong>: callback invoked to return the result. If the operation is successful, a <strong id="b1798798407112554"><a name="b1798798407112554"></a><a name="b1798798407112554"></a>ResultSet</strong> object will be returned.</li></ul>
<td class="cellrowborder" valign="top" width="46.57%" headers="mcps1.2.4.1.3 "><p id="p15262131018288"><a name="p15262131018288"></a><a name="p15262131018288"></a>Queries data in the RDB store using the specified SQL statement. This method uses a promise to return the result.</p>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p10345221143519"><aname="p10345221143519"></a><aname="p10345221143519"></a>Sets the <strongid="b438950696112554"><aname="b438950696112554"></a><aname="b438950696112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b749976932112554"><aname="b749976932112554"></a><aname="b749976932112554"></a>ValueType</strong> and value equal to the specified value.</p>
<aname="ul39107814371"></a><aname="ul39107814371"></a><ulid="ul39107814371"><li><strongid="b15195122118513"><aname="b15195122118513"></a><aname="b15195122118513"></a>field</strong>: column name in the database table.</li><li><strongid="b18580195411521"><aname="b18580195411521"></a><aname="b18580195411521"></a>value</strong>: value to match the <strongid="b119217321114"><aname="b119217321114"></a><aname="b119217321114"></a>RdbPredicates</strong>.</li><li><strongid="b82912449110"><aname="b82912449110"></a><aname="b82912449110"></a>RdbPredicates</strong>: <strongid="b20646112018129"><aname="b20646112018129"></a><aname="b20646112018129"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1634522183511"><aname="p1634522183511"></a><aname="p1634522183511"></a>Sets the <strongid="b1712658660112554"><aname="b1712658660112554"></a><aname="b1712658660112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b726568859112554"><aname="b726568859112554"></a><aname="b726568859112554"></a>ValueType</strong> and value not equal to the specified value.</p>
<aname="ul415220710398"></a><aname="ul415220710398"></a><ulid="ul415220710398"><li><strongid="b066019819910"><aname="b066019819910"></a><aname="b066019819910"></a>field</strong>: column name in the database table.</li><li><strongid="b1810912616128"><aname="b1810912616128"></a><aname="b1810912616128"></a>value</strong>: value to match the <strongid="b1010920661216"><aname="b1010920661216"></a><aname="b1010920661216"></a>RdbPredicates</strong>.</li><li><strongid="b63152431127"><aname="b63152431127"></a><aname="b63152431127"></a>RdbPredicates</strong>: <strongid="b133155430127"><aname="b133155430127"></a><aname="b133155430127"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1334652112353"><aname="p1334652112353"></a><aname="p1334652112353"></a>Adds a left parenthesis to the <strongid="b183257951112554"><aname="b183257951112554"></a><aname="b183257951112554"></a>RdbPredicates</strong>.</p>
<aname="ul3808195613915"></a><aname="ul3808195613915"></a><ulid="ul3808195613915"><li><strongid="b1146415308136"><aname="b1146415308136"></a><aname="b1146415308136"></a>RdbPredicates</strong>: <strongid="b145191852171313"><aname="b145191852171313"></a><aname="b145191852171313"></a>RdbPredicates</strong> with a left parenthesis.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1634620216353"><aname="p1634620216353"></a><aname="p1634620216353"></a>Adds a right parenthesis to the <strongid="b717084362112554"><aname="b717084362112554"></a><aname="b717084362112554"></a>RdbPredicates</strong>.</p>
<aname="ul952384823816"></a><aname="ul952384823816"></a><ulid="ul952384823816"><li><strongid="b622114010147"><aname="b622114010147"></a><aname="b622114010147"></a>RdbPredicates</strong>: <strongid="b92234051419"><aname="b92234051419"></a><aname="b92234051419"></a>RdbPredicates</strong> with a right parenthesis.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p934672153514"><aname="p934672153514"></a><aname="p934672153514"></a>Adds the OR condition to the <strongid="b1180485437112554"><aname="b1180485437112554"></a><aname="b1180485437112554"></a>RdbPredicates</strong>.</p>
<aname="ul1431681603915"></a><aname="ul1431681603915"></a><ulid="ul1431681603915"><li><strongid="b439496101515"><aname="b439496101515"></a><aname="b439496101515"></a>RdbPredicates</strong>: <strongid="b1839456191515"><aname="b1839456191515"></a><aname="b1839456191515"></a>RdbPredicates</strong> with the OR condition.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1388710815510"><aname="p1388710815510"></a><aname="p1388710815510"></a>Adds the AND condition to the <strongid="b257471589112554"><aname="b257471589112554"></a><aname="b257471589112554"></a>RdbPredicates</strong>.</p>
<aname="ul1727699185710"></a><aname="ul1727699185710"></a><ulid="ul1727699185710"><li><strongid="b18566227141510"><aname="b18566227141510"></a><aname="b18566227141510"></a>RdbPredicates</strong>: <strongid="b185661227171511"><aname="b185661227171511"></a><aname="b185661227171511"></a>RdbPredicates</strong> with the AND condition.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p138987821811"><aname="p138987821811"></a><aname="p138987821811"></a>Sets the <strongid="b1636898418112554"><aname="b1636898418112554"></a><aname="b1636898418112554"></a>RdbPredicates</strong> to match a string containing the specified value.</p>
<aname="ul187302357573"></a><aname="ul187302357573"></a><ulid="ul187302357573"><li><strongid="b0662138791"><aname="b0662138791"></a><aname="b0662138791"></a>field</strong>: column name in the database table.</li><li><strongid="b7114767121"><aname="b7114767121"></a><aname="b7114767121"></a>value</strong>: value to match the <strongid="b611466151215"><aname="b611466151215"></a><aname="b611466151215"></a>RdbPredicates</strong>.</li><li>RdbPredicates: <strongid="b14967161332010"><aname="b14967161332010"></a><aname="b14967161332010"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p102321950135210"><aname="p102321950135210"></a><aname="p102321950135210"></a>Sets the <strongid="b895587112554"><aname="b895587112554"></a><aname="b895587112554"></a>RdbPredicates</strong> to match a string that starts with the specified value.</p>
<aname="ul3643102216597"></a><aname="ul3643102216597"></a><ulid="ul3643102216597"><li><strongid="b176634812918"><aname="b176634812918"></a><aname="b176634812918"></a>field</strong>: column name in the database table.</li><li><strongid="b91196671210"><aname="b91196671210"></a><aname="b91196671210"></a>value</strong>: value to match the <strongid="b12119865128"><aname="b12119865128"></a><aname="b12119865128"></a>RdbPredicates</strong>.</li><li><strongid="b163192043181211"><aname="b163192043181211"></a><aname="b163192043181211"></a>RdbPredicates</strong>: <strongid="b13191043101217"><aname="b13191043101217"></a><aname="b13191043101217"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1063562529"><aname="p1063562529"></a><aname="p1063562529"></a>Sets the <strongid="b1056875172112554"><aname="b1056875172112554"></a><aname="b1056875172112554"></a>RdbPredicates</strong> to match a string that ends with the specified value.</p>
<aname="ul6905132213012"></a><aname="ul6905132213012"></a><ulid="ul6905132213012"><li><strongid="b46643820919"><aname="b46643820919"></a><aname="b46643820919"></a>field</strong>: column name in the database table.</li><li><strongid="b121239671216"><aname="b121239671216"></a><aname="b121239671216"></a>value</strong>: value to match the <strongid="b912317619121"><aname="b912317619121"></a><aname="b912317619121"></a>RdbPredicates</strong>.</li><li><strongid="b103211043131213"><aname="b103211043131213"></a><aname="b103211043131213"></a>RdbPredicates</strong>: <strongid="b20321104319124"><aname="b20321104319124"></a><aname="b20321104319124"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p2822172913538"><aname="p2822172913538"></a><aname="p2822172913538"></a>Sets the <strongid="b1194045299112554"><aname="b1194045299112554"></a><aname="b1194045299112554"></a>RdbPredicates</strong> to match the field whose value is <strongid="b1890023078112554"><aname="b1890023078112554"></a><aname="b1890023078112554"></a>null</strong>.</p>
<aname="ul152823233592"></a><aname="ul152823233592"></a><ulid="ul152823233592"><li><strongid="b206641881994"><aname="b206641881994"></a><aname="b206641881994"></a>field</strong>: column name in the database table.</li><li><strongid="b1774115571093"><aname="b1774115571093"></a><aname="b1774115571093"></a>RdbPredicates</strong>: <strongid="b18741165710911"><aname="b18741165710911"></a><aname="b18741165710911"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p7520112182316"><aname="p7520112182316"></a><aname="p7520112182316"></a>Sets the <strongid="b1059930094112554"><aname="b1059930094112554"></a><aname="b1059930094112554"></a>RdbPredicates</strong> to match the field whose value is not <strongid="b172403177112554"><aname="b172403177112554"></a><aname="b172403177112554"></a>null</strong>.</p>
<aname="ul5646142816017"></a><aname="ul5646142816017"></a><ulid="ul5646142816017"><li><strongid="b1366598494"><aname="b1366598494"></a><aname="b1366598494"></a>field</strong>: column name in the database table.</li><li><strongid="b355418851019"><aname="b355418851019"></a><aname="b355418851019"></a>RdbPredicates</strong>: <strongid="b15541983103"><aname="b15541983103"></a><aname="b15541983103"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p753485217231"><aname="p753485217231"></a><aname="p753485217231"></a>Sets the <strongid="b964300928112554"><aname="b964300928112554"></a><aname="b964300928112554"></a>RdbPredicates</strong> to match a string that is similar to the specified value.</p>
<aname="ul15439141112"></a><aname="ul15439141112"></a><ulid="ul15439141112"><li><strongid="b1366618991"><aname="b1366618991"></a><aname="b1366618991"></a>field</strong>: column name in the database table.</li><li><strongid="b11277641210"><aname="b11277641210"></a><aname="b11277641210"></a>value</strong>: value to match the <strongid="b121272065124"><aname="b121272065124"></a><aname="b121272065124"></a>RdbPredicates</strong>.</li><li><strongid="b19556158101012"><aname="b19556158101012"></a><aname="b19556158101012"></a>RdbPredicates</strong>: <strongid="b1556484106"><aname="b1556484106"></a><aname="b1556484106"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p14252854172320"><aname="p14252854172320"></a><aname="p14252854172320"></a>Sets the <strongid="b644369182112554"><aname="b644369182112554"></a><aname="b644369182112554"></a>RdbPredicates</strong> to match the specified string.</p>
<aname="ul18503142413115"></a><aname="ul18503142413115"></a><ulid="ul18503142413115"><li><strongid="b5667581899"><aname="b5667581899"></a><aname="b5667581899"></a>field</strong>: column name in the database table.</li><li><strongid="b10131460122"><aname="b10131460122"></a><aname="b10131460122"></a>value</strong>: value to match the <strongid="b1313176191214"><aname="b1313176191214"></a><aname="b1313176191214"></a>RdbPredicates</strong>.</li><li><strongid="b125581984106"><aname="b125581984106"></a><aname="b125581984106"></a>RdbPredicates</strong>: <strongid="b955819810103"><aname="b955819810103"></a><aname="b955819810103"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1827513201020"><aname="p1827513201020"></a><aname="p1827513201020"></a>Sets the <strongid="b625856712112554"><aname="b625856712112554"></a><aname="b625856712112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b489101076112554"><aname="b489101076112554"></a><aname="b489101076112554"></a>ValueType</strong> and value within the specified range.</p>
<aname="ul3448133612117"></a><aname="ul3448133612117"></a><ulid="ul3448133612117"><li><strongid="b46682814917"><aname="b46682814917"></a><aname="b46682814917"></a>field</strong>: column name in the database table.</li><li><strongid="b062216817256"><aname="b062216817256"></a><aname="b062216817256"></a>low</strong>: minimum value that matches the <strongid="b4408649182510"><aname="b4408649182510"></a><aname="b4408649182510"></a>RdbPredicates</strong>.</li><li><strongid="b1336881318253"><aname="b1336881318253"></a><aname="b1336881318253"></a>high</strong>: maximum value that matches the <strongid="b05634512611"><aname="b05634512611"></a><aname="b05634512611"></a>RdbPredicates</strong>.</li><li><strongid="b135596841010"><aname="b135596841010"></a><aname="b135596841010"></a>RdbPredicates</strong>: <strongid="b1555913891013"><aname="b1555913891013"></a><aname="b1555913891013"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1073914511013"><aname="p1073914511013"></a><aname="p1073914511013"></a>Sets the <strongid="b480030174112554"><aname="b480030174112554"></a><aname="b480030174112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b591370903112554"><aname="b591370903112554"></a><aname="b591370903112554"></a>ValueType</strong> and value out of the specified range.</p>
<aname="ul697416399210"></a><aname="ul697416399210"></a><ulid="ul697416399210"><li><strongid="b136681086914"><aname="b136681086914"></a><aname="b136681086914"></a>field</strong>: column name in the database table.</li><li><strongid="b4395132016267"><aname="b4395132016267"></a><aname="b4395132016267"></a>low</strong>: minimum value that matches the <strongid="b0396182092615"><aname="b0396182092615"></a><aname="b0396182092615"></a>RdbPredicates</strong>.</li><li><strongid="b16568182820262"><aname="b16568182820262"></a><aname="b16568182820262"></a>high</strong>: maximum value that matches the <strongid="b12568128132611"><aname="b12568128132611"></a><aname="b12568128132611"></a>RdbPredicates</strong>.</li><li><strongid="b25607881011"><aname="b25607881011"></a><aname="b25607881011"></a>RdbPredicates</strong>: <strongid="b256013819104"><aname="b256013819104"></a><aname="b256013819104"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p129461514117"><aname="p129461514117"></a><aname="p129461514117"></a>Sets the <strongid="b299934469112554"><aname="b299934469112554"></a><aname="b299934469112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b297820682112554"><aname="b297820682112554"></a><aname="b297820682112554"></a>ValueType</strong> and value greater than the specified value.</p>
<aname="ul11811341539"></a><aname="ul11811341539"></a><ulid="ul11811341539"><li><strongid="b116691285910"><aname="b116691285910"></a><aname="b116691285910"></a>field</strong>: column name in the database table.</li><li><strongid="b7135166141214"><aname="b7135166141214"></a><aname="b7135166141214"></a>value</strong>: value to match the <strongid="b71351460123"><aname="b71351460123"></a><aname="b71351460123"></a>RdbPredicates</strong>.</li><li><strongid="b9561138131015"><aname="b9561138131015"></a><aname="b9561138131015"></a>RdbPredicates</strong>: <strongid="b1561584103"><aname="b1561584103"></a><aname="b1561584103"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1150510191493"><aname="p1150510191493"></a><aname="p1150510191493"></a>Sets the <strongid="b998950278112554"><aname="b998950278112554"></a><aname="b998950278112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b1745313530112554"><aname="b1745313530112554"></a><aname="b1745313530112554"></a>ValueType</strong> and value less than the specified value.</p>
<aname="ul1641512392313"></a><aname="ul1641512392313"></a><ulid="ul1641512392313"><li><strongid="b367014815919"><aname="b367014815919"></a><aname="b367014815919"></a>field</strong>: column name in the database table.</li><li><strongid="b213966181219"><aname="b213966181219"></a><aname="b213966181219"></a>value</strong>: value to match the <strongid="b161391269123"><aname="b161391269123"></a><aname="b161391269123"></a>RdbPredicates</strong>.</li><li><strongid="b17562183104"><aname="b17562183104"></a><aname="b17562183104"></a>RdbPredicates</strong>: <strongid="b156228141013"><aname="b156228141013"></a><aname="b156228141013"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p1496111155113"><aname="p1496111155113"></a><aname="p1496111155113"></a>Sets the <strongid="b349869843112554"><aname="b349869843112554"></a><aname="b349869843112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b634300709112554"><aname="b634300709112554"></a><aname="b634300709112554"></a>ValueType</strong> and value greater than or equal to the specified value.</p>
<aname="ul1169911541738"></a><aname="ul1169911541738"></a><ulid="ul1169911541738"><li><strongid="b86711689917"><aname="b86711689917"></a><aname="b86711689917"></a>field</strong>: column name in the database table.</li><li><strongid="b71443641215"><aname="b71443641215"></a><aname="b71443641215"></a>value</strong>: value to match the <strongid="b414420621215"><aname="b414420621215"></a><aname="b414420621215"></a>RdbPredicates</strong>.</li><li><strongid="b3563189109"><aname="b3563189109"></a><aname="b3563189109"></a>RdbPredicates</strong>: <strongid="b6563168171010"><aname="b6563168171010"></a><aname="b6563168171010"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p12181611535"><aname="p12181611535"></a><aname="p12181611535"></a>Sets the <strongid="b312137118112554"><aname="b312137118112554"></a><aname="b312137118112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b304585139112554"><aname="b304585139112554"></a><aname="b304585139112554"></a>ValueType</strong> and value less than or equal to the specified value.</p>
<aname="ul954651146"></a><aname="ul954651146"></a><ulid="ul954651146"><li><strongid="b3672785911"><aname="b3672785911"></a><aname="b3672785911"></a>field</strong>: column name in the database table.</li><li><strongid="b14148146141213"><aname="b14148146141213"></a><aname="b14148146141213"></a>value</strong>: value to match the <strongid="b21481362121"><aname="b21481362121"></a><aname="b21481362121"></a>RdbPredicates</strong>.</li><li><strongid="b1056414811010"><aname="b1056414811010"></a><aname="b1056414811010"></a>RdbPredicates</strong>: <strongid="b20564128141016"><aname="b20564128141016"></a><aname="b20564128141016"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p31119384125"><aname="p31119384125"></a><aname="p31119384125"></a>Sets the <strongid="b688515142112554"><aname="b688515142112554"></a><aname="b688515142112554"></a>RdbPredicates</strong> to match the column with values sorted in ascending order.</p>
<aname="ul12611201211416"></a><aname="ul12611201211416"></a><ulid="ul12611201211416"><li><strongid="b20672881395"><aname="b20672881395"></a><aname="b20672881395"></a>field</strong>: column name in the database table.</li><li><strongid="b4565481101"><aname="b4565481101"></a><aname="b4565481101"></a>RdbPredicates</strong>: <strongid="b1956515816107"><aname="b1956515816107"></a><aname="b1956515816107"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p152261741201214"><aname="p152261741201214"></a><aname="p152261741201214"></a>Sets the <strongid="b1784358755112554"><aname="b1784358755112554"></a><aname="b1784358755112554"></a>RdbPredicates</strong> to match the column with values sorted in descending order.</p>
<aname="ul17931024747"></a><aname="ul17931024747"></a><ulid="ul17931024747"><li><strongid="b106731081197"><aname="b106731081197"></a><aname="b106731081197"></a>field</strong>: column name in the database table.</li><li><strongid="b15661871013"><aname="b15661871013"></a><aname="b15661871013"></a>RdbPredicates</strong>: <strongid="b55664821014"><aname="b55664821014"></a><aname="b55664821014"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p79613373335"><aname="p79613373335"></a><aname="p79613373335"></a>Sets the <strongid="b1849038781112554"><aname="b1849038781112554"></a><aname="b1849038781112554"></a>RdbPredicates</strong> to filter out duplicate records.</p>
<aname="ul9247643548"></a><aname="ul9247643548"></a><ulid="ul9247643548"><li><strongid="b8216555102712"><aname="b8216555102712"></a><aname="b8216555102712"></a>RdbPredicates</strong>: <strongid="b154056214288"><aname="b154056214288"></a><aname="b154056214288"></a>RdbPredicates</strong> that can filter out duplicate records.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p167441813355"><aname="p167441813355"></a><aname="p167441813355"></a>Sets the <strongid="b1852235509112554"><aname="b1852235509112554"></a><aname="b1852235509112554"></a>RdbPredicates</strong> to specify the maximum number of records to match in a column.</p>
<aname="ul99331016519"></a><aname="ul99331016519"></a><ulid="ul99331016519"><li><strongid="b1066132843113"><aname="b1066132843113"></a><aname="b1066132843113"></a>value</strong>: maximum number of records in a column.</li><li><strongid="b2596134933112"><aname="b2596134933112"></a><aname="b2596134933112"></a>RdbPredicates</strong>: <strongid="b17201911321"><aname="b17201911321"></a><aname="b17201911321"></a>RdbPredicates</strong> that can be used to set the maximum number of records to match in a column.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p621595810347"><aname="p621595810347"></a><aname="p621595810347"></a>Sets the <strongid="b330697748112554"><aname="b330697748112554"></a><aname="b330697748112554"></a>RdbPredicates</strong> to specify the start position of the returned result.</p>
<aname="ul16890144017919"></a><aname="ul16890144017919"></a><ulid="ul16890144017919"><li><strongid="b4801398332"><aname="b4801398332"></a><aname="b4801398332"></a>rowOffset</strong>: start position of the returned result. The value is a positive integer.</li><li><strongid="b15974182419334"><aname="b15974182419334"></a><aname="b15974182419334"></a>RdbPredicates</strong>: <strongid="b117772378336"><aname="b117772378336"></a><aname="b117772378336"></a>RdbPredicates</strong> object that specifies the start position of the returned result.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p315610216119"><aname="p315610216119"></a><aname="p315610216119"></a>Sets the <strongid="b922906078112554"><aname="b922906078112554"></a><aname="b922906078112554"></a>RdbPredicates</strong> to group rows that have the same value into summary rows.</p>
<aname="ul048292611102"></a><aname="ul048292611102"></a><ulid="ul048292611102"><li><strongid="b12152152614219"><aname="b12152152614219"></a><aname="b12152152614219"></a>fields</strong>: names of the columns grouped for querying data.</li><li><strongid="b107111444315"><aname="b107111444315"></a><aname="b107111444315"></a>RdbPredicates</strong>: <strongid="b1693008184315"><aname="b1693008184315"></a><aname="b1693008184315"></a>RdbPredicates</strong> that groups rows that have the same value.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p784844513588"><aname="p784844513588"></a><aname="p784844513588"></a>Sets the <strongid="b1547335609112554"><aname="b1547335609112554"></a><aname="b1547335609112554"></a>RdbPredicates</strong> object to specify the index column.</p>
<aname="ul14142173351011"></a><aname="ul14142173351011"></a><ulid="ul14142173351011"><li><strongid="b74784474315"><aname="b74784474315"></a><aname="b74784474315"></a>indexName</strong>: name of the index column.</li><li><strongid="b8808413154415"><aname="b8808413154415"></a><aname="b8808413154415"></a>RdbPredicates</strong>: <strongid="b3808141812449"><aname="b3808141812449"></a><aname="b3808141812449"></a>RdbPredicates</strong> object that specifies the index column.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p12468144012181"><aname="p12468144012181"></a><aname="p12468144012181"></a>Sets the <strongid="b1089824940112554"><aname="b1089824940112554"></a><aname="b1089824940112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b1982339248112554"><aname="b1982339248112554"></a><aname="b1982339248112554"></a>Array<ValueType></strong> and value within the specified range.</p>
<aname="ul1261343010160"></a><aname="ul1261343010160"></a><ulid="ul1261343010160"><li><strongid="b2674281693"><aname="b2674281693"></a><aname="b2674281693"></a>field</strong>: column name in the database table.</li></ul>
<aname="ul12498383105"></a><aname="ul12498383105"></a><ulid="ul12498383105"><li><strongid="b495499154512"><aname="b495499154512"></a><aname="b495499154512"></a>value</strong>: array of <strongid="b161531382454"><aname="b161531382454"></a><aname="b161531382454"></a>ValueType</strong> to match.</li><li><strongid="b145677817100"><aname="b145677817100"></a><aname="b145677817100"></a>RdbPredicates</strong>: <strongid="b8567178151019"><aname="b8567178151019"></a><aname="b8567178151019"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
<tdclass="cellrowborder"valign="top"width="46.239999999999995%"headers="mcps1.2.4.1.3 "><pid="p2066842875317"><aname="p2066842875317"></a><aname="p2066842875317"></a>Sets the <strongid="b2092907677112554"><aname="b2092907677112554"></a><aname="b2092907677112554"></a>RdbPredicates</strong> to match the field with data type <strongid="b30969258112554"><aname="b30969258112554"></a><aname="b30969258112554"></a>Array<ValueType></strong> and value out of the specified range.</p>
<aname="ul2699143755811"></a><aname="ul2699143755811"></a><ulid="ul2699143755811"><li><strongid="b56756812910"><aname="b56756812910"></a><aname="b56756812910"></a>field</strong>: column name in the database table.</li></ul>
<aname="ul93771585122"></a><aname="ul93771585122"></a><ulid="ul93771585122"><li><strongid="b447917884619"><aname="b447917884619"></a><aname="b447917884619"></a>value</strong>: array of <strongid="b144791884611"><aname="b144791884611"></a><aname="b144791884611"></a>ValueType</strong> to match.</li><li><strongid="b155684813104"><aname="b155684813104"></a><aname="b155684813104"></a>RdbPredicates</strong>: <strongid="b115680813101"><aname="b115680813101"></a><aname="b115680813101"></a>RdbPredicates</strong> object that matches the specified field.</li></ul>
</td>
</tr>
</tbody>
</table>
**Using the Result Set**
A result set can be regarded as rows of data in the queried results. It allows you to traverse and access the data you have queried. The following table describes the external APIs of **ResultSet**.
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p9210183113187"><aname="p9210183113187"></a><aname="p9210183113187"></a>Moves the result set forwards or backwards by an offset relative to its current position.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p141113153210"><aname="p141113153210"></a><aname="p141113153210"></a>Moves the result set to a specified row.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p627132327"><aname="p627132327"></a><aname="p627132327"></a>Moves the result set to the next row.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p1321813143210"><aname="p1321813143210"></a><aname="p1321813143210"></a>Moves the result set to the previous row.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p0315135329"><aname="p0315135329"></a><aname="p0315135329"></a>Obtains the column index based on the specified column name.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p4341363212"><aname="p4341363212"></a><aname="p4341363212"></a>Obtains the column name based on the specified column index.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p153513123219"><aname="p153513123219"></a><aname="p153513123219"></a>Checks whether the result set is located in the first row.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p13381311321"><aname="p13381311321"></a><aname="p13381311321"></a>Checks whether the result set is located in the last row.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p1651713173216"><aname="p1651713173216"></a><aname="p1651713173216"></a>Obtains the values in the specified column of the current row, in strings.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p1553134322"><aname="p1553134322"></a><aname="p1553134322"></a>Obtains the values in the specified column of the current row, in a byte array.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p1854135329"><aname="p1854135329"></a><aname="p1854135329"></a>Obtains the values in the specified column of the current row, in double.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p929814244115"><aname="p929814244115"></a><aname="p929814244115"></a>Checks whether the values in the specified column of the current row are <strongid="b1342751713112554"><aname="b1342751713112554"></a><aname="b1342751713112554"></a>null</strong>.</p>
<tdclass="cellrowborder"valign="top"width="46.300000000000004%"headers="mcps1.2.4.1.3 "><pid="p16240104519118"><aname="p16240104519118"></a><aname="p16240104519118"></a>Closes the result set.</p>
</td>
</tr>
</tbody>
</table>
**Encrypting an RDB Store**
You can encrypt an RDB store.
When creating an RDB store, you can add a key for security purposes. After that, the RDB store can be accessed only with the correct key. You can change the key but cannot delete it.
Once an RDB store is created without a key, you cannot add a key any longer.
<tdclass="cellrowborder"valign="top"width="43.55%"headers="mcps1.2.4.1.3 "><pid="p4625115845012"><aname="p4625115845012"></a><aname="p4625115845012"></a>Changes the encryption key for an RDB store. This method uses a callback to return the result. If the key is changed, <strongid="b17911183611517"><aname="b17911183611517"></a><aname="b17911183611517"></a>0</strong> is returned. Otherwise, a non-zero value is returned.</p>
<tdclass="cellrowborder"valign="top"width="43.55%"headers="mcps1.2.4.1.3 "><pid="p186252058175012"><aname="p186252058175012"></a><aname="p186252058175012"></a>Changes the encryption key for an RDB store. This method uses a promise to return the result. If the key is changed, <strongid="b4886609720"><aname="b4886609720"></a><aname="b4886609720"></a>0</strong> is returned. Otherwise, a non-zero value is returned.</p>
</td>
</tr>
</tbody>
</table>
## How to Develop<a name="section116922712311"></a>
1. Create an RDB store.
1. Configure the RDB attributes, including the name and storage mode of the database and whether it is read-only.
2. Initialize the table structure and related data in the database.
3. Create an RDB store.
The sample code is as follows:
```
import dataRdb from '@ohos.data.rdb';
const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)";
const STORE_CONFIG = {name: "rdbstore.db",}
let rdbStore = await dataRdb.getRdbStore(STORE_CONFIG, 1);
await rdbStore.executeSql(CREATE_TABLE_TEST);
```
2. Insert data.
1. Create a **ValuesBucket** object to store the data you need to insert.
2. Call the **insert\(\)** method to insert data into the RDB store.
The relational database \(RDB\) manages data based on relational models. With the underlying SQLite database, the RDB provides a complete mechanism for managing local databases. To satisfy different needs in complicated scenarios, the RDB offers a series of methods for performing operations such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements.
A type of database based on the relational model of data. The RDB stores data in rows and columns. An RDB is also called RDB store.
-**Predicate**
A representation of the property or feature of a data entity, or the relationship between data entities. It is mainly used to define operation conditions.
-**Result set**
A set of query results used to access the data. You can access the required data in a result set in flexible modes.
-**SQLite database**
A lightweight open-source relational database management system that complies with Atomicity, Consistency, Isolation, and Durability \(ACID\).
## Working Principles<a name="section4810552814"></a>
The RDB provides a common operation interface for external systems. It uses the SQLite as the underlying persistent storage engine, which supports all SQLite database features.
**Figure 1** How RDB works<aname="fig1826214361535"></a>
# Lightweight Data Store Development<a name="EN-US_TOPIC_0000001230830543"></a>
## When to Use<a name="section13841104521714"></a>
The lightweight data store is ideal for storing lightweight and frequently used data, but not for storing a large amount of data or data with frequent changes. The application data is persistently stored on a device in the form of files. Note that the instance accessed by an application contains all data of the file. The data is always loaded to the memory of the device until the application removes it from the memory. The application can perform data operations using the **Storage** APIs.
## Available APIs<a name="section15173156141712"></a>
The lightweight data store provides applications with data processing capability and allows applications to perform lightweight data storage and query. Data is stored in key-value pairs. Keys are of the string type, and values can be of the number, string, or Boolean type.
**Creating a Storage Instance**
Create a **Storage** instance for data operations. A **Storage** instance is created after data is read from a specified file and loaded to the instance.
**Table 1** API for creating a **Storage** instance
<tdclass="cellrowborder"valign="top"width="54.059999999999995%"headers="mcps1.2.4.1.3 "><pid="p4311132162417"><aname="p4311132162417"></a><aname="p4311132162417"></a>Obtains the <strongid="b193911821194211"><aname="b193911821194211"></a><aname="b193911821194211"></a>Storage</strong> singleton corresponding to a file for data operations.</p>
</td>
</tr>
</tbody>
</table>
**Writing Data**
Call the **put\(\)** method to add or modify data in a **Storage** instance.
<tdclass="cellrowborder"valign="top"width="43.21%"headers="mcps1.2.4.1.3 "><pid="p127261044489"><aname="p127261044489"></a><aname="p127261044489"></a>Writes data of the number, string, and Boolean types.</p>
</td>
</tr>
</tbody>
</table>
**Reading Data**
Call the **get\(\)** method to read data from a **Storage** instance.
<tdclass="cellrowborder"valign="top"width="44.13%"headers="mcps1.2.4.1.3 "><pid="p11862123993920"><aname="p11862123993920"></a><aname="p11862123993920"></a>Reads data of the number, string, and Boolean types.</p>
</td>
</tr>
</tbody>
</table>
**Storing Data Persistently**
Call the **flush\(\)** method to write the cached data back to its text file for persistent storage.
<tdclass="cellrowborder"valign="top"width="44.13%"headers="mcps1.2.4.1.3 "><pid="p1234935810316"><aname="p1234935810316"></a><aname="p1234935810316"></a>Writes data in the <strongid="b263252724411"><aname="b263252724411"></a><aname="b263252724411"></a>Storage</strong> instance back to its file through an asynchronous thread.</p>
</td>
</tr>
</tbody>
</table>
**Observing Data Changes**
Specify **StorageObserver** as the callback to subscribe to data changes. When the value of the subscribed key is changed and the **flush\(\)** method is executed, **StorageObserver** will be invoked.
<tdclass="cellrowborder"valign="top"width="39.81%"headers="mcps1.2.4.1.3 "><pid="p1148505452114"><aname="p1148505452114"></a><aname="p1148505452114"></a>Subscribes to data changes.</p>
<tdclass="cellrowborder"valign="top"width="39.81%"headers="mcps1.2.4.1.3 "><pid="p54853548219"><aname="p54853548219"></a><aname="p54853548219"></a>Unsubscribes from data changes.</p>
</td>
</tr>
</tbody>
</table>
**Deleting Data**
Use the following APIs to delete a **Storage** instance or data file.
<tdclass="cellrowborder"valign="top"width="38.3%"headers="mcps1.2.4.1.3 "><pid="p19291149141220"><aname="p19291149141220"></a><aname="p19291149141220"></a>Deletes a <strongid="b16577722115210"><aname="b16577722115210"></a><aname="b16577722115210"></a>Storage</strong> instance from the cache and deletes its file from the device.</p>
<tdclass="cellrowborder"valign="top"width="38.3%"headers="mcps1.2.4.1.3 "><pid="p164461159247"><aname="p164461159247"></a><aname="p164461159247"></a>Deletes a <strongid="b12971117115417"><aname="b12971117115417"></a><aname="b12971117115417"></a>Storage</strong> instance from the cache to release memory.</p>
</td>
</tr>
</tbody>
</table>
## How to Develop<a name="section146940394256"></a>
1. Import **@ohos.data.storage** and related modules to the development environment.
```
import dataStorage from '@ohos.data.storage'
import featureAbility from '@ohos.ability.featureAbility' // Used to obtain the file storage path.
```
2. Create a **Storage** instance.
Read the specified file and load its data to the **Storage** instance for data operations.
```
var context = featureAbility.getContext()
var path = await context.getFilesDir()
let promise = dataStorage.getStorage(path + '/mystore')
```
1. Write data.
Use the **put\(\)** method of the **Storage** class to write data to the cached **Storage** instance.
```
promise.then((storage) => {
let getPromise = storage.put('startup', 'auto') // Save data to the Storage instance.
getPromise.then(() => {
console.info("Put the value of startup successfully.")
}).catch((err) => {
console.info("Put the value of startup failed with err: " + err)
})
}).catch((err) => {
console.info("Get the storage failed")
})
```
1. Read data.
Use the **get\(\)** method of the **Storage** class to read data.
```
promise.then((storage) => {
let getPromise = storage.get('startup', 'default')
getPromise.then((value) => {
console.info("The value of startup is " + value)
}).catch((err) => {
console.info("Get the value of startup failed with err: " + err)
})
}).catch((err) => {
console.info("Get the storage failed")
})
```
1. Store data persistently.
Use the **flush** or **flushSync** method to flush data in the **Storage** instance to its file.
```
storage.flush();
```
2. Observe data changes.
Specify **StorageObserver** as the callback to subscribe to data changes for an application. When the value of the subscribed key is changed and the **flush\(\)** method is executed, **StorageObserver** will be invoked. Unregister the **StorageObserver** when it is no longer required.
```
promise.then((storage) => {
var observer = function (key) {
console.info("The key of " + key + " changed.")
}
storage.on('change', observer)
storage.putSync('startup', 'auto') // Modify data in the Storage instance.
storage.flushSync() // Trigger the StorageObserver callback.
storage.off(...change..., observer) // Unsubscribe from the data changes.
}).catch((err) => {
console.info("Get the storage failed")
})
```
1. Delete the specified file.
Use the **deleteStorage** method to delete the **Storage** singleton of the specified file from the memory, and delete the specified file, its backup file, and damaged files. After the specified files are deleted, the application cannot use that instance to perform any data operation. Otherwise, data inconsistency will occur. The deleted data and files cannot be restored.
```
let promise = dataStorage.deleteStorage(path + '/mystore')
# Lightweight Data Store Overview<a name="EN-US_TOPIC_0000001230752103"></a>
Lightweight data store is applicable to access and persistence operations on the data in key-value pairs. When an application accesses a lightweight **Storage** instance, data in the **Storage** instance will be cached in the memory for faster access. The cached data can also be written back to the text file for persistent storage. Since file read and write consume system resources, you are advised to minimize the frequency of reading and writing persistent files.
A type of data structure. The key is the unique identifier for a piece of data, and the value is the specific data being identified.
-**Non-relational database**
A database not in compliance with the atomicity, consistency, isolation, and durability \(ACID\) database management properties of relational data transactions. The data in a non-relational database is independent.
## Working Principles<a name="section682631371115"></a>
1. When an application loads data from a specified **Storage** file to a **Storage** instance, the system stores the instance in the memory through a static container. Each file of an application or process has only one **Storage** instance in the memory, till the application removes the instance from the memory or deletes the **Storage** file.
2. When obtaining a **Storage** instance, the application can read data from or write data to the instance. The data in the **Storage** instance can be flushed to its **Storage** file by calling the **flush** or **flushSync** method.
**Figure 1** How lightweight data store works<aname="fig1657785713509"></a>
-**Storage** instances are loaded to the memory. To minimize non-memory overhead, the number of data records stored in a **Storage** instance cannot exceed 10,000. Delete the instances that are no longer used in a timely manner.
- The key in the key-value pairs is of the string type. It cannot be empty or exceed 80 characters.
- If the value in the key-value pairs is of the string type, it can be empty or contain a maximum of 8192 characters.
The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Applicable Devices
| API | Phone| Tablet| Smart TV| Wearable| Lite Wearable|
>The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p9845227114216"><aname="p9845227114216"></a><aname="p9845227114216"></a>Whether to trim the whitespace characters before and after the text. The default value is <strongid="b6928115525311"><aname="b6928115525311"></a><aname="b6928115525311"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p4833610345"><aname="p4833610345"></a><aname="p4833610345"></a>Whether to ignore the XML declaration. The default value is <strongid="b1986182720517"><aname="b1986182720517"></a><aname="b1986182720517"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p142083683419"><aname="p142083683419"></a><aname="p142083683419"></a>Whether to ignore the XML processing instruction. The default value is <strongid="b9507112714198"><aname="b9507112714198"></a><aname="b9507112714198"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p15291036153412"><aname="p15291036153412"></a><aname="p15291036153412"></a>Whether to print attributes across multiple lines and indent attributes. The default value is <strongid="b214910972014"><aname="b214910972014"></a><aname="b214910972014"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p8391736163418"><aname="p8391736163418"></a><aname="p8391736163418"></a>Whether to ignore element comments. The default value is <strongid="b12921132182012"><aname="b12921132182012"></a><aname="b12921132182012"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p28461623102316"><aname="p28461623102316"></a><aname="p28461623102316"></a>Whether to ignore the element's CDATA information. The default value is <strongid="b8400141332617"><aname="b8400141332617"></a><aname="b8400141332617"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p462436183414"><aname="p462436183414"></a><aname="p462436183414"></a>Whether to ignore the element's <strongid="b1644365410213"><aname="b1644365410213"></a><aname="b1644365410213"></a>Doctype</strong> information. The default value is <strongid="b38201991221"><aname="b38201991221"></a><aname="b38201991221"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p67643663417"><aname="p67643663417"></a><aname="p67643663417"></a>Whether to ignore the element's text information. The default value is <strongid="b21731940182214"><aname="b21731940182214"></a><aname="b21731940182214"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p1461412852710"><aname="p1461412852710"></a><aname="p1461412852710"></a>Name of the attribute key for <strongid="b7197102842416"><aname="b7197102842416"></a><aname="b7197102842416"></a>declaration</strong> in the output object. The default value is <strongid="b92387720242"><aname="b92387720242"></a><aname="b92387720242"></a>_declaration</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p336283815279"><aname="p336283815279"></a><aname="p336283815279"></a>Name of the attribute key for <strongid="b978125313248"><aname="b978125313248"></a><aname="b978125313248"></a>instruction</strong> in the output object. The default value is <strongid="b2459142611"><aname="b2459142611"></a><aname="b2459142611"></a>_instruction</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p7608142813588"><aname="p7608142813588"></a><aname="p7608142813588"></a>Name of the attribute key for <strongid="b9204185112618"><aname="b9204185112618"></a><aname="b9204185112618"></a>attributes</strong> in the output object. The default value is <strongid="b392414585262"><aname="b392414585262"></a><aname="b392414585262"></a>_attributes</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p0344122145814"><aname="p0344122145814"></a><aname="p0344122145814"></a>Name of the attribute key for <strongid="b851743532718"><aname="b851743532718"></a><aname="b851743532718"></a>text</strong> in the output object. The default value is <strongid="b350917477273"><aname="b350917477273"></a><aname="b350917477273"></a>_text</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p475618155581"><aname="p475618155581"></a><aname="p475618155581"></a>Name of the attribute key for <strongid="b26841859132720"><aname="b26841859132720"></a><aname="b26841859132720"></a>CDATA</strong> in the output object. The default value is <strongid="b1586013185285"><aname="b1586013185285"></a><aname="b1586013185285"></a>_cdata</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p0979042154918"><aname="p0979042154918"></a><aname="p0979042154918"></a>Name of the attribute key for <strongid="b34439596306"><aname="b34439596306"></a><aname="b34439596306"></a>Doctype</strong> in the output object. The default value is <strongid="b022043913329"><aname="b022043913329"></a><aname="b022043913329"></a>_doctype</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p748535519570"><aname="p748535519570"></a><aname="p748535519570"></a>Name of the attribute key for <strongid="b12533205423211"><aname="b12533205423211"></a><aname="b12533205423211"></a>comment</strong> in the output object. The default value is <strongid="b105967633313"><aname="b105967633313"></a><aname="b105967633313"></a>_comment</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p1599716428492"><aname="p1599716428492"></a><aname="p1599716428492"></a>Name of the attribute key for <strongid="b18469936103317"><aname="b18469936103317"></a><aname="b18469936103317"></a>parent</strong> in the output object. The default value is <strongid="b5277443163312"><aname="b5277443163312"></a><aname="b5277443163312"></a>_parent</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p1568738115715"><aname="p1568738115715"></a><aname="p1568738115715"></a>Name of the attribute key for <strongid="b562120374361"><aname="b562120374361"></a><aname="b562120374361"></a>type</strong> in the output object. The default value is <strongid="b1182815436368"><aname="b1182815436368"></a><aname="b1182815436368"></a>_type</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p159295216567"><aname="p159295216567"></a><aname="p159295216567"></a>Name of the attribute key for <strongid="b959742613717"><aname="b959742613717"></a><aname="b959742613717"></a>name</strong> in the output object. The default value is <strongid="b2605034203717"><aname="b2605034203717"></a><aname="b2605034203717"></a>_name</strong>.</p>
<tdclass="cellrowborder"valign="top"width="55.26%"headers="mcps1.1.5.1.4 "><pid="p62794384910"><aname="p62794384910"></a><aname="p62794384910"></a>Name of the attribute key for <strongid="b116698498376"><aname="b116698498376"></a><aname="b116698498376"></a>elements</strong> in the output object. The default value is <strongid="b1054145814374"><aname="b1054145814374"></a><aname="b1054145814374"></a>_elements</strong>.</p>
>- The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>- The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>- This module contains enhanced i18n APIs, which are not defined in ECMA 402.
>- This module contains enhanced i18n APIs, which are not defined in ECMA 402.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p1426512364278"><a name="p1426512364278"></a><a name="p1426512364278"></a>The value <strong id="b19401141034713"><a name="b19401141034713"></a><a name="b19401141034713"></a>true</strong> indicates that the localized script is displayed from right to left, and value <strong id="b1140191054710"><a name="b1140191054710"></a><a name="b1140191054710"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
i18n.isRTL("zh-CN");// Since Chinese is not written from right to left, false is returned.
i18n.isRTL("ar-EG");// Since Arabic is written from right to left, true is returned.
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p142092114452"><a name="p142092114452"></a><a name="p142092114452"></a>Date to be set for the <strong id="b1825112714818"><a name="b1825112714818"></a><a name="b1825112714818"></a>Calendar</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var calendar = I18n.getCalendar("en-US", "gregory");
Sets the date and time for this **Calendar** object. The value is represented by the number of milliseconds that have elapsed since the Unix epoch \(00:00:00 UTC on January 1, 1970\).
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p9524104532320"><a name="p9524104532320"></a><a name="p9524104532320"></a>Number of milliseconds that have elapsed since the Unix epoch.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var calendar = I18n.getCalendar("en-US", "gregory");
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p1235634134317"><a name="p1235634134317"></a><a name="p1235634134317"></a>Start day of a week. The value <strong id="b1142754320316"><a name="b1142754320316"></a><a name="b1142754320316"></a>1</strong> indicates Sunday, and value <strong id="b343334343113"><a name="b343334343113"></a><a name="b343334343113"></a>7</strong> indicates Saturday.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var calendar = I18n.getCalendar("en-US", "gregory");
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p73431922121210"><a name="p73431922121210"></a><a name="p73431922121210"></a>Start day of a week. The value <strong id="b166613239283"><a name="b166613239283"></a><a name="b166613239283"></a>1</strong> indicates Sunday, and value <strong id="b10661923142819"><a name="b10661923142819"></a><a name="b10661923142819"></a>7</strong> indicates Saturday.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p195721334308"><a name="p195721334308"></a><a name="p195721334308"></a>Minimum number of days in the first week of a year.</p>
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p756935102918"><a name="p756935102918"></a><a name="p756935102918"></a>Minimum number of days in the first week of a year.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p197430101589"><a name="p197430101589"></a><a name="p197430101589"></a>Value of the specified field. For example, if the year in the internal date of this <strong id="b713617105454"><a name="b713617105454"></a><a name="b713617105454"></a>Calendar</strong> object is <strong id="b4545113104514"><a name="b4545113104514"></a><a name="b4545113104514"></a>1990</strong>, the <strong id="b1780019104518"><a name="b1780019104518"></a><a name="b1780019104518"></a>get("year")</strong> function will return <strong id="b857122216453"><a name="b857122216453"></a><a name="b857122216453"></a>1990</strong>.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var calendar = i18n.getCalendar("zh-Hans");
calendar.setTime(2021, 10, 1, 8, 0, 0); // set time to 2021.10.1 08:00:00
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p1943754204711"><a name="p1943754204711"></a><a name="p1943754204711"></a>Locale for which the name of the <strong id="b153411615135514"><a name="b153411615135514"></a><a name="b153411615135514"></a>Calendar</strong> object is displayed. For example, if <strong id="b15956959165512"><a name="b15956959165512"></a><a name="b15956959165512"></a>locale</strong> is <strong id="b3135193195616"><a name="b3135193195616"></a><a name="b3135193195616"></a>en-US</strong>, the name of the Buddhist calendar will be <strong id="b1136103015554"><a name="b1136103015554"></a><a name="b1136103015554"></a>Buddhist Calendar</strong>.</p>
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p759790184716"><a name="p759790184716"></a><a name="p759790184716"></a>Specified date in this <strong id="b12909151184614"><a name="b12909151184614"></a><a name="b12909151184614"></a>Calendar</strong> object. If this parameter is left unspecified, the system checks whether the current date in the <strong id="b5327113114916"><a name="b5327113114916"></a><a name="b5327113114916"></a>Calendar</strong> object is a weekend.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p134689131085"><a name="p134689131085"></a><a name="p134689131085"></a>The value true indicates that the date is a weekend, and value <strong id="b1878515462424"><a name="b1878515462424"></a><a name="b1878515462424"></a>false</strong> indicates a weekday.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var calendar = i18n.getCalendar("zh-Hans");
calendar.setTime(2021, 11, 11, 8, 0, 0); // Set the time to 2021.11.11 08:00:00.
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p0628344161114"><aname="p0628344161114"></a><aname="p0628344161114"></a>Country or region to which the phone number to be formatted belongs.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p2629134411115"><aname="p2629134411115"></a><aname="p2629134411115"></a>Options of the <strongid="b133271441355"><aname="b133271441355"></a><aname="b133271441355"></a>PhoneNumberFormat</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var phoneNumberFormat= new i18n.PhoneNumberFormat("CN", {"type": "E164"});
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p1993323202316"><a name="p1993323202316"></a><a name="p1993323202316"></a>Phone number to be checked.</p>
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p159346329238"><a name="p159346329238"></a><a name="p159346329238"></a>The value <strong id="b655418371355"><a name="b655418371355"></a><a name="b655418371355"></a>true</strong> indicates the phone number format is valid, and value <strong id="b551063319513"><a name="b551063319513"></a><a name="b551063319513"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var phonenumberfmt = new i18n.PhoneNumberFormat("CN");
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p8420204113328"><a name="p8420204113328"></a><a name="p8420204113328"></a>Phone number to be formatted.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p781453518814"><aname="p781453518814"></a><aname="p781453518814"></a>Format type of a phone number. The available options are as follows: <strongid="b2090653219128"><aname="b2090653219128"></a><aname="b2090653219128"></a>E164</strong>, <strongid="b8729133516126"><aname="b8729133516126"></a><aname="b8729133516126"></a>INTERNATIONAL</strong>, <strongid="b78591736171217"><aname="b78591736171217"></a><aname="b78591736171217"></a>NATIONAL</strong>, and <strongid="b427354020121"><aname="b427354020121"></a><aname="b427354020121"></a>RFC3966</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p28171511181914"><aname="p28171511181914"></a><aname="p28171511181914"></a>Name of the measurement unit, for example, <strongid="b01831838118"><aname="b01831838118"></a><aname="b01831838118"></a>meter</strong>, <strongid="b16720174116"><aname="b16720174116"></a><aname="b16720174116"></a>inch</strong>, or <strongid="b8771567115"><aname="b8771567115"></a><aname="b8771567115"></a>cup</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p167223061914"><aname="p167223061914"></a><aname="p167223061914"></a>Measurement system. The value can be <strongid="b94239164313"><aname="b94239164313"></a><aname="b94239164313"></a>SI</strong>, <strongid="b9791317137"><aname="b9791317137"></a><aname="b9791317137"></a>US</strong>, or <strongid="b81571719033"><aname="b81571719033"></a><aname="b81571719033"></a>UK</strong>.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p3326154515136"><a name="p3326154515136"></a><a name="p3326154515136"></a>Measurement unit to be converted.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p185841414140"><a name="p185841414140"></a><a name="p185841414140"></a>Measurement unit to be converted to.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p59502617146"><a name="p59502617146"></a><a name="p59502617146"></a>Value of the measurement unit to be converted.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p575069171414"><a name="p575069171414"></a><a name="p575069171414"></a>Locale used for formatting, for example, <strong id="b8984198172911"><a name="b8984198172911"></a><a name="b8984198172911"></a>zh-Hans-CN</strong>.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p12452181271416"><a name="p12452181271416"></a><a name="p12452181271416"></a>Style used for formatting. The value can be <strong id="b13885195303818"><a name="b13885195303818"></a><a name="b13885195303818"></a>long</strong>, <strong id="b965955523812"><a name="b965955523812"></a><a name="b965955523812"></a>short</strong>, or <strong id="b15861057203811"><a name="b15861057203811"></a><a name="b15861057203811"></a>medium</strong>.</p>
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p20327845141310"><a name="p20327845141310"></a><a name="p20327845141310"></a>Character string obtained after formatting based on the measurement unit specified by <strong id="b14371143487"><a name="b14371143487"></a><a name="b14371143487"></a>toUnit</strong>.</p>
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p1085095982419"><a name="p1085095982419"></a><a name="p1085095982419"></a>Index list for this locale.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p17539177165113"><a name="p17539177165113"></a><a name="p17539177165113"></a><strong id="b345663119182"><a name="b345663119182"></a><a name="b345663119182"></a>text</strong> object whose index is to be obtained.</p>
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p4164142145313"><a name="p4164142145313"></a><a name="p4164142145313"></a>The value <strong id="b3814161419326"><a name="b3814161419326"></a><a name="b3814161419326"></a>true</strong> indicates that the input character is a digit, and value <strong id="b06351730113213"><a name="b06351730113213"></a><a name="b06351730113213"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isdigit = Character.isDigit("1"); // Return true.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p1210245243410"><a name="p1210245243410"></a><a name="p1210245243410"></a>The value <strong id="b42481754183718"><a name="b42481754183718"></a><a name="b42481754183718"></a>true</strong> indicates that the input character is a space, and value <strong id="b2248165443715"><a name="b2248165443715"></a><a name="b2248165443715"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isspacechar = Character.isSpaceChar("a"); // Return false.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p330710269413"><a name="p330710269413"></a><a name="p330710269413"></a>The value <strong id="b6934348153810"><a name="b6934348153810"></a><a name="b6934348153810"></a>true</strong> indicates that the input character is a white space, and value <strong id="b1794094873813"><a name="b1794094873813"></a><a name="b1794094873813"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var iswhitespace = Character.isWhitespace("a"); // Return false.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p11296131944316"><a name="p11296131944316"></a><a name="p11296131944316"></a>The value <strong id="b336183710499"><a name="b336183710499"></a><a name="b336183710499"></a>true</strong> indicates that the input character is of the RTL language, and value <strong id="b93673764913"><a name="b93673764913"></a><a name="b93673764913"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isrtl = Character.isRTL("a"); // Return false.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p1238110284470"><a name="p1238110284470"></a><a name="p1238110284470"></a>The value <strong id="b16492153345214"><a name="b16492153345214"></a><a name="b16492153345214"></a>true</strong> indicates that the input character is an ideographic character, and value <strong id="b44924338527"><a name="b44924338527"></a><a name="b44924338527"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isideograph = Character.isIdeograph("a"); // Return false.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p813353654910"><a name="p813353654910"></a><a name="p813353654910"></a>The value <strong id="b1364011716543"><a name="b1364011716543"></a><a name="b1364011716543"></a>true</strong> indicates that the input character is a letter, and value <strong id="b1564013745415"><a name="b1564013745415"></a><a name="b1564013745415"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isletter = Character.isLetter("a"); // Return true.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p19546124855120"><a name="p19546124855120"></a><a name="p19546124855120"></a>The value <strong id="b1611413487548"><a name="b1611413487548"></a><a name="b1611413487548"></a>true</strong> indicates that the input character is a lowercase letter, and value <strong id="b411484895417"><a name="b411484895417"></a><a name="b411484895417"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var islowercase = Character.isLowerCase("a"); // Return true.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p1552813513525"><a name="p1552813513525"></a><a name="p1552813513525"></a>The value <strong id="b17483125210558"><a name="b17483125210558"></a><a name="b17483125210558"></a>true</strong> indicates that the input character is an uppercase letter, and value <strong id="b1448915285516"><a name="b1448915285516"></a><a name="b1448915285516"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var isuppercase = Character.isUpperCase("a"); // Return false.
<td class="cellrowborder" valign="top" width="66.06339366063393%" headers="mcps1.1.5.1.4 "><p id="p16122192612166"><a name="p16122192612166"></a><a name="p16122192612166"></a>Valid locale value, for example, <strong id="b1619069580"><a name="b1619069580"></a><a name="b1619069580"></a>zh-Hans-CN</strong>. The <a href="#section1312302611613">BreakIterator</a> object segments text according to the rules of the specified locale.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p41231726101615"><a name="p41231726101615"></a><a name="p41231726101615"></a>Break iterator used for text segmentation.</p>
<td class="cellrowborder" valign="top" width="66.06339366063393%" headers="mcps1.1.5.1.4 "><p id="p10751194713229"><a name="p10751194713229"></a><a name="p10751194713229"></a>Text to be processed by the <a href="#section1312302611613">BreakIterator</a> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p184954143512"><a name="p184954143512"></a><a name="p184954143512"></a>Position of the <a href="#section1312302611613">BreakIterator</a> object in the text being processed.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p5570132112394"><a name="p5570132112394"></a><a name="p5570132112394"></a>Offset to the first text boundary of the processed text.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
Puts the [BreakIterator](#section1312302611613) object to the last text boundary, which is always the next position after the end of the processed text.
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p142981556104212"><a name="p142981556104212"></a><a name="p142981556104212"></a>Offset of the last text boundary of the processed text.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
Moves the [BreakIterator](#section1312302611613) object backward by the specified number of text boundaries if the specified index is a positive number. If the index is a negative number, the [BreakIterator](#section1312302611613) object will be moved forward by the corresponding number of text boundaries. If no index is specified, the index will be treated as **1**.
<td class="cellrowborder" valign="top" width="66.06339366063393%" headers="mcps1.1.5.1.4 "><p id="p157113716161"><a name="p157113716161"></a><a name="p157113716161"></a>Number of text boundaries by which the <a href="#section1312302611613">BreakIterator</a> object is moved. A positive value indicates that the text boundary is moved backward, and a negative value indicates the opposite. If no index is specified, the index will be treated as <strong id="b195933232918"><a name="b195933232918"></a><a name="b195933232918"></a>1</strong>.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p13133111851319"><a name="p13133111851319"></a><a name="p13133111851319"></a>Position of the <a href="#section1312302611613">BreakIterator</a> object in the text after it is moved by the specified number of text boundaries. The value <strong id="b4493281401"><a name="b4493281401"></a><a name="b4493281401"></a>-1</strong> is returned if the position of the <a href="#section1312302611613">BreakIterator</a> object is outside of the processed text after it is moved by the specified number of text boundaries.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p313510183133"><a name="p313510183133"></a><a name="p313510183133"></a>Position of the <a href="#section1312302611613">BreakIterator</a> object in the text after it is moved to the previous text boundary. The value <strong id="b152571690117"><a name="b152571690117"></a><a name="b152571690117"></a>-1</strong> is returned if the position of the <a href="#section1312302611613">BreakIterator</a> object is outside of the processed text after it is moved by the specified number of text boundaries.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
<td class="cellrowborder" valign="top" width="66.06339366063393%" headers="mcps1.1.5.1.4 "><p id="p1274585312307"><a name="p1274585312307"></a><a name="p1274585312307"></a>Offset to the position before the text boundary to which the <a href="#section1312302611613">BreakIterator</a> object is moved.</p>
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p1374625317301"><a name="p1374625317301"></a><a name="p1374625317301"></a>The value <strong id="b1066631131915"><a name="b1066631131915"></a><a name="b1066631131915"></a>-1</strong> is returned if the text boundary to which the <a href="#section1312302611613">BreakIterator</a> object is moved is outside of the processed text.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
Checks whether the position specified by the offset is a text boundary. If **true** is returned, the [BreakIterator](#section1312302611613) object is moved to the position specified by the offset. If **false** is returned, the [BreakIterator](#section1312302611613) object is moved to the text boundary after the position specified by the offset, which is equivalent to calling [following\(offset\)](#section1743155314301).
<td class="cellrowborder" valign="top" width="77.24%" headers="mcps1.1.3.1.2 "><p id="p291165623012"><a name="p291165623012"></a><a name="p291165623012"></a>The value <strong id="b910010472195"><a name="b910010472195"></a><a name="b910010472195"></a>true</strong> indicates that the position specified by the offset is a text boundary, and value <strong id="b4301203582014"><a name="b4301203582014"></a><a name="b4301203582014"></a>false</strong> indicates the opposite.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
iterator = I18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
>- The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>- The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>- This module contains standard i18n APIs, which are defined in ECMA 402.
>- This module contains standard i18n APIs, which are defined in ECMA 402.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p12783115145518"><aname="p12783115145518"></a><aname="p12783115145518"></a>Language associated with the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p12783115145518"><aname="p12783115145518"></a><aname="p12783115145518"></a>Language associated with the locale, for example, <strongid="b6789165520289"><aname="b6789165520289"></a><aname="b6789165520289"></a>zh</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1878311155553"><aname="p1878311155553"></a><aname="p1878311155553"></a>Script type of the language.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1878311155553"><aname="p1878311155553"></a><aname="p1878311155553"></a>Script type of the language, for example, <strongid="b14643185102915"><aname="b14643185102915"></a><aname="b14643185102915"></a>Hans</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p16141183916818"><aname="p16141183916818"></a><aname="p16141183916818"></a>Region associated with the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p16141183916818"><aname="p16141183916818"></a><aname="p16141183916818"></a>Region associated with the locale, for example, <strongid="b4307013162914"><aname="b4307013162914"></a><aname="b4307013162914"></a>CN</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p4246421818"><aname="p4246421818"></a><aname="p4246421818"></a>Basic information about the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p4246421818"><aname="p4246421818"></a><aname="p4246421818"></a>Basic key information about the locale, which consists of the language, script, and region, for example, <strongid="b13800919142819"><aname="b13800919142819"></a><aname="b13800919142819"></a>zh-Hans-CN</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p111822441087"><aname="p111822441087"></a><aname="p111822441087"></a>Whether case is taken into account for the locale's collation rules.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p111822441087"><aname="p111822441087"></a><aname="p111822441087"></a>Whether case is taken into account for the locale's collation rules. The value can be <strongid="b1072474043720"><aname="b1072474043720"></a><aname="b1072474043720"></a>upper</strong>, <strongid="b590544419371"><aname="b590544419371"></a><aname="b590544419371"></a>lower</strong>, or <strongid="b51211246193710"><aname="b51211246193710"></a><aname="b51211246193710"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1916315466811"><aname="p1916315466811"></a><aname="p1916315466811"></a>Calendar for the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1916315466811"><aname="p1916315466811"></a><aname="p1916315466811"></a>Calendar for the locale. The value can be <strongid="b1435117148383"><aname="b1435117148383"></a><aname="b1435117148383"></a>buddhist</strong>, <strongid="b20559101743815"><aname="b20559101743815"></a><aname="b20559101743815"></a>chinese</strong>, <strongid="b2697922173810"><aname="b2697922173810"></a><aname="b2697922173810"></a>coptic</strong>, <strongid="b09517154394"><aname="b09517154394"></a><aname="b09517154394"></a>dangi</strong>, <strongid="b197531733919"><aname="b197531733919"></a><aname="b197531733919"></a>ethioaa</strong>, <strongid="b426418182397"><aname="b426418182397"></a><aname="b426418182397"></a>ethiopic</strong>, <strongid="b4451219143915"><aname="b4451219143915"></a><aname="b4451219143915"></a>gregory</strong>, <strongid="b18925112220399"><aname="b18925112220399"></a><aname="b18925112220399"></a>hebrew</strong>, <strongid="b17677122563910"><aname="b17677122563910"></a><aname="b17677122563910"></a>indian</strong>, <strongid="b10905152663910"><aname="b10905152663910"></a><aname="b10905152663910"></a>islamic</strong>, <strongid="b1290583113396"><aname="b1290583113396"></a><aname="b1290583113396"></a>islamic-umalqura</strong>, <strongid="b132143519397"><aname="b132143519397"></a><aname="b132143519397"></a>islamic-tbla</strong>, <strongid="b332533923910"><aname="b332533923910"></a><aname="b332533923910"></a>islamic-civil</strong>, <strongid="b7453174273915"><aname="b7453174273915"></a><aname="b7453174273915"></a>islamic-rgsa</strong>, <strongid="b111815446396"><aname="b111815446396"></a><aname="b111815446396"></a>iso8601</strong>, <strongid="b2040316458398"><aname="b2040316458398"></a><aname="b2040316458398"></a>japanese</strong>, <strongid="b18626194623920"><aname="b18626194623920"></a><aname="b18626194623920"></a>persian</strong>, <strongid="b6918205033912"><aname="b6918205033912"></a><aname="b6918205033912"></a>roc</strong>, or <strongid="b10416214400"><aname="b10416214400"></a><aname="b10416214400"></a>islamicc</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p117094811816"><aname="p117094811816"></a><aname="p117094811816"></a>Collation rules for the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p117094811816"><aname="p117094811816"></a><aname="p117094811816"></a>Collation rules for the locale. The value can be any of the following: <strongid="b141438489413"><aname="b141438489413"></a><aname="b141438489413"></a>big5han</strong>, <strongid="b8428849194115"><aname="b8428849194115"></a><aname="b8428849194115"></a>compat</strong>, <strongid="b189492504419"><aname="b189492504419"></a><aname="b189492504419"></a>dict</strong>, <strongid="b1351145204116"><aname="b1351145204116"></a><aname="b1351145204116"></a>direct</strong>, <strongid="b2670453204120"><aname="b2670453204120"></a><aname="b2670453204120"></a>ducet</strong>, <strongid="b94632552410"><aname="b94632552410"></a><aname="b94632552410"></a>eor</strong>, <strongid="b14468145984112"><aname="b14468145984112"></a><aname="b14468145984112"></a>gb2312</strong>, <strongid="b83801058144120"><aname="b83801058144120"></a><aname="b83801058144120"></a>phonebk</strong>, <strongid="b16471119427"><aname="b16471119427"></a><aname="b16471119427"></a>phonetic</strong>, <strongid="b2317627421"><aname="b2317627421"></a><aname="b2317627421"></a>pinyin</strong>, <strongid="b8457734421"><aname="b8457734421"></a><aname="b8457734421"></a>reformed</strong>, <strongid="b117796417427"><aname="b117796417427"></a><aname="b117796417427"></a>searchjl</strong>, <strongid="b188476512427"><aname="b188476512427"></a><aname="b188476512427"></a>stroke</strong>, <strongid="b1054516714426"><aname="b1054516714426"></a><aname="b1054516714426"></a>trad</strong>, <strongid="b9689924217"><aname="b9689924217"></a><aname="b9689924217"></a>unihan</strong>, and <strongid="b9511191018422"><aname="b9511191018422"></a><aname="b9511191018422"></a>zhuyin</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p19267155017816"><aname="p19267155017816"></a><aname="p19267155017816"></a>Time system for the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p19267155017816"><aname="p19267155017816"></a><aname="p19267155017816"></a>Time system for the locale. The value can be <strongid="b5426114354519"><aname="b5426114354519"></a><aname="b5426114354519"></a>h11</strong>, <strongid="b1042634354518"><aname="b1042634354518"></a><aname="b1042634354518"></a>h12</strong>, <strongid="b144261943124515"><aname="b144261943124515"></a><aname="b144261943124515"></a>h23</strong>, or <strongid="b1442694354510"><aname="b1442694354510"></a><aname="b1442694354510"></a>h24</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p63855529817"><aname="p63855529817"></a><aname="p63855529817"></a>Numbering system for the locale.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p63855529817"><aname="p63855529817"></a><aname="p63855529817"></a>Numbering system for the locale. The value can be any of the following: <strongid="b17496243124313"><aname="b17496243124313"></a><aname="b17496243124313"></a>adlm</strong>, <strongid="b54211451436"><aname="b54211451436"></a><aname="b54211451436"></a>ahom</strong>, <strongid="b9186246134312"><aname="b9186246134312"></a><aname="b9186246134312"></a>arab</strong>, <strongid="b1945411476434"><aname="b1945411476434"></a><aname="b1945411476434"></a>arabext</strong>, <strongid="b38241448174312"><aname="b38241448174312"></a><aname="b38241448174312"></a>bali</strong>, <strongid="b41541750174316"><aname="b41541750174316"></a><aname="b41541750174316"></a>beng</strong>, <strongid="b1502105213432"><aname="b1502105213432"></a><aname="b1502105213432"></a>bhks</strong>, <strongid="b298325424310"><aname="b298325424310"></a><aname="b298325424310"></a>brah</strong>, <strongid="b95351956164310"><aname="b95351956164310"></a><aname="b95351956164310"></a>cakm</strong>, <strongid="b181752584438"><aname="b181752584438"></a><aname="b181752584438"></a>cham</strong>, <strongid="b3394703448"><aname="b3394703448"></a><aname="b3394703448"></a>deva</strong>, <strongid="b59441912441"><aname="b59441912441"></a><aname="b59441912441"></a>diak</strong>, <strongid="b42983384419"><aname="b42983384419"></a><aname="b42983384419"></a>fullwide</strong>, <strongid="b129375144418"><aname="b129375144418"></a><aname="b129375144418"></a>gong</strong>, <strongid="b636815644413"><aname="b636815644413"></a><aname="b636815644413"></a>gonm</strong>, <strongid="b18617157104414"><aname="b18617157104414"></a><aname="b18617157104414"></a>gujr</strong>, <strongid="b1255559174419"><aname="b1255559174419"></a><aname="b1255559174419"></a>guru</strong>, <strongid="b19727910144415"><aname="b19727910144415"></a><aname="b19727910144415"></a>hanidec</strong>, <strongid="b178511411124419"><aname="b178511411124419"></a><aname="b178511411124419"></a>hmng</strong>, <strongid="b6174414124413"><aname="b6174414124413"></a><aname="b6174414124413"></a>hmnp</strong>, <strongid="b7736141514412"><aname="b7736141514412"></a><aname="b7736141514412"></a>java</strong>, <strongid="b392101784418"><aname="b392101784418"></a><aname="b392101784418"></a>kali</strong>, <strongid="b74001118144416"><aname="b74001118144416"></a><aname="b74001118144416"></a>khmr</strong>, <strongid="b468001944420"><aname="b468001944420"></a><aname="b468001944420"></a>knda</strong>, <strongid="b139511420164416"><aname="b139511420164416"></a><aname="b139511420164416"></a>lana</strong>, <strongid="b464220229445"><aname="b464220229445"></a><aname="b464220229445"></a>lanatham</strong>, <strongid="b72835619451"><aname="b72835619451"></a><aname="b72835619451"></a>laoo</strong>, <strongid="b12408158124513"><aname="b12408158124513"></a><aname="b12408158124513"></a>latn</strong>, <strongid="b20157410114519"><aname="b20157410114519"></a><aname="b20157410114519"></a>lepc</strong>, <strongid="b127911811134516"><aname="b127911811134516"></a><aname="b127911811134516"></a>limb</strong>, <strongid="b652314131451"><aname="b652314131451"></a><aname="b652314131451"></a>mathbold</strong>, <strongid="b16795216164519"><aname="b16795216164519"></a><aname="b16795216164519"></a>mathdbl</strong>, <strongid="b1762515150457"><aname="b1762515150457"></a><aname="b1762515150457"></a>mathmono</strong>, <strongid="b18181418154517"><aname="b18181418154517"></a><aname="b18181418154517"></a>mathsanb</strong>, <strongid="b984962414449"><aname="b984962414449"></a><aname="b984962414449"></a>mathsans</strong>, <strongid="b58395114518"><aname="b58395114518"></a><aname="b58395114518"></a>mlym</strong>, <strongid="b892713104513"><aname="b892713104513"></a><aname="b892713104513"></a>modi</strong>, <strongid="b16707823459"><aname="b16707823459"></a><aname="b16707823459"></a>mong</strong>, <strongid="b3484101194520"><aname="b3484101194520"></a><aname="b3484101194520"></a>mroo</strong>, <strongid="b154461204452"><aname="b154461204452"></a><aname="b154461204452"></a>mtei</strong>, <strongid="b18172759154417"><aname="b18172759154417"></a><aname="b18172759154417"></a>mymr</strong>, <strongid="b82845814443"><aname="b82845814443"></a><aname="b82845814443"></a>mymrshan</strong>, <strongid="b164205718442"><aname="b164205718442"></a><aname="b164205718442"></a>mymrtlng</strong>, <strongid="b8663122534418"><aname="b8663122534418"></a><aname="b8663122534418"></a>newa</strong>, <strongid="b111391041144417"><aname="b111391041144417"></a><aname="b111391041144417"></a>nkoo</strong>, <strongid="b124843426444"><aname="b124843426444"></a><aname="b124843426444"></a>olck</strong>, <strongid="b77851143114411"><aname="b77851143114411"></a><aname="b77851143114411"></a>orya</strong>, <strongid="b12972144164415"><aname="b12972144164415"></a><aname="b12972144164415"></a>osma</strong>, <strongid="b146814468446"><aname="b146814468446"></a><aname="b146814468446"></a>rohg</strong>, <strongid="b161990488444"><aname="b161990488444"></a><aname="b161990488444"></a>saur</strong>, <strongid="b55887516448"><aname="b55887516448"></a><aname="b55887516448"></a>segment</strong>, <strongid="b146836503443"><aname="b146836503443"></a><aname="b146836503443"></a>shrd</strong>, <strongid="b15477849144416"><aname="b15477849144416"></a><aname="b15477849144416"></a>sind</strong>, <strongid="b3155115310448"><aname="b3155115310448"></a><aname="b3155115310448"></a>sinh</strong>, <strongid="b1643055416448"><aname="b1643055416448"></a><aname="b1643055416448"></a>sora</strong>, <strongid="b1282095512444"><aname="b1282095512444"></a><aname="b1282095512444"></a>sund</strong>, <strongid="b965592694415"><aname="b965592694415"></a><aname="b965592694415"></a>takr</strong>, <strongid="b33171228114416"><aname="b33171228114416"></a><aname="b33171228114416"></a>talu</strong>, <strongid="b58803064419"><aname="b58803064419"></a><aname="b58803064419"></a>tamldec</strong>, <strongid="b8752631134414"><aname="b8752631134414"></a><aname="b8752631134414"></a>telu</strong>, <strongid="b333123394417"><aname="b333123394417"></a><aname="b333123394417"></a>thai</strong>, <strongid="b20611334144414"><aname="b20611334144414"></a><aname="b20611334144414"></a>tibt</strong>, <strongid="b20948335184415"><aname="b20948335184415"></a><aname="b20948335184415"></a>tirh</strong>, <strongid="b18452193716447"><aname="b18452193716447"></a><aname="b18452193716447"></a>vaii</strong>, <strongid="b5681238174410"><aname="b5681238174410"></a><aname="b5681238174410"></a>wara</strong>, and <strongid="b995703944412"><aname="b995703944412"></a><aname="b995703944412"></a>wcho</strong>.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p133091924181620"><aname="p133091924181620"></a><aname="p133091924181620"></a>A string containing locale information, including the language, optional script, and locale.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p6309202413162"><aname="p6309202413162"></a><aname="p6309202413162"></a>Options of the <strongid="b1971631024419"><aname="b1971631024419"></a><aname="b1971631024419"></a>NumberFormat</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var numfmt = new Intl.NumberFormat("en-GB", {style:'decimal', notation:"scientific"});
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p12781024121115"><aname="p12781024121115"></a><aname="p12781024121115"></a>Locale, for example, <strongid="b102881715194619"><aname="b102881715194619"></a><aname="b102881715194619"></a>zh-Hans-CN</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p4532135152710"><aname="p4532135152710"></a><aname="p4532135152710"></a>Hour cycle. The value can be <strongid="b74813597718"><aname="b74813597718"></a><aname="b74813597718"></a>h11</strong>, <strongid="b816924486"><aname="b816924486"></a><aname="b816924486"></a>h12</strong>, <strongid="b18410665814"><aname="b18410665814"></a><aname="b18410665814"></a>h23</strong>, or <strongid="b65635131782"><aname="b65635131782"></a><aname="b65635131782"></a>h24</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p4532135152710"><aname="p4532135152710"></a><aname="p4532135152710"></a>Time system for the locale. The value can be <strongid="b74813597718"><aname="b74813597718"></a><aname="b74813597718"></a>h11</strong>, <strongid="b816924486"><aname="b816924486"></a><aname="b816924486"></a>h12</strong>, <strongid="b18410665814"><aname="b18410665814"></a><aname="b18410665814"></a>h23</strong>, or <strongid="b65635131782"><aname="b65635131782"></a><aname="b65635131782"></a>h24</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p112021341446"><aname="p112021341446"></a><aname="p112021341446"></a>Currency for the specified locale.</p>
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p6309202413162"><a name="p6309202413162"></a><a name="p6309202413162"></a>Options for creating a <strong id="b1971631024419"><a name="b1971631024419"></a><a name="b1971631024419"></a>NumberFormat</strong> object.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p15225393313"><aname="p15225393313"></a><aname="p15225393313"></a>Currency display mode. The value can be <strongid="b166165019292"><aname="b166165019292"></a><aname="b166165019292"></a>symbol</strong>, <strongid="b86561052142914"><aname="b86561052142914"></a><aname="b86561052142914"></a>narrowSymbol</strong>, <strongid="b35020562295"><aname="b35020562295"></a><aname="b35020562295"></a>code</strong>, or <strongid="b19851200143017"><aname="b19851200143017"></a><aname="b19851200143017"></a>name</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p8758119193219"><aname="p8758119193219"></a><aname="p8758119193219"></a>Currency unit display format. The value can be <strongid="b951522863410"><aname="b951522863410"></a><aname="b951522863410"></a>long</strong>, <strongid="b352212803414"><aname="b352212803414"></a><aname="b352212803414"></a>short</strong>, or <strongid="b6522172812347"><aname="b6522172812347"></a><aname="b6522172812347"></a>medium</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p8689133923516"><aname="p8689133923516"></a><aname="p8689133923516"></a>Locale, for example, <strongid="b19118162894619"><aname="b19118162894619"></a><aname="b19118162894619"></a>zh-Hans-CN</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p112021341446"><aname="p112021341446"></a><aname="p112021341446"></a>Currency unit, for example, <strongid="b12457545486"><aname="b12457545486"></a><aname="b12457545486"></a>EUR</strong>, <strongid="b64587414813"><aname="b64587414813"></a><aname="b64587414813"></a>CNY</strong>, or <strongid="b54584494818"><aname="b54584494818"></a><aname="b54584494818"></a>USD</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p416563763115"><aname="p416563763115"></a><aname="p416563763115"></a>Currency unit symbol. The value can be <strongid="b164291039184719"><aname="b164291039184719"></a><aname="b164291039184719"></a>symbol</strong>, <strongid="b164441164714"><aname="b164441164714"></a><aname="b164441164714"></a>narrowSymbol</strong>, <strongid="b3388194264718"><aname="b3388194264718"></a><aname="b3388194264718"></a>code</strong>, or <strongid="b136441643144710"><aname="b136441643144710"></a><aname="b136441643144710"></a>name</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p15225393313"><aname="p15225393313"></a><aname="p15225393313"></a>Currency display mode. The value can be <strongid="b166165019292"><aname="b166165019292"></a><aname="b166165019292"></a>symbol</strong>, <strongid="b86561052142914"><aname="b86561052142914"></a><aname="b86561052142914"></a>narrowSymbol</strong>, <strongid="b35020562295"><aname="b35020562295"></a><aname="b35020562295"></a>code</strong>, or <strongid="b19851200143017"><aname="b19851200143017"></a><aname="b19851200143017"></a>name</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p2499410317"><aname="p2499410317"></a><aname="p2499410317"></a>Unit name, for example, <strongid="b184611418134816"><aname="b184611418134816"></a><aname="b184611418134816"></a>meter</strong>, <strongid="b155751719124813"><aname="b155751719124813"></a><aname="b155751719124813"></a>inch</strong>, or <strongid="b118611820184814"><aname="b118611820184814"></a><aname="b118611820184814"></a>hectare</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p8758119193219"><aname="p8758119193219"></a><aname="p8758119193219"></a>Unit display format. The value can be <strongid="b951522863410"><aname="b951522863410"></a><aname="b951522863410"></a>long</strong>, <strongid="b352212803414"><aname="b352212803414"></a><aname="b352212803414"></a>short</strong>, or <strongid="b6522172812347"><aname="b6522172812347"></a><aname="b6522172812347"></a>medium</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p9673182115319"><aname="p9673182115319"></a><aname="p9673182115319"></a>Unit use case. The value can be any of the following: <strongid="b198241928114915"><aname="b198241928114915"></a><aname="b198241928114915"></a>default</strong>, <strongid="b9782163255015"><aname="b9782163255015"></a><aname="b9782163255015"></a>area-land-agricult</strong>, <strongid="b569422805016"><aname="b569422805016"></a><aname="b569422805016"></a>area-land-commercl</strong>, <strongid="b1716218239505"><aname="b1716218239505"></a><aname="b1716218239505"></a>area-land-residntl</strong>, <strongid="b7274525125011"><aname="b7274525125011"></a><aname="b7274525125011"></a>length-person</strong>, <strongid="b31216407506"><aname="b31216407506"></a><aname="b31216407506"></a>length-person-small</strong>, <strongid="b12400164245015"><aname="b12400164245015"></a><aname="b12400164245015"></a>length-rainfall</strong>, <strongid="b13888154455014"><aname="b13888154455014"></a><aname="b13888154455014"></a>length-road</strong>, <strongid="b104001548115017"><aname="b104001548115017"></a><aname="b104001548115017"></a>length-road-small</strong>, <strongid="b08888714507"><aname="b08888714507"></a><aname="b08888714507"></a>length-snowfall</strong>, <strongid="b19361451165013"><aname="b19361451165013"></a><aname="b19361451165013"></a>length-vehicle</strong>, <strongid="b149381648504"><aname="b149381648504"></a><aname="b149381648504"></a>length-visiblty</strong>, <strongid="b188073025016"><aname="b188073025016"></a><aname="b188073025016"></a>length-visiblty-small</strong>, <strongid="b16415115754914"><aname="b16415115754914"></a><aname="b16415115754914"></a>length-person-informal</strong>, <strongid="b12793195324910"><aname="b12793195324910"></a><aname="b12793195324910"></a>length-person-small-informal</strong>, <strongid="b2023424813498"><aname="b2023424813498"></a><aname="b2023424813498"></a>length-road-informal</strong>, <strongid="b1297273994918"><aname="b1297273994918"></a><aname="b1297273994918"></a>speed-road-travel</strong>, <strongid="b7416204214495"><aname="b7416204214495"></a><aname="b7416204214495"></a>speed-wind</strong>, <strongid="b48644624917"><aname="b48644624917"></a><aname="b48644624917"></a>temperature-person</strong>, <strongid="b83961637184916"><aname="b83961637184916"></a><aname="b83961637184916"></a>temperature-weather</strong>, and <strongid="b19148123215491"><aname="b19148123215491"></a><aname="b19148123215491"></a>volume-vehicle-fuel</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1639665815311"><aname="p1639665815311"></a><aname="p1639665815311"></a>Whether to enable grouping for display.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1639665815311"><aname="p1639665815311"></a><aname="p1639665815311"></a>Whether to use grouping for display.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p372995623120"><aname="p372995623120"></a><aname="p372995623120"></a>Minimum number of integer digits.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1816915914299"><aname="p1816915914299"></a><aname="p1816915914299"></a>Minimum number of digits allowed in the integer part of a number. The value ranges from <strongid="b101801936183911"><aname="b101801936183911"></a><aname="b101801936183911"></a>1</strong> to <strongid="b1071513717399"><aname="b1071513717399"></a><aname="b1071513717399"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p19189195053112"><aname="p19189195053112"></a><aname="p19189195053112"></a>Minimum number of fraction digits.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1287821073012"><aname="p1287821073012"></a><aname="p1287821073012"></a>Minimum number of digits in the fraction part of a number. The value ranges from <strongid="b2088115413453"><aname="b2088115413453"></a><aname="b2088115413453"></a>0</strong> to <strongid="b1933025674516"><aname="b1933025674516"></a><aname="b1933025674516"></a>20</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1866154811315"><aname="p1866154811315"></a><aname="p1866154811315"></a>Maximum number of fraction digits.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1723192113302"><aname="p1723192113302"></a><aname="p1723192113302"></a>Maximum number of digits in the fraction part of a number. The value ranges from <strongid="b133767377540"><aname="b133767377540"></a><aname="b133767377540"></a>1</strong> to <strongid="b17376103717545"><aname="b17376103717545"></a><aname="b17376103717545"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p81919438317"><aname="p81919438317"></a><aname="p81919438317"></a>Minimum number of significant digits.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p492643083012"><aname="p492643083012"></a><aname="p492643083012"></a>Minimum number of the least significant digits. The value ranges from <strongid="b1066413266184"><aname="b1066413266184"></a><aname="b1066413266184"></a>1</strong> to <strongid="b1674382721812"><aname="b1674382721812"></a><aname="b1674382721812"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p11418457317"><aname="p11418457317"></a><aname="p11418457317"></a>Maximum number of significant digits.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p9826164011305"><aname="p9826164011305"></a><aname="p9826164011305"></a>Maximum number of the least significant digits. The value ranges from <strongid="b17992744161819"><aname="b17992744161819"></a><aname="b17992744161819"></a>1</strong> to <strongid="b2992144451817"><aname="b2992144451817"></a><aname="b2992144451817"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p12599175415019"><aname="p12599175415019"></a><aname="p12599175415019"></a>A string containing locale information, including the language, optional script, and locale.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p115991454502"><aname="p115991454502"></a><aname="p115991454502"></a>Options for creating a <strongid="b9299182502014"><aname="b9299182502014"></a><aname="b9299182502014"></a>Collator</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var collator = new Intl.Collator("zh-CN", {"localeMatcher": "lookup", "usage": "sort"});
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p16564185893810"><a name="p16564185893810"></a><a name="p16564185893810"></a>Comparison result. If the value is a negative number, the first string is before the second string. If the value of number is <strong id="b1849452404716"><a name="b1849452404716"></a><a name="b1849452404716"></a>0</strong>, the first string is equal to the second string. If the value of number is a positive number, the first string is after the second string.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p17265540445"><aname="p17265540445"></a><aname="p17265540445"></a>Locale matching algorithm. The value can be <strongid="b8012135310"><aname="b8012135310"></a><aname="b8012135310"></a>lookup</strong> or <strongid="b1522311395310"><aname="b1522311395310"></a><aname="b1522311395310"></a>best fit</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p2727125414441"><aname="p2727125414441"></a><aname="p2727125414441"></a>Whether the comparison is for sorting or for searching. The value can be <strongid="b77011012115817"><aname="b77011012115817"></a><aname="b77011012115817"></a>sort</strong> or <strongid="b5865118135813"><aname="b5865118135813"></a><aname="b5865118135813"></a>search</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p18727155414445"><aname="p18727155414445"></a><aname="p18727155414445"></a>Differences in the strings that lead to non-zero return values. The value can be <strongid="b3397820257"><aname="b3397820257"></a><aname="b3397820257"></a>base</strong>, <strongid="b3629201610510"><aname="b3629201610510"></a><aname="b3629201610510"></a>accent</strong>, <strongid="b16792189353"><aname="b16792189353"></a><aname="b16792189353"></a>case</strong>, or <strongid="b1413413810515"><aname="b1413413810515"></a><aname="b1413413810515"></a>variant</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p9727754134412"><aname="p9727754134412"></a><aname="p9727754134412"></a>Whether punctuation is ignored. The value can be <strongid="b21098284611"><aname="b21098284611"></a><aname="b21098284611"></a>true</strong> or <strongid="b433311291767"><aname="b433311291767"></a><aname="b433311291767"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p0728254114411"><aname="p0728254114411"></a><aname="p0728254114411"></a>Sorting policy. The value can be any of the following: <strongid="b107216261374"><aname="b107216261374"></a><aname="b107216261374"></a>big5han</strong>, <strongid="b1853152516719"><aname="b1853152516719"></a><aname="b1853152516719"></a>compat</strong>, <strongid="b2886327076"><aname="b2886327076"></a><aname="b2886327076"></a>dict</strong>, <strongid="b1523162913713"><aname="b1523162913713"></a><aname="b1523162913713"></a>direct</strong>, <strongid="b940618222719"><aname="b940618222719"></a><aname="b940618222719"></a>ducet</strong>, <strongid="b1852022113712"><aname="b1852022113712"></a><aname="b1852022113712"></a>eor</strong>, <strongid="b1024415201718"><aname="b1024415201718"></a><aname="b1024415201718"></a>gb2312</strong>, <strongid="b292063015711"><aname="b292063015711"></a><aname="b292063015711"></a>phonebk</strong>, <strongid="b1035611323715"><aname="b1035611323715"></a><aname="b1035611323715"></a>phonetic</strong>, <strongid="b158911331279"><aname="b158911331279"></a><aname="b158911331279"></a>pinyin</strong>, <strongid="b69901034372"><aname="b69901034372"></a><aname="b69901034372"></a>reformed</strong>, <strongid="b19248336377"><aname="b19248336377"></a><aname="b19248336377"></a>searchjl</strong>, <strongid="b310583813720"><aname="b310583813720"></a><aname="b310583813720"></a>stroke</strong>, <strongid="b17644839276"><aname="b17644839276"></a><aname="b17644839276"></a>trad</strong>, <strongid="b20863640873"><aname="b20863640873"></a><aname="b20863640873"></a>unihan</strong>, and <strongid="b117413189718"><aname="b117413189718"></a><aname="b117413189718"></a>zhuyin</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p4728185411441"><aname="p4728185411441"></a><aname="p4728185411441"></a>Whether numeric collation is used. The value can be <strongid="b20979351189"><aname="b20979351189"></a><aname="b20979351189"></a>true</strong> or <strongid="b5976351281"><aname="b5976351281"></a><aname="b5976351281"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p15728165414442"><aname="p15728165414442"></a><aname="p15728165414442"></a>Whether upper case or lower case is sorted first. The value can be <strongid="b9136115715911"><aname="b9136115715911"></a><aname="b9136115715911"></a>upper</strong>, <strongid="b17959711100"><aname="b17959711100"></a><aname="b17959711100"></a>lower</strong>, or <strongid="b15857137201011"><aname="b15857137201011"></a><aname="b15857137201011"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p0628344161114"><aname="p0628344161114"></a><aname="p0628344161114"></a>A string containing locale information, including the language, optional script, and locale.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p2629134411115"><aname="p2629134411115"></a><aname="p2629134411115"></a>Options for creating a <strongid="b951941519119"><aname="b951941519119"></a><aname="b951941519119"></a>PluralRules</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var pluralRules= new Intl.PluraRules("zh-CN", {"localeMatcher": "lookup", "type": "cardinal"});
<td class="cellrowborder" valign="top" width="59.61742826780022%" headers="mcps1.1.5.1.4 "><p id="p101692039174312"><a name="p101692039174312"></a><a name="p101692039174312"></a>Number for which the singular-plural type is to be obtained.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p781453518814"><aname="p781453518814"></a><aname="p781453518814"></a>Locale matching algorithm. The value can be <strongid="b23681479211"><aname="b23681479211"></a><aname="b23681479211"></a>lookup</strong> or <strongid="b621814499210"><aname="b621814499210"></a><aname="b621814499210"></a>best fit</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p781416351785"><aname="p781416351785"></a><aname="p781416351785"></a>Sorting type. The value can be <strongid="b982732712225"><aname="b982732712225"></a><aname="b982732712225"></a>cardinal</strong> or <strongid="b31202035112217"><aname="b31202035112217"></a><aname="b31202035112217"></a>ordinal</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p188158351084"><aname="p188158351084"></a><aname="p188158351084"></a>Minimum number of digits allowed in the integer part of a number. The value ranges from <strongid="b113900459227"><aname="b113900459227"></a><aname="b113900459227"></a>1</strong> to <strongid="b839674520221"><aname="b839674520221"></a><aname="b839674520221"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p4815123517813"><aname="p4815123517813"></a><aname="p4815123517813"></a>Minimum number of digits in the fraction part of a number. The value ranges from <strongid="b17179105210224"><aname="b17179105210224"></a><aname="b17179105210224"></a>0</strong> to <strongid="b1018511524226"><aname="b1018511524226"></a><aname="b1018511524226"></a>20</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1181583515811"><aname="p1181583515811"></a><aname="p1181583515811"></a>Maximum number of digits in the fraction part of a number. The value ranges from <strongid="b7831105412211"><aname="b7831105412211"></a><aname="b7831105412211"></a>1</strong> to <strongid="b1583185462220"><aname="b1583185462220"></a><aname="b1583185462220"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p14816113510816"><aname="p14816113510816"></a><aname="p14816113510816"></a>Minimum number of the least significant digits. The value ranges from <strongid="b158681056172216"><aname="b158681056172216"></a><aname="b158681056172216"></a>1</strong> to <strongid="b686917568221"><aname="b686917568221"></a><aname="b686917568221"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p68161435287"><aname="p68161435287"></a><aname="p68161435287"></a>Maximum number of the least significant digits. The value ranges from <strongid="b11755917223"><aname="b11755917223"></a><aname="b11755917223"></a>1</strong> to <strongid="b177359192215"><aname="b177359192215"></a><aname="b177359192215"></a>21</strong>.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p49249104184"><aname="p49249104184"></a><aname="p49249104184"></a>A string containing locale information, including the language, optional script, and locale.</p>
<tdclass="cellrowborder"valign="top"width="59.61742826780022%"headers="mcps1.1.5.1.4 "><pid="p10924121010188"><aname="p10924121010188"></a><aname="p10924121010188"></a>Options for creating a <strongid="b17306422182713"><aname="b17306422182713"></a><aname="b17306422182713"></a>RelativeTimeFormat</strong> object.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {"localeMatcher": "lookup", "numeric": "always", "style": "long"});
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p1666594462010"><aname="p1666594462010"></a><aname="p1666594462010"></a>Locale matching algorithm. The value can be <strongid="b767412210320"><aname="b767412210320"></a><aname="b767412210320"></a>lookup</strong> or <strongid="b16680722932"><aname="b16680722932"></a><aname="b16680722932"></a>best fit</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p86661344162020"><aname="p86661344162020"></a><aname="p86661344162020"></a>Format of the output message. The value can be <strongid="b0481258238"><aname="b0481258238"></a><aname="b0481258238"></a>always</strong> or <strongid="b15389132745"><aname="b15389132745"></a><aname="b15389132745"></a>auto</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p966794419201"><aname="p966794419201"></a><aname="p966794419201"></a>Length of the internationalized message. The value can be <strongid="b1373134714816"><aname="b1373134714816"></a><aname="b1373134714816"></a>long</strong>, <strongid="b11972481385"><aname="b11972481385"></a><aname="b11972481385"></a>short</strong>, or <strongid="b1351664912810"><aname="b1351664912810"></a><aname="b1351664912810"></a>narrow</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p14561269443"><aname="p14561269443"></a><aname="p14561269443"></a>A string containing locale information, including the language, optional script, and locale.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p61005854317"><aname="p61005854317"></a><aname="p61005854317"></a>Format of the output message. The value can be <strongid="b1150713718510"><aname="b1150713718510"></a><aname="b1150713718510"></a>always</strong> or <strongid="b195131471458"><aname="b195131471458"></a><aname="b195131471458"></a>auto</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52.449999999999996%"headers="mcps1.1.6.1.5 "><pid="p191008814318"><aname="p191008814318"></a><aname="p191008814318"></a>Length of the internationalized message. The value can be <strongid="b1782351519610"><aname="b1782351519610"></a><aname="b1782351519610"></a>long</strong>, <strongid="b59781217963"><aname="b59781217963"></a><aname="b59781217963"></a>short</strong>, or <strongid="b46725196613"><aname="b46725196613"></a><aname="b46725196613"></a>narrow</strong>.</p>
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
<tdclass="cellrowborder"valign="top"width="47.94%"headers="mcps1.1.6.1.5 "><pid="p12456257145411"><aname="p12456257145411"></a><aname="p12456257145411"></a>An array with supplementary group IDs.</p>
<tdclass="cellrowborder"valign="top"width="47.94%"headers="mcps1.1.6.1.5 "><pid="p12456257145411"><aname="p12456257145411"></a><aname="p12456257145411"></a>Array with supplementary group IDs.</p>
<tdclass="cellrowborder"valign="top"width="47.94%"headers="mcps1.1.6.1.5 "><pid="p2050111216567"><aname="p2050111216567"></a><aname="p2050111216567"></a>Parent process ID (PPID) of a process.</p>
<tdclass="cellrowborder"valign="top"width="47.94%"headers="mcps1.1.6.1.5 "><pid="p2050111216567"><aname="p2050111216567"></a><aname="p2050111216567"></a>Parent process ID (PPID) of a process.</p>
<tdclass="cellrowborder"valign="top"width="47.94%"headers="mcps1.1.6.1.5 "><pid="p16834532191011"><aname="p16834532191011"></a><aname="p16834532191011"></a>Thread ID (TID) of a process.</p>
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
## ChildProcess<a name="section6521387200"></a>
## ChildProcess<a name="section6521387200"></a>
Allows a process to obtain the standard input and output of its child processes, send signals, and close its child processes.
Provides methods for a process to obtain the standard input and output of its child processes, send signals, and close its child processes.
<td class="cellrowborder" valign="top" width="79.01%" headers="mcps1.1.3.1.2 "><p id="p104402911252"><a name="p104402911252"></a><a name="p104402911252"></a>Number of cores available for the process.</p>
<td class="cellrowborder" valign="top" width="79.01%" headers="mcps1.1.3.1.2 "><p id="p7207194141914"><a name="p7207194141914"></a><a name="p7207194141914"></a>Whether the signal is sent successfully.</p>
<td class="cellrowborder" valign="top" width="79.01%" headers="mcps1.1.3.1.2 "><p id="p7207194141914"><a name="p7207194141914"></a><a name="p7207194141914"></a>Returns <strong id="b5691160144712"><a name="b5691160144712"></a><a name="b5691160144712"></a>true</strong> if the signal is sent successfully; returns <strong id="b5409191810479"><a name="b5409191810479"></a><a name="b5409191810479"></a>false</strong> otherwise.</p>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -769,7 +1199,6 @@ Sends a signal to the specified process to terminate it.
...
@@ -769,7 +1199,6 @@ Sends a signal to the specified process to terminate it.
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
<td class="cellrowborder" valign="top" width="52.260000000000005%" headers="mcps1.1.5.1.4 "><p id="p12534335162410"><a name="p12534335162410"></a><a name="p12534335162410"></a>Asynchronous callback used to return the result.</p>
<td class="cellrowborder" valign="top" width="83.50999999999999%" headers="mcps1.1.3.1.2 "><p id="p3453185521713"><a name="p3453185521713"></a><a name="p3453185521713"></a>Promise used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p8526323195"><aname="p8526323195"></a><aname="p8526323195"></a>ID of the reminder to cancel.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p10241193191015"><aname="p10241193191015"></a><aname="p10241193191015"></a>Asynchronous callback used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p15521284588"><aname="p15521284588"></a><aname="p15521284588"></a>ID of the reminder to cancel.</p>
<tdclass="cellrowborder"valign="top"width="83.50999999999999%"headers="mcps1.1.3.1.2 "><pid="p9638101412116"><aname="p9638101412116"></a><aname="p9638101412116"></a>Promise used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p9450122531318"><aname="p9450122531318"></a><aname="p9450122531318"></a>Asynchronous callback used to return an array of all valid reminders set by the current application.</p>
<tdclass="cellrowborder"valign="top"width="64.58%"headers="mcps1.1.3.1.2 "><pid="p5709101715414"><aname="p5709101715414"></a><aname="p5709101715414"></a>Promise used to return an array of all valid reminders set by the current application.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p13748123131616"><aname="p13748123131616"></a><aname="p13748123131616"></a>Asynchronous callback used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="83.50999999999999%"headers="mcps1.1.3.1.2 "><pid="p10909141313310"><aname="p10909141313310"></a><aname="p10909141313310"></a>Promise used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p9553101593"><aname="p9553101593"></a><aname="p9553101593"></a>Asynchronous callback used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="83.50999999999999%"headers="mcps1.1.3.1.2 "><pid="p69521686215"><aname="p69521686215"></a><aname="p69521686215"></a>Promise used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p38371711181913"><aname="p38371711181913"></a><aname="p38371711181913"></a>Type of the reminder notification slot to remove.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p13632804203"><aname="p13632804203"></a><aname="p13632804203"></a>Asynchronous callback used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p72081335131013"><aname="p72081335131013"></a><aname="p72081335131013"></a>Type of the reminder notification slot to remove.</p>
<tdclass="cellrowborder"valign="top"width="83.50999999999999%"headers="mcps1.1.3.1.2 "><pid="p159379302215"><aname="p159379302215"></a><aname="p159379302215"></a>Promise used to return the result.</p>
<tdclass="cellrowborder"valign="top"width="59.67%"headers="mcps1.1.4.1.3 "><pid="p328012293211"><aname="p328012293211"></a><aname="p328012293211"></a>Button for closing the reminder.</p>
<tdclass="cellrowborder"valign="top"width="59.67%"headers="mcps1.1.4.1.3 "><pid="p15865395215"><aname="p15865395215"></a><aname="p15865395215"></a>Button for snoozing the reminder.</p>
<tdclass="cellrowborder"valign="top"width="59.245924592459254%"headers="mcps1.1.5.1.4 "><pid="p109351224253"><aname="p109351224253"></a><aname="p109351224253"></a>Text on the button.</p>
<tdclass="cellrowborder"valign="top"width="42.94%"headers="mcps1.1.5.1.4 "><pid="p11032371372"><aname="p11032371372"></a><aname="p11032371372"></a>Name of the package redirected to when the reminder notification is clicked.</p>
<tdclass="cellrowborder"valign="top"width="42.94%"headers="mcps1.1.5.1.4 "><pid="p110323723719"><aname="p110323723719"></a><aname="p110323723719"></a>Name of the ability that is redirected to when the reminder notification is clicked.</p>
Sets the name of the target package and ability to start automatically when the reminder arrives and the device is not in use. If the device is in use, a notification will be displayed.
<tdclass="cellrowborder"valign="top"width="52.56999999999999%"headers="mcps1.1.5.1.4 "><pid="p06713419449"><aname="p06713419449"></a><aname="p06713419449"></a>Name of the package that is automatically started when the reminder arrives and the device is not in use.</p>
<tdclass="cellrowborder"valign="top"width="52.56999999999999%"headers="mcps1.1.5.1.4 "><pid="p1067124114413"><aname="p1067124114413"></a><aname="p1067124114413"></a>Name of the ability that is automatically started when the reminder arrives and the device is not in use.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p189097154319"><aname="p189097154319"></a><aname="p189097154319"></a>Type of the reminder.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p290916157310"><aname="p290916157310"></a><aname="p290916157310"></a>Action button displayed in the reminder notification. (The parameter is optional. Up to two buttons are supported.)</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p39099154310"><aname="p39099154310"></a><aname="p39099154310"></a>Information about the ability that is redirected to when the notification is clicked.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p1590971511318"><aname="p1590971511318"></a><aname="p1590971511318"></a>Information about the ability that is automatically started when the reminder arrives. If the device is in use, a notification will be displayed.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p1133019297412"><aname="p1133019297412"></a><aname="p1133019297412"></a>Content to be displayed after the reminder expires.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p144369238411"><aname="p144369238411"></a><aname="p144369238411"></a>Content to be displayed when the reminder is snoozing.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p1408226147"><aname="p1408226147"></a><aname="p1408226147"></a>Notification ID used by the reminder. If there are reminders with the same notification ID, the later one will overwrite the earlier one.</p>
<tdclass="cellrowborder"valign="top"width="34.79%"headers="mcps1.1.5.1.4 "><pid="p38051918641"><aname="p38051918641"></a><aname="p38051918641"></a>Type of the slot used by the reminder.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p1949464352118"><aname="p1949464352118"></a><aname="p1949464352118"></a>Month in which the reminder repeats.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p18494164317214"><aname="p18494164317214"></a><aname="p18494164317214"></a>Date on which the reminder repeats.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p654235218243"><aname="p654235218243"></a><aname="p654235218243"></a>Hour portion of the reminder time.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p1254265213248"><aname="p1254265213248"></a><aname="p1254265213248"></a>Minute portion of the reminder time.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p125422524244"><aname="p125422524244"></a><aname="p125422524244"></a>Days of a week when the reminder repeats.</p>
<tdclass="cellrowborder"valign="top"width="25%"headers="mcps1.1.5.1.4 "><pid="p7416133915270"><aname="p7416133915270"></a><aname="p7416133915270"></a>Number of seconds in the countdown timer.</p>
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
```
```
...
@@ -362,8 +362,6 @@ Enumerates screen density types.
...
@@ -362,8 +362,6 @@ Enumerates screen density types.
>- The methods involved in **ResourceManager** are applicable only to the TypeScript-based declarative development paradigm.
>- Resource files are defined in the **resources** directory of the project. You can obtain the resource ID from **$r\(resource address\).id**, for example, **$r\(?app.string.test?\).id**.
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p139301144153915"><a name="p139301144153915"></a><a name="p139301144153915"></a>Array of character strings corresponding to the specified resource ID.</p>
<td class="cellrowborder" valign="top" width="79.95%" headers="mcps1.1.3.1.2 "><p id="p139301144153915"><a name="p139301144153915"></a><a name="p139301144153915"></a>Array of strings corresponding to the specified resource ID.</p>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -673,7 +673,7 @@ Obtains the array of strings corresponding to the specified resource ID. This me
...
@@ -673,7 +673,7 @@ Obtains the array of strings corresponding to the specified resource ID. This me
<td class="cellrowborder" valign="top" width="76.98%" headers="mcps1.1.3.1.2 "><p id="p8713192517405"><a name="p8713192517405"></a><a name="p8713192517405"></a>Promise used to return the content of the obtained media file.</p>
<td class="cellrowborder" valign="top" width="76.98%" headers="mcps1.1.3.1.2 "><p id="p8713192517405"><a name="p8713192517405"></a><a name="p8713192517405"></a>Promise used to return the content of the obtained media file.</p>
</td>
</td>
...
@@ -789,7 +789,7 @@ Obtains the content of the media file corresponding to the specified resource ID
...
@@ -789,7 +789,7 @@ Obtains the content of the media file corresponding to the specified resource ID
<td class="cellrowborder" valign="top" width="59.713561964146535%" headers="mcps1.1.5.1.4 "><p id="p150864719611"><a name="p150864719611"></a><a name="p150864719611"></a> Asynchronous callback used to return the rawfile content, in byte arrays.</p>
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.1.3.1.2 "><p id="p43128317109"><a name="p43128317109"></a><a name="p43128317109"></a> Promise used to return the rawfile content, in byte arrays.</p>
>The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="section2080512344162"></a>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p72131224114411"><aname="p72131224114411"></a><aname="p72131224114411"></a>Protocol in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p12865829133514"><aname="p12865829133514"></a><aname="p12865829133514"></a>User information in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p737414373372"><aname="p737414373372"></a><aname="p737414373372"></a>Host name (without the port number) in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p3153171613242"><aname="p3153171613242"></a><aname="p3153171613242"></a>Port number in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p18565132916244"><aname="p18565132916244"></a><aname="p18565132916244"></a>Path in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1299814373714"><aname="p1299814373714"></a><aname="p1299814373714"></a>Query part in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p18527842143718"><aname="p18527842143718"></a><aname="p18527842143718"></a>Fragment part in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p1421614403377"><aname="p1421614403377"></a><aname="p1421614403377"></a>Authority part in the URI.</p>
<tdclass="cellrowborder"valign="top"width="52.42%"headers="mcps1.1.6.1.5 "><pid="p363383518374"><aname="p363383518374"></a><aname="p363383518374"></a>Scheme-specific part in the URI.</p>
>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
...
@@ -131,13 +131,13 @@ A constructor used to create a worker instance.
...
@@ -131,13 +131,13 @@ A constructor used to create a worker instance.
>The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="s56d19203690d4782bfc74069abb6bd71"></a>
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p19731837133019"><a name="p19731837133019"></a><a name="p19731837133019"></a><strong id="b176576351735"><a name="b176576351735"></a><a name="b176576351735"></a>ArrayBuffer</strong> or <strong id="b14983539439"><a name="b14983539439"></a><a name="b14983539439"></a>DataView</strong> for storing the XML information to write.</p>
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p2406248191315"><a name="p2406248191315"></a><a name="p2406248191315"></a>Name of the empty element to add.</p>
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.1.5.1.4 "><p id="p1564731811292"><a name="p1564731811292"></a><a name="p1564731811292"></a>Prefix of the element and its child elements.</p>
Creates and returns an **XmlPullParser** object. The **XmlPullParser** object passes two parameters. The first parameter is the memory of the **ArrayBuffer** or **DataView** type, and the second parameter is the file format \(UTF-8 by default\).
<tdclass="cellrowborder"valign="top"width="36.18%"headers="mcps1.1.5.1.4 "><pid="p15609259215"><aname="p15609259215"></a><aname="p15609259215"></a>Whether to ignore <strongid="b1456884321714"><aname="b1456884321714"></a><aname="b1456884321714"></a>Doctype</strong>. The default value is <strongid="b1626514489171"><aname="b1626514489171"></a><aname="b1626514489171"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="36.18%"headers="mcps1.1.5.1.4 "><pid="p1261012591114"><aname="p1261012591114"></a><aname="p1261012591114"></a>Whether to ignore <strongid="b649517181815"><aname="b649517181815"></a><aname="b649517181815"></a>Namespace</strong>. The default value is <strongid="b154747521819"><aname="b154747521819"></a><aname="b154747521819"></a>false</strong>.</p>
<tdclass="cellrowborder"valign="top"width="36.18%"headers="mcps1.1.5.1.4 "><pid="p1561095911110"><aname="p1561095911110"></a><aname="p1561095911110"></a>Callback used to return <strongid="b16819155133814"><aname="b16819155133814"></a><aname="b16819155133814"></a>tagValue</strong>.</p>
<tdclass="cellrowborder"valign="top"width="36.18%"headers="mcps1.1.5.1.4 "><pid="p1361010593112"><aname="p1361010593112"></a><aname="p1361010593112"></a>Callback used to return <strongid="b126354223386"><aname="b126354223386"></a><aname="b126354223386"></a>attributeValue</strong>.</p>
<tdclass="cellrowborder"valign="top"width="36.18%"headers="mcps1.1.5.1.4 "><pid="p156118592117"><aname="p156118592117"></a><aname="p156118592117"></a>Callback used to return <strongid="b1063617437387"><aname="b1063617437387"></a><aname="b1063617437387"></a>tokenValue</strong>.</p>
</td>
</tr>
</tbody>
</table>
## ParseInfo<a name="section436931815497"></a>
Provides methods to manage the parsed XML information.
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p820172175515"><aname="p820172175515"></a><aname="p820172175515"></a>Indicates an end document event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p27463438553"><aname="p27463438553"></a><aname="p27463438553"></a>Indicates a start tag event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p1279231415617"><aname="p1279231415617"></a><aname="p1279231415617"></a>Indicates an end tag event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p135559523569"><aname="p135559523569"></a><aname="p135559523569"></a>Indicates a text event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p11109135404716"><aname="p11109135404716"></a><aname="p11109135404716"></a>Indicates an XML comment event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p5109115444715"><aname="p5109115444715"></a><aname="p5109115444715"></a>Indicates an XML document type declaration event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p1685554515718"><aname="p1685554515718"></a><aname="p1685554515718"></a>Indicates an XML processing instruction event.</p>
<tdclass="cellrowborder"valign="top"width="58.809999999999995%"headers="mcps1.1.4.1.3 "><pid="p19990155145115"><aname="p19990155145115"></a><aname="p19990155145115"></a>Indicates a whitespace character event.</p>