UNPKG

mazey-wechat-launch-app

Version:
62 lines 1.92 kB
export interface MenuShareTimelineOptions { title: string; link: string; imgUrl: string; success: () => void; cancel: () => void; } export interface MenuShareAppMessageOptions { title: string; desc: string; link: string; imgUrl: string; type: string; dataUrl: string; success: () => void; cancel: () => void; } export type LAUNCH_APP_SHARE_TIMELINE = (options: MenuShareTimelineOptions) => void; export type LAUNCH_APP_SHARE_APP_MESSAGE = (options: MenuShareAppMessageOptions) => void; export interface retVal { LAUNCH_APP_UPDATE(data: any): void; LAUNCH_APP_BEFORE_DESTROY(): void; LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER(): void; LAUNCH_APP_SHARE_TIMELINE: LAUNCH_APP_SHARE_TIMELINE; LAUNCH_APP_SHARE_APP_MESSAGE: LAUNCH_APP_SHARE_APP_MESSAGE; start(data: any): void; update(data: any): void; destroy(): void; } /** * Launch App * * @returns {void} */ declare const _default: (options?: { weixinJsSdkTicket?: string; launchContainerQuery?: string; genTagPrefixStr?: string; launchShowWeixinToBrowserImgUrl?: string; canShowWeixinToBrowser?: boolean; launchShowWeixinToBrowserClassName?: string; launchBtnClassName?: string; launchBtnStyle?: string; launchBtnText?: string; launchErrorLink?: string; extInfo?: string; serviceAccountAppId?: string; wexinServiceAccountAppId?: string; openPlatformMobileAppId?: string; canContinuousUpdating?: boolean; onMenuShareTimelineOptions?: MenuShareTimelineOptions; onMenuShareAppMessageOptions?: MenuShareAppMessageOptions; isConClosed?: boolean; isWxDebug?: boolean; openTagList?: string[]; canLaunchApp?: (data: any) => boolean; canFireErrorLinkDirectly?: () => boolean; launchBtnClick?: () => void; launchReady?: () => void; }) => retVal; export default _default; //# sourceMappingURL=index.d.ts.map