Package com.baidu.mapapi.common.auth
Class BWAuthManagerImpl
java.lang.Object
com.baidu.mapapi.common.auth.BWAuthManagerImpl
- All Implemented Interfaces:
IBWAuthListener,IBWAuthManager
Created by hexiaojiang
on 2025/2/24
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthListener(IBWAuthListener listener) 设置鉴权监听voidauth(BWAuthResult result) 鉴权接口回调static IBWAuthManagerbooleanvoidloadAuth(android.content.Context context, BWAuthLicenseType type, boolean needActive) 加载所需要的权限voidloadExtMapAuth(android.content.Context context, boolean needActive, BWAuthLicenseType type) voidloadGuideInfoAuth(android.content.Context context, boolean needActive, BWAuthLicenseType type) voidremoveAuthListener(IBWAuthListener listener) 设置鉴权监听
-
Method Details
-
getInstance
-
loadAuth
Description copied from interface:IBWAuthManager加载所需要的权限- Specified by:
loadAuthin interfaceIBWAuthManager- Parameters:
context- app contextneedActive- 是否需要激活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
Description copied from interface:IBWAuthManager设置鉴权监听- Specified by:
addAuthListenerin interfaceIBWAuthManager- Parameters:
listener- 监听回调
-
removeAuthListener
Description copied from interface:IBWAuthManager设置鉴权监听- Specified by:
removeAuthListenerin interfaceIBWAuthManager- Parameters:
listener- 监听回调
-
auth
Description copied from interface:IBWAuthListener鉴权接口回调- Specified by:
authin interfaceIBWAuthListener- Parameters:
result- 鉴权结果
-
hasMultiAuth
public boolean hasMultiAuth()
-