/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-default-userAgent.md | 57 let userAgent = this.controller.getUserAgent(); 58 console.log("userAgent: " + userAgent); 94 this.controller.setCustomUserAgent(userAgent); 115 @State userAgent: string = ''; 122 this.userAgent = this.controller.getCustomUserAgent(); 123 console.log("userAgent: " + this.userAgent); 145 const isOpenHarmony = () => /OpenHarmony/i.test(navigator.userAgent); 153 const matches = navigator.userAgent.match(/OpenHarmony (\d+\.?\d*)/); 163 const isPhone = () => /Phone/i.test(navigator.userAgent); 166 const isTablet = () => /Tablet/i.test(navigator.userAgent); [all …]
|
H A D | Readme-CN.md | 7 - [UserAgent开发指导](web-default-userAgent.md)
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-default-userAgent.md | 57 let userAgent = this.controller.getUserAgent(); 58 console.log("userAgent: " + userAgent); 94 this.controller.setCustomUserAgent(userAgent); 115 @State userAgent: string = ''; 122 this.userAgent = this.controller.getCustomUserAgent(); 123 console.log("userAgent: " + this.userAgent); 145 const isOpenHarmony = () => /OpenHarmony/i.test(navigator.userAgent); 153 const matches = navigator.userAgent.match(/OpenHarmony (\d+\.?\d*)/); 163 const isPhone = () => /Phone/i.test(navigator.userAgent); 166 const isTablet = () => /Tablet/i.test(navigator.userAgent); [all …]
|
H A D | Readme-EN.md | 7 - [Setting UserAgent](web-default-userAgent.md)
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-web.md | 6 |新增|NA|类名:WebviewController;<br>方法or属性:setCustomUserAgent(userAgent: string): void;|@ohos.web.webvi… 8 …名:WebAttribute;<br>方法or属性:userAgent(userAgent: string): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<b…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkWeb.ts | 87 userAgent(userAgent: string): this { 134 userAgent: string; contentDisposition: string;
|
/ohos5.0/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_ffi.cpp | 156 std::string userAgent = nativeWebviewCtl->GetUserAgent(); in FfiOHOSWebviewCtlGetUserAgent() local 158 return MallocCString(userAgent); in FfiOHOSWebviewCtlGetUserAgent() 188 std::string userAgent = cUserAgent; in FfiOHOSWebviewCtlSetCustomUserAgent() local 192 return nativeWebviewCtl->SetCustomUserAgent(userAgent); in FfiOHOSWebviewCtlSetCustomUserAgent() 202 std::string userAgent = ""; in FfiOHOSWebviewCtlGetCustomUserAgent() local 203 userAgent = nativeWebviewCtl->GetCustomUserAgent(); in FfiOHOSWebviewCtlGetCustomUserAgent() 205 ret.data = MallocCString(userAgent); in FfiOHOSWebviewCtlGetCustomUserAgent()
|
H A D | webview_controller_impl.cpp | 152 int32_t WebviewControllerImpl::SetCustomUserAgent(const std::string& userAgent) in SetCustomUserAgent() argument 162 setting->PutUserAgent(userAgent); in SetCustomUserAgent()
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-arkui-web.md | 303 .userAgent(this.userAgentPa) 305 let userAgent = this.controller.getUserAgent(); 306 this.userAgentPa = userAgent + ' 111111111' 319 [userAgent](../reference/apis-arkweb/ts-basic-components-web.md#useragentdeprecated)、[getUserAgent]…
|
/ohos5.0/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_download_callback.h | 39 virtual void OnDownloadStart(const std::string& url, const std::string& userAgent,
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-web.md | 6 |Added|NA|Class name: WebviewController;<br>Method or attribute name: setCustomUserAgent(userAgent:… 8 …e: userAgent(userAgent: string): WebAttribute;<br>Old version information: |Class name: WebAttribu…
|
/ohos5.0/base/telephony/sms_mms/frameworks/js/napi/include/ |
H A D | napi_send_recv_mms.h | 31 std::u16string userAgent = u""; member
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_web_ffi.h | 74 CJ_EXPORT void FfiOHOSAceFrameworkWebUserAgent(const std::string& userAgent);
|
H A D | cj_web_ffi.cpp | 381 void FfiOHOSAceFrameworkWebUserAgent(const std::string& userAgent) in FfiOHOSAceFrameworkWebUserAgent() argument 383 WebModel::GetInstance()->SetUserAgent(userAgent); in FfiOHOSAceFrameworkWebUserAgent()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-web.md | 50 |新增|NA|类名:WebviewController;<br>方法or属性:setCustomUserAgent(userAgent: string): void;|@ohos.web.webvi… 55 …名:WebAttribute;<br>方法or属性:userAgent(userAgent: string): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<b…
|
/ohos5.0/base/telephony/sms_mms/frameworks/js/napi/src/ |
H A D | napi_send_recv_mms.cpp | 169 … asyncContext->data, asyncContext->mmsConfig.userAgent, asyncContext->mmsConfig.userAgentProfile); in NativeSendMms() 268 context.mmsConfig.userAgent = NapiUtil::ToUtf16(str8); in GetMmsNameProperty() 455 dbUrls, asyncContext->mmsConfig.userAgent, asyncContext->mmsConfig.userAgentProfile); in NativeDownloadMms()
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | parser.js | 61 if (navigator.userAgent.toLowerCase().indexOf('win') > -1) {
|
/ohos5.0/base/web/webview/interfaces/kits/cj/include/ |
H A D | webview_controller_impl.h | 88 int32_t SetCustomUserAgent(const std::string& userAgent);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-telephony-kit/ |
H A D | js-apis-sms-sys.md | 75 userAgent:'ua', 104 userAgent:'ua', 190 userAgent:'ua', 218 userAgent:'ua', 301 userAgent:'ua', 333 userAgent:'ua', 422 userAgent:'ua', 453 userAgent:'ua', 1920 | userAgent<sup>11+</sup> | string | 是 | 用…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/ |
H A D | web_delegate_interface.h | 51 virtual void UpdateUserAgent(const std::string& userAgent) = 0;
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-arkui-web.md | 303 .userAgent(this.userAgentPa) 305 let userAgent = this.controller.getUserAgent(); 306 this.userAgentPa = userAgent + ' 111111111' 319 [userAgent](../reference/apis-arkweb/ts-basic-components-web.md#useragentdeprecated), [getUserAgent…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-web.md | 50 |Added|NA|Class name: WebviewController;<br>Method or attribute name: setCustomUserAgent(userAgent:… 55 …e: userAgent(userAgent: string): WebAttribute;<br>Old version information: |Class name: WebAttribu…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_web.h | 65 static void UserAgent(const std::string& userAgent);
|
/ohos5.0/base/telephony/sms_mms/interfaces/kits/js/ |
H A D | @ohos.telephony.sms.d.ts | 968 userAgent: string;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | web_component.h | 405 void SetUserAgent(std::string userAgent) in SetUserAgent() argument 407 userAgent_ = std::move(userAgent); in SetUserAgent()
|