1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-wechat/index.d.ts
2020-08-01 21:26:56 +08:00

18 lines
792 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 向微信注册应用
* 必须先注册应用,在 Android 后面的调用才会起作用
* @param appid 通过微信开放平台,[获取appid](https://open.weixin.qq.com/)
* @param universalLink Universal Link(通用链接)是苹果在 iOS9 推出的,一种能够方便的通过传统 HTTPS 链接来启动 APP 的功能,可以使用相同的网址打开网址和 APP。
*/
export function registerApp(appid: string, universalLink: string): void;
/**
* 检查微信是否已被用户安装
* 微信已安装返回 `true`,未安装返回 `false`。
*/
export function isWXAppInstalled(): Promise<Boolean>;
/**
* 判断当前微信的版本是否支持 OpenApi
* 支持返回 true不支持返回 false
*/
export function isWXAppSupportApi(): Promise<Boolean>;