Home
last modified time | relevance | path

Searched refs:custom (Results 1 – 25 of 908) sorted by relevance

12345678910>>...37

/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A D_ark_u_i___native_dialog_a_p_i__1.md6 Provides the custom dialog box APIs for the native side.
87 Destroys a custom dialog box.
103 Specifies whether to use a custom animation for a custom dialog box.
128 Specifies whether to use a custom style for the custom dialog box.
178 Removes the content of a custom dialog box.
251 Sets the background color for a custom dialog box.
276 Sets the content for a custom dialog box.
301 Sets the alignment mode for a custom dialog box.
381 Sets the mask for a custom dialog box.
407 Sets the modal mode for a custom dialog box.
[all …]
H A Djs-apis-arkui-node.md3 The **Node** module provides level-2 module APIs of custom nodes to export and use.
5 …a BuilderNode – a custom node that can be used to mount native components. Avoid mounting a Builde…
9 … provides APIs for managing custom nodes, such as creating, showing, and updating custom nodes, an…
11 …js-apis-arkui-graphics.md#graphics) module: provides APIs for defining attributes of a custom node.
13 …erNode.md#rendernode) module: provides APIs for creating a RenderNode in custom drawing settings w…
28 …l the built-in method [getUIContext()](arkui-ts/ts-custom-component-api.md#getuicontext) of the cu…
H A Derrorcode-promptAction.md33 This error code is reported when there is an issue with the content node of the custom dialog box, …
37 The custom component node passed to the dialog box is empty or incorrect.
51 This error code is reported when an attempt is made to open a custom dialog box that is already ope…
55 The custom dialog box associated with the content node is currently displayed.
69 This error code is reported when an attempt is made to close or update a custom dialog box that is …
73 The custom dialog box associated with the content node is not open.
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-new-componentV2.md3 …he state variable decorator V2 in a custom component, you can use the \@ComponentV2 Decorator to d…
13 … [\@Component Decorator](arkts-create-custom-components.md), the \@ComponentV2 decorator is used t…
15 - In the custom component decorated by \@ComponentV2, only new state variable decorators can be use…
18 …ve** of the **boolean** type to implement the [component freezing](arkts-custom-components-freezeV…
20 - A simple \@ComponentV2 decorated custom component should contain the following parts:
30 Unless otherwise specified, a custom component decorated by \@ComponentV2 maintains the same behavi…
34 …how to use the custom components decorated by \@Component and \@ComponentV2 together, see [Mixing …
H A Darkts-page-custom-components-layout.md3 If you need to lay out child components in a custom component through calculation, you are advised …
5 - [onMeasureSize](../reference/apis-arkui/arkui-ts/ts-custom-component-layout.md#onmeasuresize10): …
7 - [onPlaceChildren](../reference/apis-arkui/arkui-ts/ts-custom-component-layout.md#onplacechildren1…
23 // Pass multiple components in a builder as level-1 child components of the custom component (that …
75 ![custom-component-custom-layout](figures/custom-component-custom-layout.png)
77 In the preceding example, the **Index** page contains a custom component that implements a custom l…
79 **onMeasureSize** and **onPlaceChildren** are called in the custom component to set the size and po…
H A Darkts-page-custom-components-lifecycle.md4 …efore we dive into the page and custom component lifecycle, it would be helpful to learn the relat…
9 - Page: UI page of an application. A page can consist of one or more custom components. A custom co…
12 The following lifecycle callbacks are provided for a page, that is, a custom component decorated wi…
19 - [onBackPress](../reference/apis-arkui/arkui-ts/ts-custom-component-lifecycle.md#onbackpress): Inv…
22 The following lifecycle callbacks are provided for a custom component decorated with \@Component:
25custom-component-lifecycle.md#abouttoappear): Invoked when the custom component is about to appear…
27 …ence/apis-arkui/arkui-ts/ts-custom-component-lifecycle.md#ondidbuild12): Invoked after the **build…
29 …ar](../reference/apis-arkui/arkui-ts/ts-custom-component-lifecycle.md#abouttodisappear): Invoked w…
38 Based on the preceding figure, let's look into the creation, re-rendering, and deletion of a custom
43 1. Custom component creation: An instance of a custom component is created by the ArkUI framework.
[all …]
H A Darkts-create-custom-components.md7 The custom component has the following features:
18 The following example shows the basic usage of a custom component.
41 … in the **build()** function of other custom components. In this way, **HelloComponent** is reused…
62 - [Basic Structure of a Custom Component](#basic-structure-of-a-custom-component)
66 - [Rules for Custom Component Parameters](#rules-for-custom-component-parameters)
70 - [Universal Style of a Custom Component](#universal-style-of-a-custom-component)
94 Describes the [custom component freezing](arkts-custom-components-freeze.md) option.
106 …nction is used to define the declarative UI description of a custom component. Every custom compon…
177 A custom component can also implement member variables with the following restrictions:
187 …arnt from preceding examples, a custom component can be created from a **build** method. During th…
[all …]
H A Darkts-basic-syntax-overview.md22 > The name of a custom variable cannot be the same as that of any universal attribute or event.
25custom-components.md#basic-structure-of-a-custom-component) indicates a custom component, [@Entry]…
29 - [Custom component](arkts-create-custom-components.md): reusable UI unit, which can be used with o…
H A Darkts-localBuilder.md30 - One or more @LocalBuilder methods can be defined in a custom component. The methods are considere…
31 - The custom builder function can be called from the **build** method or another custom builder fun…
32custom builder function body, **this** refers to the owning component. Component state variables a…
38 - @LocalBuilder cannot be used by built-in decorators and custom decorators.
40 - Static methods in a custom component cannot be used together with @LocalBuilder.
54 - The \@LocalBuilder function body follows the same [syntax rules](arkts-create-custom-components.m…
95 When parameters are passed by reference, if a custom component is called within the\@LocalBuilder m…
99custom component to pass the parameters by reference. When the value of a state variable in the **…
222 Call the @LocalBuilder in the custom component decorated by @ComponentV2 to change the variables, t…
296 ChildPage({childInfo: this.info1}) // Call the custom component.
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-build-custom-components.md33 // Example of a custom container component
47 // Register the custom event listener.
49 // Declare the custom event and pass itself as custom data.
57 // Undeclare the custom event.
199 …e following example creates a custom drawing component that can draw a custom rectangle and uses t…
210 // Example of a custom drawing component
228 // Register the custom event listener.
230 // Declare the custom event and pass itself as custom data.
237 // Undeclare the custom event.
268 // Draw custom content.
[all …]
H A Darkts-user-defined.md7 …euses existing components through the basic capabilities of built-in and custom components to enca…
9custom placeholder nodes](./arkts-user-defined-place-hoder.md). There are three types of custom no…
10 …- **Custom rendering**: custom content rendering implemented by writing display data generated by …
17 …uick-start/arkts-create-custom-components.md) for basic component encapsulation by combining exist…
18custom arrangement of child components, useful in scenarios with clearly defined child components …
19custom drawing integrated into custom components, with APIs similar to W3C Canvas, suitable for de…
20custom animation effects on animatable component properties.<br>Use [@AnimatableExtend](../quick-s…
21 …posed modifiers.<br>Use [custom modifiers](../reference/apis-arkui/arkui-ts/ts-universal-attribute…
22 …s-file export and reuse, which is suitable for encapsulating and reusing custom gesture handling l…
23custom content.<br>Use [ContentModifier](../reference/apis-arkui/arkui-ts/ts-universal-attributes-…
[all …]
H A Darkts-user-defined-node.md3custom nodes depend on [custom placeholder nodes](./arkts-user-defined-place-hoder.md). There are …
14 …nts, provide anchor points for custom nodes in the built-in component tree, thereby allowing for a…
20 - Fully custom node: offers full customization, including custom measurement, layout, and rendering…
25 …or setting rendering-related properties, custom drawing content, and node operations. It is suitab…
28custom builder function](../quick-start/arkts-builder.md#global-custom-builder-function), which is…
H A Darkts-uicontext-custom-dialog.md4custom-dialog-box.md#customdialogcontroller), which does not support dynamic creation or refresh, …
11custom dialog box. **wrapBuilder(buildText)** encapsulates the custom component, and **new Params…
17 2. Open the custom dialog box.
19 …Call **openCustomDialog** to open the custom dialog box, whose **customStyle** is set to **true** …
33 3. Close the custom dialog box.
53custom components using decorators such as [@Reusable](../quick-start/arkts-create-custom-componen…
H A Dui-js-custom-components.md4 …like development paradigm supports custom components for you to extend existing components. You ca…
7 - Building a custom component
63 - Introducing the custom component
98 …reference/apis-arkui/arkui-js/js-components-custom-basic-usage.md). The following figures show how…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-custom-lifecycle.md8custom components, including **onInit**, **onAttached**, **onDetached**, **onLayoutReady**, **onDe…
13 | onInit | Function | Custom component initialization | The custom component is created. Th…
14 | onAttached | Function | Custom component loading | The custom component is added to the **P…
15 …calculation, including content size and position adjustment, is complete for the custom component.|
16 | onDetached | Function | Custom component detachment | The custom component is detached. It …
17 | onDestroy | Function | Custom component destruction | The custom component is destroyed. I…
18 | onShow | Function | Page display of a custom component| The page where the custom componen…
19 | onHide | Function | Page hiding of a custom component| The page where the custom component…
H A Djs-components-custom-style.md7 A custom component has the **inherit-class** attribute, which is defined in the following table.
13 To enable a custom component to inherit the styles of its parent component, set the **inherit-calss…
15 …a code snippet in the HML file of the parent component that references a custom component named **…
40 Code snippet in the HML file of the custom component, where **parent-class1** and **parent-class2**…
/ohos5.0/docs/en/application-dev/reference/apis-sensor-service-kit/
H A D_vibrator_file_description.md20 | [fd](#fd) | File handle of the custom vibration sequence. |
21 | [offset](#offset) | Offset address of the custom vibration sequence.|
22 | [length](#length) | Total length of the custom vibration sequence.|
35 File handle of the custom vibration sequence.
45 Offset address of the custom vibration sequence.
55 Total length of the custom vibration sequence.
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-custom-property.md3 You can set custom properties on components. These custom properties can be obtained on their corre…
13custom property for this component. This API does not work for [custom components](../../../quick-…
25 | name | string | Yes | Name of the custom property. |
26 | value | Optional\<Object> | Yes | Value of the custom property. |
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-custom-basic-usage.md9 … requirements. A custom component can be invoked multiple times in a project to improve the code r…
18custom component name (optional), which is case-insensitive and is in lowercase by default. The **…
20 - Event binding: Use **(on|\@)*child1*** in the custom component to bind a child component event. I…
32custom events, whose **action** is **proxy** and name is specified by **method**. A service widget…
38 Example of a custom child component:
123 You can use **props** to declare custom attributes of a custom component. The attributes can be use…
194 For details, see [props](../arkui-js/js-components-custom-props.md).
/ohos5.0/docs/en/application-dev/performance/
H A Dcomponent-recycle.md5 1. Scrolling scenarios where instances of the same type of custom components are frequently created…
10 1. The custom component to reuse is decorated by the @Reusable decorator.
11 2. The reusable custom component (child) created under a custom component (parent) is added to the …
16 …a custom component can be reused. While it can be used to decorate any custom component, take note…
17 …nd reuse of reusable custom components can occur only under the same parent component. This means …
18 …eed to decorate its root node with @Reusable. For example, if custom component A has custom child …
19 4. When a custom component is nested within a reusable custom component, to update the content of t…
28custom components. Component reuse is, in effect, a special form of component update. The process …
29 …in **aboutToReuse**, only update the state variable values required for updating custom components.
198 If the instances of a custom component vary greatly, use **reuseId** to assign these instances to d…
[all …]
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-page-custom-components-layout.md5 - [onMeasureSize](../reference/apis-arkui/arkui-ts/ts-custom-component-layout.md#onmeasuresize10):组…
7 - [onPlaceChildren](../reference/apis-arkui/arkui-ts/ts-custom-component-layout.md#onplacechildren1…
75 ![custom-component-custom-layout](figures/custom-component-custom-layout.png)
H A Darkts-state-management-overview.md29 …式UI描述](./arkts-declarative-ui-description.md),[自定义组件-创建自定义组件](./arkts-create-custom-components.md)。
225custom-component-lifecycle.md#abouttoappear)、[onDidBuild](../reference/apis-arkui/arkui-ts/ts-cust…
226custom-component-lifecycle.md#onpageshow)、[onPageHide](../reference/apis-arkui/arkui-ts/ts-custom-…
227 …/apis-arkui/arkui-ts/ts-custom-component-lifecycle.md#abouttoreuse10)、[aboutToRecycle](../referenc…
230 …置应用局部页面自定义主题风格。包括:[onWillApplyTheme](../reference/apis-arkui/arkui-ts/ts-custom-component-lifecycl…
233 有关V1向V2的迁移可参考[迁移指导](./arkts-v1-v2-migration.md),有关V1与V2的混用可参考[混用文档](./arkts-custom-component-mixed-…
/ohos5.0/docs/en/application-dev/security/UserAuthenticationKit/
H A Dapply-custom-authentication.md10 …ation button with **Use payment password** must be passed in to initiate the custom authentication.
13custom authentication will receive a special authentication result returned by the user authentica…
23 > The lock screen password authentication and custom authentication are mutually exclusive.
38 To implement the switchover from a system-supported authentication type to a custom authentication …
40 The following example only covers how to configure the page for switching to the custom authenticat…
69 …500011 is returned, the user taps the navigation button to switch to the custom authentication pag…
71 // You need to implement the process of starting the custom authentication page.
/ohos5.0/docs/zh-cn/application-dev/web/
H A Dweb-scheme-handler.md38 // 拦截webTag为“scheme-handler”的Web组件发出的scheme为“custom”的请求。
39 OH_ArkWeb_SetSchemeHandler("custom", "scheme-handler", schemeHandler);
40 OH_ArkWebServiceWorker_SetSchemeHandler("custom", schemeHandler);
48 // 注册“custom“ scheme到Web组件,并指定该scheme需要遵循标准的scheme规则,允许该scheme发出跨域请求。
50 // 注册“custom-local” scheme到Web组件,并指定该scheme需要遵循与“file” scheme一样的规则。
52 // 注册“custom-csp-bypassing”到Web组件,并指定该scheme需要遵循标准的scheme规则,允许忽略CSP检查。
54 // 注册“custom-isolated”到Web组件,并指定该scheme的请求必须从相同scheme加载的网页中发起。
237 OH_LOG_INFO(LOG_APP, "register custom schemes");
700 <p>scheme: custom-csp-bypassing</p>
728 <p>scheme: custom-isolated</p>
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.8.2/
H A Dchangelogs-miscdevice.md6 …e attributes **VibrateFromFile** (custom vibration effect) and **HapticFileDescriptor** (file desc…
10 …nable devices that support custom vibration to trigger vibration according to the vibration sequen…
23 …onfiguration file through the resource management API, and start or stop custom vibration as requi…
56 // Start custom vibration.

12345678910>>...37