Set the data structure of Android app information in AppLinking
zh
设置安卓应用信息类
example
let linkInfo = new huawei.agc.applinking.AppLinking();
let androidLinkInfo = new huawei.agc.applinking.AndroidLinkInfo();
androidLinkInfo.setMinimumVersion(1);
linkInfo.setAndroidLinkInfo(androidLinkInfo);
let linkInfo = new huawei.agc.applinking.AppLinking();
let linkBuilder = new huawei.agc.applinking.Builder();
linkBuilder.setDeepLink("https://docs.cocos.com/creator/manual/en/");
linkBuilder.setUriPrefix("https://yourapp.drcn.agconnect.link");
linkInfo.setBuilder(linkBuilder);
Set the data structure of activity information in AppLinking
zh
设置 AppLinking 中活动信息
example
let linkInfo = new huawei.agc.applinking.AppLinking();
let campaignInfo = new huawei.agc.applinking.CampaignInfo();
campaignInfo.setMedium('test-medium');
campaignInfo.setSource('test-source');
campaignInfo.setName('test-name');
linkInfo.setCampaignInfo(campaignInfo);
Set the data structure of social sharing identifier information in AppLinking
zh
设置 AppLinking 中社交分享标识信息
example
let linkInfo = new huawei.agc.applinking.AppLinking();
let socialBuilder = new huawei.agc.applinking.SocialCardInfo();
socialBuilder.setDescription('it'saexample');
socialBuilder.setImageUrl('http://lcywzm.cn/temp/huatu1/res/avg/fc/fcd923bf-ab2b-4a2a-87cd-0cdc647ba006.1e14a.jpg');
socialBuilder.setTitle('AppLinking Test');
linkInfo.setSocialCardInfo(socialBuilder);
Obtains a long link Unnecessary information, no need to call
用于获取 AppLinking 长链接地址 不需要的信息类,可以不传