@@ -9,7 +9,6 @@ Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9
- Method 2: Run the screenshot script. Connect to the development board to a computer running Windows. Create a text file on the computer, copy the following script content to the file, change the file name extension to **.bat** (the HDC environment variables must be configured in advance), and click **Run**. The screenshot is saved to the same directory as the **.bat** script file.
Example:
```
set filepath=/data/%date:~0,4%%date:~5,2%%date:~8,2%%time:~1,1%%time:~3,2%%time:~6,2%.png
echo %filepath%
...
...
@@ -29,10 +28,11 @@ Applicable to: DevEco Studio 3.0.0.991
## What should I do if Device Manager incorrectly identifies a development board as FT232R USB UART even when the development board already has a driver installed?
The System Accessibility Configuration module allows you to configure system accessibility features, including accessibility extension, high-contrast text, mouse buttons, and captions.
The **Accessibility** module implements the accessibility functions, including obtaining the accessibility application list, accessibility application enabled status, and captions configuration.
The **animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order.
The **Animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order.
The **deviceInfo** module provides product information.
> **NOTE**<br>
> **NOTE**
>
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The **inputMethodSubtype** module provides APIs for managing the attributes of input method subtypes. Different attribute settings result in different subtypes.
The **inputMethod** module provides an input method framework, which can be used to hide the keyboard, obtain the list of installed input methods, display the dialog box for input method selection, and more.
The **inputMethodEngine** module streamlines the interaction between input methods and applications. By calling APIs of this module, applications can be bound to input method services to accept text input through the input methods, request the keyboard to display or hide, listen for the input method status, and much more.
The **pasteboard** module provides the copy and paste support for the system pasteboard. You can use the APIs of this module to operate pasteboard content of the plain text, HTML, URI, Want, pixel map, and other types.
...
...
@@ -120,11 +120,11 @@ Enumerates the paste options of data.
The **Router** module provides APIs to access pages through URLs. You can use the APIs to navigate to a specified page in an application, replace the current page with another one in an application, and return to the previous page or a specified page.
# @ohos.systemDateTime (System Time and Time Zone)
The **systemDateTime** module provides system time and time zone features. You can use the APIs of this module to set and obtain the system time and time zone.
...
...
@@ -35,15 +35,15 @@ Sets the system time. This API uses an asynchronous callback to return the resul
// Set the system time to 2021-01-20 02:36:25.
lettime=1611081385000;
try{
systemDateTime.setTime(time,(error)=>{
if(error){
console.info(`Failed to set time. message:${error.message}, code:${error.code}`);
return;
}
console.info(`Succeeded in setting time`);
});
systemDateTime.setTime(time,(error)=>{
if(error){
console.info(`Failed to set time. message: ${error.message}, code: ${error.code}`);
return;
}
console.info(`Succeeded in setting time`);
});
}catch(e){
console.info(`Failed to set time. message:${e.message}, code:${e.code}`);
console.info(`Failed to set time. message: ${e.message}, code: ${e.code}`);
}
```
...
...
@@ -75,13 +75,13 @@ Sets the system time. This API uses a promise to return the result.
// Set the system time to 2021-01-20 02:36:25.
lettime=1611081385000;
try{
systemDateTime.setTime(time).then(()=>{
console.info(`Succeeded in setting time.`);
}).catch((error)=>{
console.info(`Failed to set time. message:${error.message}, code:${error.code}`);
});
systemDateTime.setTime(time).then(()=>{
console.info(`Succeeded in setting time.`);
}).catch((error)=>{
console.info(`Failed to set time. message: ${error.message}, code: ${error.code}`);
});
}catch(e){
console.info(`Failed to set time. message:${e.message}, code:${e.code}`);
console.info(`Failed to set time. message: ${e.message}, code: ${e.code}`);
}
```
...
...
@@ -104,15 +104,15 @@ Obtains the time elapsed since the Unix epoch. This API uses an asynchronous cal
The **SystemParameter** module provides system services with easy access to key-value pairs. You can use the APIs provided by this module to describe the service status and change the service behavior. The basic operation primitives are get and set. You can obtain the values of system parameters through getters and modify the values through setters.
For details about the system parameter design principles and definitions, see
The **SystemParameter** module provides system services with easy access to key-value pairs. You can use the APIs provided by this module to describe the service status and change the service behavior. The basic operation primitives are get and set. You can obtain the values of system parameters through getters and modify the values through setters.
For details about the system parameter design principles and definitions, see
The **wallpaper** module is a system service module in OpenHarmony that provides the wallpaper management service. You can use the APIs of this module to show, set, and switch between wallpapers.