public final class MapsInitializer
A final class that extends Object. If certain features need to be used before a map is obtained, use this class to initialize the HMS Core Map SDK.
None.
None.
| Return type | Method name |
| static int | initialize(Context context) |
| Method |
| public static int initialize(Context context) |
| Initializes the HMS Core Map SDK so that its classes are ready for use. |
Parameters:
| Parameter name | Parameter desc |
| context | Required for obtaining the necessary SDK resources. This parameter cannot be set to null. |
Return:
| Return type | Parameter desc |
| int | Connection result code. |