@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...
    • 查询当前账号与当前小程序作者的关注关系。

      返回 Promise<AuthorFollowStatus>

      直接返回 AuthorFollowStatus 枚举值;已关注包含互关,未登录返回 NotFollowing。

      HbMiniProgramSDKError 查询失败会 reject,不缓存失败结果。

      不触发登录、不弹框、不消耗次数;没有业务入参,不需要 userInfo/network 权限。

      import hbSDK, { AuthorFollowStatus } from '@heybox/hb-sdk'

      const status = await hbSDK.user.getFollowStatus()
      const isAuthor = status === AuthorFollowStatus.Self

      0.9.5

      android none

      ios none

      ohos none

      windows none

      macos none

      android

      ios

      ohos

      windows

      macos