Class BWAuthManagerImpl

java.lang.Object
com.baidu.mapapi.common.auth.BWAuthManagerImpl
All Implemented Interfaces:
IBWAuthListener, IBWAuthManager

public final class BWAuthManagerImpl extends Object implements IBWAuthManager, IBWAuthListener
Created by hexiaojiang on 2025/2/24
  • Method Details

    • getInstance

      public static IBWAuthManager getInstance()
    • loadAuth

      public void loadAuth(android.content.Context context, BWAuthLicenseType type, boolean needActive)
      Description copied from interface: IBWAuthManager
      加载所需要的权限
      Specified by:
      loadAuth in interface IBWAuthManager
      Parameters:
      context - app context
      needActive - 是否需要激活AK下配额, 传true会默认激活,消耗配额 传false仅查询是否有权限,需要提前录入设备id
      See Also:
    • loadExtMapAuth

      public void loadExtMapAuth(android.content.Context context, boolean needActive, BWAuthLicenseType type)
    • loadGuideInfoAuth

      public void loadGuideInfoAuth(android.content.Context context, boolean needActive, BWAuthLicenseType type)
    • addAuthListener

      public void addAuthListener(IBWAuthListener listener)
      Description copied from interface: IBWAuthManager
      设置鉴权监听
      Specified by:
      addAuthListener in interface IBWAuthManager
      Parameters:
      listener - 监听回调
    • removeAuthListener

      public void removeAuthListener(IBWAuthListener listener)
      Description copied from interface: IBWAuthManager
      设置鉴权监听
      Specified by:
      removeAuthListener in interface IBWAuthManager
      Parameters:
      listener - 监听回调
    • auth

      public void auth(BWAuthResult result)
      Description copied from interface: IBWAuthListener
      鉴权接口回调
      Specified by:
      auth in interface IBWAuthListener
      Parameters:
      result - 鉴权结果
    • hasMultiAuth

      public boolean hasMultiAuth()