OHOS-UICheckBox-OnChangeListener.md 3.9 KB
Newer Older
W
wenjun 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# OHOS::UICheckBox::OnChangeListener<a name="ZH-CN_TOPIC_0000001055039540"></a>

## **Overview**<a name="section1209685669093534"></a>

**Related Modules:**

[Graphic](Graphic.md)

**Description:**

Represents a listener for changes of a check box. 

This is an inner class of  **[UICheckBox](OHOS-UICheckBox.md)**. It contains a callback function to be invoked when the check box state changes.

**Since:**

1.0

**Version:**

1.0

## **Summary**<a name="section1154228997093534"></a>

## Public Member Functions<a name="pub-methods"></a>

<a name="table579415977093534"></a>
<table><thead align="left"><tr id="row456203717093534"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p580483457093534"><a name="p580483457093534"></a><a name="p580483457093534"></a>Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1357372324093534"><a name="p1357372324093534"></a><a name="p1357372324093534"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1303672093093534"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1173880181093534"><a name="p1173880181093534"></a><a name="p1173880181093534"></a><a href="Graphic.md#ga373b76d4ce1aea6380f42ce78ecd59c3">OnChange</a> (<a href="Graphic.md#ga15a3f0302aded0e4d1584ddc6002335d">UICheckBoxState</a> state)=0</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p2039914109093534"><a name="p2039914109093534"></a><a name="p2039914109093534"></a>virtual bool&nbsp;</p>
<p id="p283061467093534"><a name="p283061467093534"></a><a name="p283061467093534"></a>Called when the state of this check box is switched. This is a virtual function, which needs your implementation. </p>
</td>
</tr>
<tr id="row1998776076093534"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1330321932093534"><a name="p1330321932093534"></a><a name="p1330321932093534"></a><a href="Graphic.md#gab2e7f64e07e70975baa571660687f6a1">~OnChangeListener</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1033474272093534"><a name="p1033474272093534"></a><a name="p1033474272093534"></a>virtual&nbsp;</p>
<p id="p52464641093534"><a name="p52464641093534"></a><a name="p52464641093534"></a>A destructor used to delete the <strong id="b471754772093534"><a name="b471754772093534"></a><a name="b471754772093534"></a><a href="OHOS-UICheckBox-OnChangeListener.md">OnChangeListener</a></strong> instance. </p>
</td>
</tr>
<tr id="row1249898734093534"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1936030561093534"><a name="p1936030561093534"></a><a name="p1936030561093534"></a><a href="Graphic.md#ga4854963aa969ee20a6cd174a70f5cd23">operator new</a> (size_t size)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1541814359093534"><a name="p1541814359093534"></a><a name="p1541814359093534"></a>void *&nbsp;</p>
<p id="p1290795529093534"><a name="p1290795529093534"></a><a name="p1290795529093534"></a>Overrides the <strong id="b1753114081093534"><a name="b1753114081093534"></a><a name="b1753114081093534"></a>new</strong> function. </p>
</td>
</tr>
<tr id="row1703381025093534"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p188937255093534"><a name="p188937255093534"></a><a name="p188937255093534"></a><a href="Graphic.md#gadf1997a0f56ac2b220e7f0f8e8e0a6ef">operator delete</a> (void *p)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p424256689093534"><a name="p424256689093534"></a><a name="p424256689093534"></a>void&nbsp;</p>
<p id="p2016162646093534"><a name="p2016162646093534"></a><a name="p2016162646093534"></a>Overrides the <strong id="b1841944126093534"><a name="b1841944126093534"></a><a name="b1841944126093534"></a>delete</strong> function. </p>
</td>
</tr>
</tbody>
</table>