@@ -3056,10 +3056,16 @@ GameRecorderShareButton.offTap(listener) // 需传入与监听时同一个的函
3056
3056
errMsg: string
3057
3057
}
3058
3058
interface GetPhoneNumberOption {
3059
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
3060
+ complete?: GetPhoneNumberCompleteCallback
3061
+ /** 接口调用失败的回调函数 */
3062
+ fail?: GetPhoneNumberFailCallback
3059
3063
/** 手机号实时验证,向用户申请,并在用户同意后,快速填写和实时验证手机号 [具体说明](https://developers.weixin.qq.com/minigame/dev/guide/open-ability/getRealtimePhoneNumber.html)。 */
3060
3064
isRealtime?: boolean
3061
3065
/** 当手机号快速验证或手机号实时验证额度用尽时,是否对用户展示“申请获取你的手机号,但该功能使用次数已达当前小程序上限,暂时无法使用”的提示,默认展示。 */
3062
3066
phoneNumberNoQuotaToast?: boolean
3067
+ /** 接口调用成功的回调函数 */
3068
+ success?: GetPhoneNumberSuccessCallback
3063
3069
}
3064
3070
interface GetPotentialFriendListOption {
3065
3071
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
@@ -15034,7 +15040,14 @@ wx.getBluetoothDevices({
15034
15040
*
15035
15041
* 需要基础库: `2.15.0`
15036
15042
*
15037
- * 获取视频号直播信息 */
15043
+ * 获取视频号直播信息
15044
+ *
15045
+ * **常见错误码说明**
15046
+ *
15047
+ * 100008 视频号需要认证
15048
+ * 40097 入参异常
15049
+ * 1416104 视频号获取到的数据为空
15050
+ * 1416100 非法的视频号id */
15038
15051
getChannelsLiveInfo(option: GetChannelsLiveInfoOption): void
15039
15052
/** [wx.getChannelsLiveNoticeInfo(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/channels/wx.getChannelsLiveNoticeInfo.html)
15040
15053
*
@@ -17382,7 +17395,7 @@ wx.offNetworkWeakChange()
17382
17395
* ****
17383
17396
*
17384
17397
* ## 注意事项
17385
- * - 转发图片说明:仅当自定义分享图片权限被封禁时用 imageUrlId,其他情况都会用 imageUrl。 imageUrl 不填时使用游戏画面截图 。 */
17398
+ * - 转发图片说明:imageUrl, imageUrlId 都存在时,优先使用 imageUrl。 imageUrl,imageUrlId 都不填时使用游戏画面截图 。 */
17386
17399
onShareAppMessage(
17387
17400
/** 用户点击右上角菜单的「转发」按钮时触发的事件的监听函数 */
17388
17401
listener: OnShareAppMessageCallback
@@ -17405,7 +17418,7 @@ wx.offNetworkWeakChange()
17405
17418
* ****
17406
17419
*
17407
17420
* ## 注意事项
17408
- * - 转发图片说明:仅当自定义分享图片权限被封禁时用 imageUrlId,其他情况都会用 imageUrl。 imageUrl 不填时使用当前游戏的icon 。 */
17421
+ * - 转发图片说明:imageUrl, imageUrlId 都存在时,优先使用 imageUrl。 imageUrl,imageUrlId 都不填时使用当前游戏的icon 。 */
17409
17422
onShareTimeline(
17410
17423
/** 用户点击右上角菜单的「分享到朋友圈」按钮时触发的事件的监听函数 */
17411
17424
listener: OnShareTimelineCallback
@@ -18701,7 +18714,7 @@ try {
18701
18714
* ****
18702
18715
*
18703
18716
* ## 注意事项
18704
- * - 转发图片说明:仅当自定义分享图片权限被封禁时用 imageUrlId,其他情况都会用 imageUrl。 imageUrl 不填时使用游戏画面截图 。 */
18717
+ * - 转发图片说明:imageUrl, imageUrlId 都存在时,优先使用 imageUrl。 imageUrl,imageUrlId 都不填时使用游戏画面截图 。 */
18705
18718
shareAppMessage(option: ShareAppMessageOption): void
18706
18719
/** [wx.shareMessageToFriend(Object object)](https://developers.weixin.qq.com/minigame/dev/api/open-api/data/wx.shareMessageToFriend.html)
18707
18720
*
@@ -19759,6 +19772,12 @@ wx.writeBLECharacteristicValue({
19759
19772
result: GetNetworkTypeSuccessCallbackResult
19760
19773
) => void
19761
19774
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
19775
+ type GetPhoneNumberCompleteCallback = (res: GeneralCallbackResult) => void
19776
+ /** 接口调用失败的回调函数 */
19777
+ type GetPhoneNumberFailCallback = (res: GeneralCallbackResult) => void
19778
+ /** 接口调用成功的回调函数 */
19779
+ type GetPhoneNumberSuccessCallback = (res: GeneralCallbackResult) => void
19780
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
19762
19781
type GetPotentialFriendListCompleteCallback = (
19763
19782
res: GeneralCallbackResult
19764
19783
) => void
0 commit comments