Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SocialCardInfo

Hierarchy

  • SocialCardInfo

Index

Properties

social_desc

social_desc: string

social_image

social_image: string

social_title

social_title: string

Methods

setDescription

  • setDescription(desc: string): void
  • en

    Sets the preview description displayed during social sharing.

    zh

    设置社交分享标识信息中的预览说明信息。

    example
    socialBuilder = new huawei.agc.applinking.SocialCardInfo();
    socialBuilder.setDescription('it is a example');
    

    Parameters

    • desc: string

      Preview description displayed during social sharing.

    Returns void

setImageUrl

  • setImageUrl(url: string): void
  • en

    Sets the address of the preview image displayed during social sharing.

    zh

    设置社交分享标识信息中的预览图片地址。

    example
    let socialBuilder = new huawei.agc.applinking.SocialCardInfo();
    socialBuilder.setImageUrl('http://lcywzm.cn/temp/huatu1/res/avg/fc/fcd923bf-ab2b-4a2a-87cd-0cdc647ba006.1e14a.jpg');
    

    Parameters

    • url: string

      Address of the preview image displayed during social sharing.

    Returns void

setTitle

  • setTitle(title: string): void
  • en

    Sets the address of the preview title displayed during social sharing.

    zh

    设置社交分享标识信息中的预览标题地址

    example
    socialBuilder = new huawei.agc.applinking.SocialCardInfo();
    socialBuilder.setTitle('AppLinking Test');
    

    Parameters

    • title: string

      Address of the preview title displayed during social sharing.

    Returns void

Generated using TypeDoc