点击或拖拽改变大小

WeiXinApi 类

微信组件APi
继承层次

命名空间:  Smobiler.Plugins
程序集:  Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.641.16928
语法
public class WeiXinApi : MobileComponent

WeiXinApi 类型公开以下成员。

构造函数
  名称说明
公共方法WeiXinApi
初始化 WeiXinApi 类的一个新实例
Top
属性
  名称说明
公共属性AppID
公众号的唯一标识
公共属性Form
获取组件所属窗体
(继承自 MobileComponent。)
公共属性Name
获取或设置控件的名称。
(继承自 MobileComponent。)
公共属性Parent
获取控件的父控件MobileParentControl。
(继承自 MobileComponent。)
Top
方法
  名称说明
公共方法checkJsApi
是否支持指定JS接口
公共方法config
注入权限验证配置
公共方法getLocation
获取地理位置
公共方法login
微信登陆
公共方法minipay
跳转微信支付界面,只在小程序中有效
公共方法NavigateBackWithWeixin
小程序返回页面,只在小程序中有效
公共方法pay
支付
公共方法previewImage
微信中预览图片
公共方法RouteWithWeixin
跳转指定页面
公共方法scanQRCode(ComponentOnResultHandler)
微信扫一扫
公共方法scanQRCode(WeiXinApiScanResultType, ComponentOnResultHandler)
微信扫一扫
公共方法scanQRCode(WeiXinApiScanResultType, WeiXinApiScanCodeType, ComponentOnResultHandler)
微信扫一扫
公共方法shareToSession
分享给好友
公共方法shareToTimeline
分享到朋友圈
公共方法WeiXinApiCreatenNonce_str
创建随机字符串
公共方法WeiXinApiCreatenTimestamp
创建时间戳
公共方法WeiXinApiGetSignature
config时获取签名信息
Top
事件
  名称说明
公共事件Afterlogin
登陆后发生。
公共事件AfterMiniPay
微信小程序支付后发生。
Top
参见