/ohos5.0/docs/en/application-dev/reference/apis-sensor-service-kit/ |
H A D | oh_sensor_8h.md | 25 …To subscribe to data of acceleration sensors, request the **ohos.permission.ACCELEROMETER** permis… 26 …To unsubscribe from data of acceleration sensors, request the **ohos.permission.ACCELEROMETER** pe…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | interface_utils.h | 123 template<class To, class From> 124 BASE_NS::vector<typename To::Ptr> PtrArrayCast(BASE_NS::vector<From>&& from) in PtrArrayCast() 127 static_assert(IsKindOfInterface_v<To>, "Conversion target type must be an IInterface."); in PtrArrayCast() 128 using ToPtr = typename To::Ptr; in PtrArrayCast() 135 if (auto t = interface_pointer_cast<To>(obj)) { in PtrArrayCast()
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.2/ |
H A D | changelogs-time.md | 9 - To call the **setTime** API, the **ohos.permission.SET_TIME** permission is required. 10 - To call the **setDate** API, the **ohos.permission.SET_TIME** permission is required. 11 - To call the **setTimezone** API, the **ohos.permission.SET_TIME_ZONE** permission is required. 29 To call the **setTime**, **setDate**, and **setTimezone** APIs, an application must apply for the c…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | type_traits.h | 343 template<typename From, typename To> 344 auto is_implicitly_convertible(int) -> decltype(void(declval<void (&)(To)>()(declval<From>())), tru… 349 template<typename From, typename To> 350 inline constexpr bool is_implicitly_convertible_v = decltype(is_implicitly_convertible<From, To>(0)… 353 template<typename From, typename To> 355 : integral_constant<bool, (is_void_v<From> && is_void_v<To>) || 356 … (detail::is_returnable_v<To> && detail::is_implicitly_convertible_v<From, To>)> {}; 357 template<typename From, typename To> 358 constexpr bool is_convertible_v = is_convertible<From, To>::value;
|
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/ |
H A D | Readme-EN.md | 35 …- [@ohos.bluetoothManager (Bluetooth) (To Be Deprecated) (System API)](js-apis-bluetoothManager-sy… 56 - [@ohos.bluetooth (Bluetooth) (To Be Deprecated)](js-apis-bluetooth.md) 57 - [@ohos.bluetoothManager (Bluetooth) (To Be Deprecated)](js-apis-bluetoothManager.md) 58 - [@ohos.wifi (WLAN) (To Be Deprecated)](js-apis-wifi.md) 59 - [@ohos.wifiext (WLAN Extension) (To Be Deprecated)](js-apis-wifiext.md) 62 - [@ohos.bluetooth (Bluetooth) (To Be Deprecated) (System API)](js-apis-bluetooth-sys.md) 63 - [@ohos.wifi (WLAN) (To Be Deprecated) (System API)](js-apis-wifi-sys.md)
|
/ohos5.0/docs/en/application-dev/device/sensor/ |
H A D | sensorservice-kit-intro.md | 15 - To use sensor functions, ensure that the device where your application runs has the required sens… 17 - To obtain data of some sensors, you need to request the required permissions. 24 - To use vibrator functions, ensure that the device where your application runs has the required mi… 25 - To use vibrators, you need to request the required permissions.
|
/ohos5.0/docs/en/application-dev/contacts/ |
H A D | contacts-intro.md | 21 > To read contacts, you need to declare the **ohos.permission.READ_CONTACTS** permission. This perm… 62 …To select a contact, you need to declare the **ohos.permission.WRITE_CONTACTS** permission to call… 88 To implement contact management for an application, use the **permissions** API to request for the … 92 …- To delete a contact, you need to declare the **ohos.permission.WRITE_CONTACTS** permission to ca… 93 …- To update a contact, you need to declare the **ohos.permission.WRITE_CONTACTS** permission to ca… 94 …- To query a contact, you need to declare the **ohos.permission.READ_CONTACTS** permission to call…
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | hisysevent.md | 3 …u subscribe to real-time system events and query historical system events. To use this tool, acces… 11 - To specify the type of system event to subscribe to, use the **-g** option. 22 - To subscribe to system events by event domain and event name, use the **-o**, **-n**, and **-c** … 41 - To subscribe to system events by event tag, use the **-t** and **-c** options. **-t** specifies t… 61 - To specify the type of system event to query, use the **-g** option. 72 - To query historical system events within the specified period of time, use the **-s** and **-e** … 90 - To query system events by event domain and event name, use the **-o**, **-n**, and **-c** options… 112 To enable system event validity check, use the **-v** option.
|
/ohos5.0/docs/en/application-dev/media/camera/ |
H A D | camera-preparation.md | 9 - To use the camera for photo capture, request the ohos.permission.CAMERA permission. 10 - To use the microphone to record audio, request the ohos.permission.MICROPHONE permission. 11 - To display location information in photos or videos captured, request the ohos.permission.MEDIA_L… 15 - To read images or videos, you are advised to use the media library [Picker to access them](../med… 16 - To save images or videos, use the [security components to save them](../medialibrary/photoAccessH…
|
/ohos5.0/docs/en/application-dev/inputmethod/ |
H A D | input-method-subtype-guide.md | 74 1. To obtain the current subtype of the current input method, call [getCurrentInputMethodSubtype](.… 76 2. To obtain all subtypes of the current input method, call [listCurrentInputMethodSubtype](../refe… 78 3. To obtain all subtypes of a specified input method, call [listInputMethodSubtype](../reference/a… 83 1. To switch to another subtype of the current input method, call [switchCurrentInputMethodSubtype]… 85 2. To switch to a specified subtype of a specified input method, call [switchCurrentInputMethodAndS…
|
/ohos5.0/docs/en/application-dev/displaymanager/ |
H A D | screenProperty-guideline.md | 71 2. To enhance UI layout design, you can use **getCutoutInfo()** to obtain information about unusabl… 97 …To listen for display changes, use **display.on('add'|'remove'|'change')** to subscribe to events … 115 2. To listen for screen capture, casting, or recording status changes, call **display.on('captureSt… 128 3. To listen for available area changes of the display, call **on('availableAreaChange')**. To end … 160 …ll **display.on('foldStatusChange')** to listen for folding state changes. To end the listening, c…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-theme.md | 4 To configure the theme for a service widget, use the attribute described below. 11 To configure the theme, create the **resources** folder at the same level as **pages** in the **wid…
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | usb-ddk-guidelines.md | 13 * To use the open APIs of the USB DDK, you need to declare the matching ACL permissions in **module… 22 …bDdkConfigDescriptor **const config) | Obtains a configuration descriptor. To avoid memory leakage… 23 …bDdkConfigDescriptor *const config) | Releases a configuration descriptor. To avoid memory leakage… 31 …64_t deviceId, size_t size, UsbDeviceMemMap **devMmap) | Creates a buffer. To avoid resource leaka… 32 | OH_Usb_DestroyDeviceMemMap(UsbDeviceMemMap *devMmap) | Destroys a buffer. To avoid resource leaka… 38 To develop a USB driver using the USB DDK, perform the following steps:
|
H A D | build-with-ndk-prebuilts.md | 13 To use it in your project, add it through **add_library** in the **CMakeLists.txt** script of the m… 34 To use the prebuilt library integrated in a remote dependency HAR, write the reference script in th… 48 To use the prebuilt library integrated in a local HAR, write the reference script in the **CMakeLis…
|
/ohos5.0/foundation/multimedia/camera_framework/ |
H A D | README.md | 8 - [To Capture a Photo](#to-capture-a-photo) 9 - [To Start and Stop Preview](#to-start-and-stop-preview) 10 - [To Record Video](#to-record-video) 11 - [To Switch Between Camera Devices](#to-switch-between-camera-devices) 12 - [To configure flash mode](#to-configure-flash-mode) 63 ### To Capture a Photo 175 ### To Start and Stop Preview 255 ### To Record Video 333 ### To Switch Between Camera Devices 475 ### To configure flash mode
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/animation/ |
H A D | animation.h | 66 META_API_INTERFACE_PROPERTY_CACHED(KeyframeAnimation, To, IAny::Ptr) in META_API_INTERFACE_PROPERTY_CACHED() 80 auto& To(const Type& value) in To() function 82 if (auto p = META_API_CACHED_INTERFACE(KeyframeAnimation)->To()) { in To()
|
/ohos5.0/docs/en/application-dev/reference/apis-driverdevelopment-kit/ |
H A D | usb__ddk__api_8h.md | 27 …or.md) \*\*const config) | Obtains the configuration descriptor. To avoid memory leakage… 28 …tor.md) \*const config) | Releases the configuration descriptor. To avoid memory leakage… 37 …eviceMemMap](_usb_device_mem_map.md) \*\*devMmap) | Creates a buffer. To avoid memory leakage… 38 …DeviceMemMap](_usb_device_mem_map.md) \*devMmap) | Destroys a buffer. To avoid resource leaka…
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | performance-overview.md | 7 To drive code execution speed – a key facet of application performance, try the following: 17 When frame freezing occurs, the user experiences stutters and lags in the application. To reduce fr… 21 …hread can block UI rendering and result in overloading of the main thread. To minimize main thread… 25 …To lower the rendering overhead, use resource diagrams instead of drawing, properly use **renderGr… 33 …ts can lead to a slow UI, from component creation and layout to rendering. To improve layout perfo… 48 Users expect applications to be loading fast and highly responsive. To improve the [application sta…
|
/ohos5.0/docs/en/device-dev/quick-start/ |
H A D | quickstart-pkg-3516-build.md | 48 > - To build a component (for example, **hello**), run the **hb build -T *targetName*** command. 50 > - To build a product incrementally, run the **hb build** command. 52 > - To build a product from the scratch, run the **hb build -f** command.
|
H A D | quickstart-pkg-3861-build.md | 50 > - To build a component (for example, **hello**), run the **hb build -T *targetName*** command. 52 > - To build a product incrementally, run the **hb build** command. 54 > - To build a product from the scratch, run the **hb build -f** command.
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-system-geolocation.md | 5 APIs in **@system.geolocation.d.ts** do not support throwing error codes. To support this function,… 7 To use APIs of the location subsystem, you need to import **@ohos.geoLocationManager**. 14 All APIs of the location subsystem are affected. To ensure normal use of these APIs, you need to im…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.5/ |
H A D | changelogs-system-geolocation.md | 5 APIs in **@system.geolocation.d.ts** do not support throwing error codes. To support this function,… 7 To use APIs of the location subsystem, you need to import **@ohos.geoLocationManager**. 14 All APIs of the location subsystem are affected. To ensure normal use of these APIs, you need to im…
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | egl.md | 8 To use EGL capabilities, include the following header file: 20 To call the EGL extended APIs, include the following header file and add the macro definition to **…
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-arkts-utils.md | 53 To address the problem that a large number of threads are required, you are advised to: 602 To address the problem that a large number of threads are required, you are advised to: 642 To use a UI component in the HAR, use the source code HAR or JS HAR. 650 - To use the default properties, run the following command: **hdc shell param set persist.ark.prope… 652 - To print the GC status, run the following command: **hdc shell param set persist.ark.properties 0… 653 - To enable multithreading detection, run the following command: **hdc shell param set persist.ark.… 655 - To enable memory leak check for global objects, run the following command: **hdc shell param set … 657 - To open the GC heap information, run the following command: **hdc shell param set persist.ark.pro… 662 - To enable modular tracing, run the following command: **hdc shell param set persist.ark.propertie… 663 - To enable module-specific logging, run the following command: **hdc shell param set persist.ark.p… [all …]
|
/ohos5.0/docs/en/device-dev/guide/ |
H A D | device-camera-control-example.md | 9 … the home screen is loaded and displayed above the media layer by default. To prevent covering **c… 12 …tored in **out/hi3516dv300/ipcamera\_hi3516dv300\_liteos/dev\_tools/bin**. To ensure that the code… 23 …>To view the photos and videos in the TF card, copy them to a computer. If you just want to previe… 39 …To view the saved file, exit the program and enter the file system. To start the program again, re…
|