【2025年1月2日】关于腾讯云小程序平台更名为腾讯云超级应用服务的公告
控制台更新动态
Android SDK 更新动态
iOS SDK 更新动态
Flutter 更新动态
IDE 更新动态
基础库更新动态
@ProxyService(proxy = IWebViewLinkProxy.class)public class CustomWebViewLinkProxy implements IWebViewLinkProxy {/*** Handle custom url loading in web-view component.* Custom url is url with any custom scheme (scheme not network protocol such as http/https)* @param miniContext context of mini-program* @param url the url which is loading* @return return true if the url loading is handled, otherwise false the web-view will handle url loading*/@Overridepublic boolean webViewCustomUrlLoading(IMiniAppContext miniContext, String url) {Uri uri = Uri.parse(url);if ("tcmpp".equals(uri.getScheme())) {Intent intent = new Intent(Intent.ACTION_VIEW, uri);miniContext.getAttachedActivity().startActivity(intent);return true;}return false;}}
文档反馈