Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AGCResolvedLinkData

en

Represents the data class of AppLinking

zh

AppLinking 数据包装类

Hierarchy

Index

Constructors

constructor

Properties

campaignMedium

campaignMedium: string

campaignName

campaignName: string

campaignSource

campaignSource: string

clickTimeStamp

clickTimeStamp: string

code

Optional data

data: any

deepLink

deepLink: string

Optional errMsg

errMsg: string

minAppVersion

minAppVersion: number

originData

originData: Object

socialDescription

socialDescription: string

socialImageUrl

socialImageUrl: string

socialTitle

socialTitle: string

Methods

getCampaignMedium

  • getCampaignMedium(): string
  • en

    Obtains the campaign medium.

    zh

    获取链接活动媒介。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getCampaignMedium: ', data.getCampaignMedium());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getCampaignName

  • getCampaignName(): string
  • en

    Obtains the campaign name displayed during social sharing.

    zh

    获取链接活动名称。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getCampaignName: ', data.getCampaignName());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getCampaignSource

  • getCampaignSource(): string
  • en

    Obtains the campaign source.

    zh

    获取链接活动来源。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getCampaignSource: ', data.getCampaignSource());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getClickTimestamp

  • getClickTimestamp(): string
  • en

    Obtains the time when a link of AppLinking is tapped.

    zh

    获取 AppLinking 被点击的时间

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getClickTimestamp: ', data.getClickTimestamp());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getDeepLink

  • getDeepLink(): string
  • en

    Obtains the deep link contained in a link of AppLinking.

    zh

    获取 AppLinking 中包含的 DeepLink 地址

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getDeepLink: ', data.getDeepLink());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getMinimumAppVersion

  • getMinimumAppVersion(): number
  • deprecated
    en

    Obtains the earliest version of an app where a link of AppLinking can be properly opened.

    zh

    获取访问链接所需的应用的最低版本号

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getMinimumAppVersion: ', data.getMinimumAppVersion());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns number

    earliest version of an app

getSocialDescription

  • getSocialDescription(): string
  • en

    Obtains the card description of a link of App Linking displayed during social sharing.

    zh

    获取链接社交卡片描述信息。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getSocialTitle: ', data.getSocialTitle());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getSocialImageUrl

  • getSocialImageUrl(): string
  • en

    Obtains the image of a link of App Linking displayed during social sharing.

    zh

    获取链接社交卡片图片。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getSocialImageUrl: ', data.getSocialImageUrl());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

getSocialTitle

  • getSocialTitle(): string
  • en

    Card title of a link of App Linking displayed during social sharing.

    zh

    获取链接社交卡片标题。

    example
    huawei.agc.applinking.appLinkingService.on(huawei.agc.applinking.AGC_APP_LINKING_EVENT_LISTENER_NAME.RECEIVE_LINK_CALLBACK, (data) => {
        if (data.code === 1) {
            console.log('getSocialTitle: ', data.getSocialTitle());
        }
    }, this);
    huawei.agc.applinking.appLinkingService.getAppLinking();
    

    Returns string

Generated using TypeDoc