systemShare.d.ts 997 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * 唤起iOS & Android系统分享菜单 请求参数定义
  3. * @apiName biz.util.systemShare
  4. */
  5. export interface IBizUtilSystemShareParams {
  6. /** 1.Link 2.图片,限制 images 数组长度1-9 3.图片,图文限制 images 数组长度1-9, title:可选 4.纯文本,仅支持Android微信好友 */
  7. type: number;
  8. /** 分享标题,可选 */
  9. title?: string;
  10. /** 分享链接,可选 */
  11. url?: string;
  12. /** 分享链接缩略图,可选 */
  13. thumbImage?: string;
  14. /** 分享图片,可选 */
  15. images: string[];
  16. }
  17. /**
  18. * 唤起iOS & Android系统分享菜单 返回结果定义
  19. * @apiName biz.util.systemShare
  20. */
  21. export interface IBizUtilSystemShareResult {
  22. [key: string]: any;
  23. }
  24. /**
  25. * 唤起iOS & Android系统分享菜单
  26. * @apiName biz.util.systemShare
  27. * @supportVersion ios: 4.5.10 android: 4.5.10
  28. */
  29. export declare function systemShare$(params: IBizUtilSystemShareParams): Promise<IBizUtilSystemShareResult>;
  30. export default systemShare$;