Home
last modified time | relevance | path

Searched refs:variable (Results 1 – 25 of 2610) sorted by relevance

12345678910>>...105

/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-provide-and-consume.md24 …d \@Consume can be bound using the same variable name or variable alias. Whenever possible, use th…
28 // Binding through the same variable name
32 // Binding through the same variable alias
47 …specified, the variable is provided under the alias name only. If the alias is not specified, the
167variable is used in a child component, the system checks the map for a matching \@Provide decorate…
168variable is similar to that of initializing the @State/@Link decorated variable. The @Consume deco…
170 2. When the \@Provide decorated variable is updated:
172variable is updated in all owning child components, all system components (**elementId**) that dep…
174 3. When the \@Consume decorated variable is updated:
265variable of the corresponding key when initializing the \@Consume variable, the framework throws a…
[all …]
H A Darkts-link.md4 An \@Link decorated variable creates two-way synchronization with a variable of its parent componen…
15 An \@Link decorated variable in a child component shares the same value with a variable in its pare…
23 …from an \@State, \@StorageLink, or \@Link decorated variable in the parent component to this varia…
33 …rted; can be used to initialize a regular variable or \@State, \@Link, \@Prop, or \@Provide decora…
114 An \@Link decorated variable shares the lifecycle of its owning component.
119variable of the parent component must be specified to initialize the child component's \@Link deco…
554variable **sourceNumber** is modified in \@Watch of \@Link to implement variable synchronization b…
653 …rate a state variable in a child component, ensure that the variable type is the same as the sourc…
800 …his.score** to re-render the UI by assigning a value to the variable and then calling the variable.
864variable is defined after the **build** function to initialize the \@Link decorated variable, the …
[all …]
H A Darkts-prop.md4 …ed between an \@Prop decorated variable a variable of its parent component. This means that, an \@…
44 …n be used for initialization of a regular variable or \@State, \@Link, \@Prop, or \@Provide decora…
118variable in the parent component is used to initialize an \@Prop decorated variable in the child c…
119 …ver, any change to the @Prop decorated variable does not affect the value of its source @State dec…
121 - The source and \@Prop decorated variable must be of the same type. The \@Prop decorated variable
189 2. The @Prop decorated variable is initialized.
261 …ted, its @Prop decorated **count** variable is initialized from the \@State decorated **countDownS…
933 @Prop fruit: Commodity; // The state variable is not initialized locally.
976 @Prop fruit: Commodity; // The state variable is not initialized locally.
988 @Prop fruit: Commodity = new Commodity(1); // The state variable is initialized locally.
[all …]
H A Darkts-watch.md4 …our application needs watch for value changes of a state variable, you can decorate the variable w…
25 | Called when| The variable changes and is assigned a value. For details, see [Time for \@Watch to …
38 2. The \@Watch callback is executed synchronously after the variable change in the custom component.
40 3. If the \@Watch callback mutates other watched variables, their variable @Watch callbacks in the …
42variable initialization, because initialization is not considered as variable mutation. A \@Watch …
47 …ectly or indirectly mutating the same variable. To avoid loops, do not mutate the \@Watch decorate…
143variable **count**, \@Prop in the child component **TotalView** is updated, and its **\@Watch('onC…
150 This example illustrates how to watch an \@Link decorated variable in a child component.
217 2. The value of the \@Link decorated variable **BasketViewer shopBasket** changes.
225variable changes, this example uses the \@Link and \@ObjectLink decorators in the child component …
[all …]
H A Darkts-new-local.md3 You can use \@Local, a variable decorator in state management V2, to observe the variable changes i…
16 - When a variable decorated by \@Local changes, the component that uses the variable is re-rendered.
20variable it decorates. If the decorated variable is of the simple type, it can observe value chang…
68 | Initial value for the decorated variable| Local initialization is required. External initializati…
79 …ted by \@Local are observable. When a decorated variable changes, the UI component bound to the va…
81 - When the decorated variable is of boolean, string, or number type, value changes to the variable
97 // When @Local decorates a simple type, it can observe value changes to the variable.
150 - When the decorated variable is of a simple array type, changes of the entire array or its items c…
228 // Because the originInfo variable is decorated by @Local, it can be observed.
242 - When the decorated variable is of a built-in type, you can observe the overall value changes of t…
[all …]
H A Darkts-state-management-overview.md18 …onents have variables. A variable must be decorated by a decorator whenever the re-rendering of th…
31variable: a variable decorated by a state decorator. Its value change will trigger UI re-renders. …
33variable: a variable that is not decorated by a state decorator and is usually used for auxiliary …
65 …tialization: a process where a value is assigned to a variable as its default value in the variabl…
106 …ed variable holds the state of the owning component. It can be the source of one- or two-way synch…
108 - [\@Prop](arkts-prop.md): An \@Prop decorated variable can create one-way synchronization with a v…
110variable creates two-way synchronization with a variable of its parent component. When the @Link d…
138 …tor](arkts-two-way-sync.md): provides a TS variable by-reference to a built-in component so that t…
183 - [\@Local](arkts-new-local.md): An \@Local decorated variable is internal state of the component a…
185 - [\@Param](arkts-new-param.md): An \@Param decorated variable is used as the input of the componen…
[all …]
H A Darkts-state.md4 An \@State decorated variable, also called a state variable, is a variable that holds the state pro…
23variable to an \@Prop decorated variable in a child component, and a two-way synchronization relat…
43 …n \@State decorated variable can be used to initialize a regular variable or \@State, \@Link, \@Pr…
89 Use \@State to decorate a variable of the Model class object type.
96 Assign a value to the \@State decorated variable.
103 Assign a value to a property of the \@State decorated variable.
128 Use \@State to decorate a variable of the Model class array type.
216 - When a state variable is changed, the framework searches for components that depend on this state…
243 …le, \@State is used to decorate the **count** variable of the simple type, turning it into a state…
666 ### A state variable causes a re-render of merely the bound UI component.
[all …]
H A Darkts-appstorage.md30 … a variable with \@StorageProp(key), a one-way data synchronization is established from the attrib…
41 …One-way: from the attribute in AppStorage to the component variable.<br>The component variable can…
50 … The \@StorageProp decorated variable can be used to initialize an \@State, \@Link, \@Prop, or \@P…
65 - When the decorated variable is of the Boolean, string, or number type, its value change can be ob…
69 - When the decorated variable is of the array type, the addition, deletion, and updates of array it…
96 \@StorageLink(key) creates a two-way data synchronization between the variable it decorates and the…
108 … | Two-way: from the attribute in AppStorage to the custom component variable and vice versa|
117 …ageLink decorated variable can be used to initialize a regular variable or an \@State, \@Link, \@P…
132 - When the decorated variable is of the Boolean, string, or number type, its value change can be ob…
136 - When the decorated variable is of the array type, the addition, deletion, and updates of array it…
[all …]
H A Darkts-require.md17 …er with a regular variable or a variable decorated by \@Prop, \@State, \@Provide, or \@BuilderPara…
21 The \@Require decorator can only decorate a regular variable or a variable decorated by \@Prop, \@S…
27variable or a variable decorated by \@Prop, \@State, \@Provide, or \@BuilderParam in the **Child**…
/ohos5.0/docs/en/application-dev/reference/apis-ffrt-kit/
H A Dcondition__variable_8h.md6 The **condition_variable.h** file declares the condition variable interfaces in C.
20 … cond, const [ffrt_condattr_t](ffrt__condattr__t.md)\* attr) | Initializes a condition variable. |
21 …__t.md)\* cond) | Unblocks at least one of the threads that are blocked on a condition variable. |
22 …d_t](ffrt__cond__t.md)\* cond) | Unblocks all threads currently blocked on a condition variable. |
23 … [ffrt_mutex_t](ffrt__mutex__t.md)\* mutex) | Blocks the calling thread on a condition variable. |
24 …truct timespec\* time_point) | Blocks the calling thread on a condition variable for a given durat…
25 ….md#ffrt_cond_destroy) ([ffrt_cond_t](ffrt__cond__t.md)\* cond) | Destroys a condition variable. |
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_device_proxy_lite.cpp634 owner.variable = &result; in AddDeviceConfig()
669 owner.variable = &result; in UpdateDeviceConfig()
771 owner.variable = &result; in GetDeviceConfigs()
1213 owner.variable = &state; in GetWifiState()
1247 owner.variable = &info; in GetLinkedInfo()
1281 owner.variable = &info; in GetIpInfo()
1315 owner.variable = &info; in GetIpv6Info()
1474 owner.variable = &level; in GetSignalLevel()
1542 owner.variable = &result; in GetDeviceMacAddress()
1578 owner.variable = &result; in SetLowLatencyMode()
[all …]
H A Dwifi_scan_proxy_lite.cpp110 (void)ReadBool(reply, (bool *)data->variable); in IpcCallback()
116 *(static_cast<long *>(data->variable)) = features; in IpcCallback()
209 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in SetScanControlInfo()
260 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in Scan()
293 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in AdvanceScan()
335 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in IsWifiClosedScan()
343 owner.variable = &bOpen; in IsWifiClosedScan()
369 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in GetScanInfoList()
377 owner.variable = &result; in GetScanInfoList()
412 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RegisterCallBack()
[all …]
/ohos5.0/base/startup/init/test/fuzztest/
H A DBUILD.gn47 "-Wno-unused-variable",
69 "-Wno-unused-variable",
91 "-Wno-unused-variable",
115 "-Wno-unused-variable",
143 "-Wno-unused-variable",
169 "-Wno-unused-variable",
191 "-Wno-unused-variable",
213 "-Wno-unused-variable",
241 "-Wno-unused-variable",
264 "-Wno-unused-variable",
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/
H A Dchangelog-ArkUI.md7 …variables do not accept **undefined** or **null** as values. If a state variable is set to **undef…
9 … **undefined** and **null** as values. You need to check whether a state variable is **undefined**.
13 Since API version 10, you need to take measures to check whether a state variable is **undefined**.
43 In the preceding scenario, each time **undefined** or **null** is assigned to a state variable, a c…
62 … crash: SynchedPropertyObjectTwoWayPU[9, 'linkProp']: constructor @Link/@Consume source variable in
65 …// Incorrect: linkProp is initialized from a regular variable. In this case, the ArkUI framework c…
67 // Correct: @Link is initialized from the state variable this.aProp.
90 …If a state variable is assigned a value in an unsupported type, for example, function, a runtime e…
95 …untime error is reported: @Component 'Page3': Illegal variable value error with decorated variable
/ohos5.0/drivers/hdf_core/framework/include/wifi/
H A Dhdf_wifi_event.h136 uint8_t variable[0]; /**< Algorithm challenge information stored in a flexible array */ member
158 uint8_t variable[0]; /**< SSID and rate information stored in a flexible array */ member
171 uint8_t variable[0]; /**< Rate information stored in a flexible array */ member
184 uint8_t variable[0]; /**< SSID and rate information stored in a flexible array */ member
197 uint8_t variable[0]; /**< Rate information stored in a flexible array */ member
220 uint8_t variable[0]; /**< SSID and rate information */ member
233 uint8_t variable[0]; /**< SSID and rate information */ member
/ohos5.0/docs/en/application-dev/reference/apis-media-kit/
H A D_o_h___video_capture_info.md24 | uint64_t [displayId](#displayid) | ID of the physical screen to capture. This member variable is …
25 | int32_t \* [missionIDs](#missionids) | Mission ID list. This member variable is valid when **capt…
26 | int32_t [missionIDsLen](#missionidslen) | Length of the mission ID list. This member variable is …
43 ID of the physical screen to capture. This member variable is valid when **capturemode** is set to …
54 Mission ID list. This member variable is valid when **capturemode** is set to **CAPTURE_SPECIFIED_W…
65 Length of the mission ID list. This member variable is valid when **capturemode** is set to **CAPTU…
/ohos5.0/docs/en/application-dev/application-models/
H A Dsubscribe-system-environment-variable-changes.md7 The system environment variable changes are usually triggered by options in **Settings** or icons i…
9 You can subscribe to system environment variable changes in the following ways:
34 … private callbackId: number = 0; // ID of the subscription for system environment variable changes.
42 // 2. Subscribe to system environment variable changes through ApplicationContext.
85 … private callbackId: number = 0; // ID of the subscription for system environment variable changes.
107 …for subscribing to system environment variable changes. This callback is invoked when a system env…
112 > - The callback used to subscribe to system environment variable changes has the same lifecycle as…
146 …for subscribing to system environment variable changes. This callback is invoked when a system env…
150 > The callback used to subscribe to system environment variable changes has the same lifecycle as t…
183 …for subscribing to system environment variable changes. This callback is invoked when a system env…
[all …]
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/wlan/
H A D_hdf_wifi_scan_result_v10.md28 | unsigned char[] [variable](#variable) | 扫描结果中的变量值。 |
136 ### variable subsection
139 unsigned char [] HdfWifiScanResult::variable
H A D_hdf_wifi_scan_result_v11.md28 | unsigned char[] [variable](#variable) | 扫描结果中的变量值 |
136 ### variable subsection
139 unsigned char [] HdfWifiScanResult::variable
H A D_hdf_wifi_scan_result_ext_v11.md29 | unsigned char[] [variable](#variable) | 扫描结果中的变量值 |
147 ### variable subsection
150 unsigned char [] HdfWifiScanResultExt::variable
/ohos5.0/foundation/communication/dhcp/frameworks/native/src/
H A Ddhcp_server_proxy_lite.cpp174 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RegisterDhcpServerCallBack()
211 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in StartDhcpServer()
249 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in StopDhcpServer()
288 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in SetDhcpRange()
333 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in SetDhcpName()
372 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in PutDhcpRange()
416 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RemoveAllDhcpRange()
454 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in UpdateLeasesTime()
492 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RemoveDhcpRange()
536 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in GetDhcpClientInfos()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-syntax-hml.md55 > - A variable can be followed by another variable, for example, **{{key1}}{{key2}}**.
56 > - A variable can also be followed by a constant, for example, **"my name is {{name}}, i am f…
60 > - NOT: {{! flag1}} (The NOT operation can only be performed on a Boolean variable.)
62 > - {{flag? key1: key2}} (**flag** is a Boolean variable. **key1** and **key2** can be variabl…
64 …efault value is **false** when a Boolean-specific operation is performed on a non-Boolean variable.
65 > - The preceding variable and operation parsing do not support nesting.
140 <!-- Define the name for an element variable. -->
144 <!-- Define an element variable and its index name. -->
165 - for="array": **array** is an array object, whose element variable is **$item** by default.
167 - for="v in array": **v** is a custom element variable, whose index is **$idx** by default.
[all …]
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dobserved-and-objectlink.md14 ![variable-layers](figures/variable-layers-decorators.png)
93 ![first-layer-variable](figures/first-layer-variable.gif)
233 ![second-variable-with-observed-objectlink](figures/second-variable-with-observed-objectlink.gif)
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.5/
H A Dchangelogs-arkui.md79 1. If the data type of a state variable decorated by a state decorator is declared as **any**, a bu…
84 2. If the data type of a state variable decorated by a state decorator is declared as **Date**, a b…
89 …*@State**, **@Provide**, **@Link**, and or **@Consume** decorated state variable is Length, **Reso…
91 …/* ArkTS:ERROR The state variable type here is 'ResourceStr', it contains both a simple type and a…
92 which are not allowed to be defined for state variable of a struct.*/
103 2. If a state variable decorated by a state decorator uses the **Date** object, change it to a regu…
141 > **regular**: refers to a regular variable that is not decorated by any decorator.
172 2. The **@ObjectLink** decorated variable cannot be directly initialized from a decorated variable
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.7.2/
H A Dchangelogs-arkui.md34 Component member variable decorators @State, @Prop, @Link, @Provide, @Consume, @ObjectLink, @Storag…
52 If any of the aforementioned component member variable decorators is used to decorate a member vari…
60 Use the aforementioned component member variable decorators to decorate only the member variables o…

12345678910>>...105