diff --git a/README.en.md b/README.en.md index 84df16a5e20e3e4a9684a699e59f068be1aa0c73..ed9af1a964571a8a54ad00be53bd43ee62d87e85 100644 --- a/README.en.md +++ b/README.en.md @@ -5,9 +5,11 @@ This sample shows how to set and obtain the user agent using ArkTS and the **Web** component. ### Preview + ![](screenshots/devices/webuseragent.en.png) ### Project Directory + ``` ├──entry/src/main/ets │ ├──entryability @@ -22,12 +24,14 @@ This sample shows how to set and obtain the user agent using ArkTS and the **Web ``` ### How to Use + 1. Tap the **Set custom user agent** to set the agent. 2. Tap the **Obtain custom user agent** button to display the information about the custom user agent. 3. Tap the **Obtain default user agent** button to display the information about the default user agent. 4. Tap the **Refresh** button to refresh the web page and display the latest user agent information. ### Available APIs + - getUserAgent: obtains the current default user agent. - setCustomUserAgent: sets a custom user agent, which will overwrite the default user agent. - getCustomUserAgent: obtains the custom user agent. @@ -42,10 +46,10 @@ N/A ### Constraints -1. The sample app is supported only on Huawei phones running the standard system. +1. The sample is only supported on Huawei phones with standard systems. -2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. +2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. -3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. +3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release SDK or later.