From 202252e8b562472b0113fbb57b9e897a99a004fe Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 16:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=BA=E4=BA=8EWeb=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=AE=9E=E7=8E=B0=E8=AE=BE=E7=BD=AE=E5=92=8C=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E4=BB=A3=E7=90=86=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=91=E6=9B=B4=E6=96=B0=E7=BA=A6=E6=9D=9F=E4=B8=8E?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.en.md b/README.en.md index 84df16a..ed9af1a 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. -- Gitee