public final class MapsInitializer
继承自Object的final类,如果在获取地图之前需要使用某些功能,请使用此类初始化华为地图服务SDK。
无
无
| Return type | Method name |
| static int | initialize(Context context) |
| Method |
| public static int initialize(Context context) |
| 开发者调用此API进行初始化华为地图服务SDK,以便后续能够使用其中的相关的类。 |
Parameters:
| Parameter name | Parameter desc |
| context | 用来获取必要的SDK资源,不能为空。 |
Return:
| Return type | Parameter desc |
| int | 连接结果错误代码。 |