# dcb.addShortcut
客户端 7.3.6 开始支持,低版本需做兼容处理。
创建桌面快捷方式仅安卓支持
。
# 参数
属性 | 类型 | 默认值 | 必填 | 说明 | 最低版本 |
---|---|---|---|---|---|
icon | string | 是 | 桌面快捷图标链接 | 7.3.6 | |
title | string | 是 | 桌面快捷标题 | 7.3.6 | |
targetUrl | string | 是 | 跳转链接 | 7.3.6 |
# 示例
await dcb.addShortcut({
icon: 'https://dcb-resource.gogpay.cn/dcb-mall-saleafter/png/8c1bd5d5e5a14914a43518317baa8f8e.png',
title: '生活缴费',
targetUrl:
'https://h5p-gw.gogpay.cn/app/living-payment-front/index.html#/home?isLogin=true&isAuth=true&isFull=true',
});