• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# HiCollie_SetTimerParam
2
3
4## Overview
5
6Defines a struct for the parameters of the **OH_HiCollie_SetTimer** function.
7
8**Valid since**: 16
9
10**Related module**: [HiCollie](_hi_hicollie.md)
11
12
13## Summary
14
15
16### Member Variables
17
18| Name| Description|
19| -------- | -------- |
20| const char \* [name](#name) | Timer task name. |
21| unsigned int [timeout](#timeout) | Task timeout threshold, in seconds. |
22| [OH_HiCollie_Callback](_hi_hicollie.md#oh_hicollie_callback)[func](#func) | Callback executed when a timeout occurs. |
23| void \* [arg](#arg) | Parameters of the callback. |
24| [HiCollie_Flag](_hi_hicollie.md#hicollie_flag)[flag](#flag) | Execution to be performed when a timeout occurs. For details, see [HiCollie_Flag](_hi_hicollie.md#hicollie_flag). |
25
26
27## Member Variable Description
28
29
30### arg
31
32```
33void* HiCollie_SetTimerParam::arg
34```
35**Description**
36
37Parameters of the callback.
38
39
40### flag
41
42```
43HiCollie_Flag HiCollie_SetTimerParam::flag
44```
45**Description**
46
47Execution to be performed when a timeout occurs. For details, see [HiCollie_Flag](_hi_hicollie.md#hicollie_flag).
48
49
50### func
51
52```
53OH_HiCollie_Callback HiCollie_SetTimerParam::func
54```
55**Description**
56
57Callback executed when a timeout occurs.
58
59
60### name
61
62```
63const char* HiCollie_SetTimerParam::name
64```
65**Description**
66
67Timer task name.
68
69
70### timeout
71
72```
73unsigned int HiCollie_SetTimerParam::timeout
74```
75**Description**
76
77Task timeout threshold, in seconds.