# 半屏页面能力支持列表
半屏页面可使用能力几乎与小程序的完全一致,但会有一些约束,以下从新增 API 和原有 API 两个维度分别列出所有支持的 API
# 新增 API
- 上行消息:
wx.modelContext.getContext().sendFollowUpMessage() - 获取左上角关闭按钮位置信息:
wx.getDetailPageCloseButtonBoundingClientRect()
# 原有 API
原有 API 限制的能力如下表:
| 类型 | 分类 | 名称 |
|---|---|---|
| 接口 | 跳转 | wx.restartMiniProgram |
| wx.openOfficialAccountProfile | ||
| wx.openOfficialAccountChat | ||
| wx.openOfficialAccountArticle | ||
| wx.openInquiriesTopic | ||
| wx.openEmbeddedMiniProgram | ||
| wx.onEmbeddedMiniProgramHeightChange | ||
| wx.offEmbeddedMiniProgramHeightChange | ||
| wx.navigateToMiniProgram | ||
| wx.navigateBackMiniProgram | ||
| wx.exitMiniProgram | ||
| 路由 | wx.switchTab | |
| wx.rewriteRoute | ||
| wx.reLaunch | ||
| wx.redirectTo | ||
| wx.navigateTo | ||
| wx.navigateBack | ||
| wx.router | ||
| router.addRouteBuilder | ||
| router.getRouteContext | ||
| router.removeRouteBuilder | ||
| 聊天工具 | wx.shareVideoToGroup | |
| wx.shareImageToGroup | ||
| wx.shareFileToGroup | ||
| wx.shareEmojiToGroup | ||
| wx.shareAppMessageToGroup | ||
| wx.selectGroupMembers | ||
| wx.openChatTool | ||
| wx.notifyGroupMembers | ||
| wx.getChatToolInfo | ||
| wx.enterChatToolMode | ||
| 地图 | MapContext.openMapApp | |
| 视频号 | wx.reserveChannelsLive | |
| wx.openChannelsUserProfile | ||
| wx.openChannelsLiveNoticeInfo | ||
| wx.openChannelsLive | ||
| wx.openChannelsEvent | ||
| wx.openChannelsActivity | ||
| wx.getChannelsShareKey | ||
| wx.getChannelsLiveNoticeInfo | ||
| wx.getChannelsLiveInfo | ||
| 微信客服 | wx.openCustomerServiceChat | |
| 微信表情 | wx.openStickerSetView | |
| wx.openStickerIPView | ||
| wx.openSingleStickerView | ||
| 广告 | wx.getShowSplashAdStatus | |
| wx.createRewardedVideoAd | ||
| wx.createInterstitialAd | ||
| 组件 | 广告 | ad |
| ad-custom | ||
| 导航 | functional-page-navigator | |
| navigator |