目录

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.

Public Fields

None.

Constructor

None.

Public Method Summary

Return typeMethod name
static intinitialize(Context context)

Public Methods

Method
public static int initialize(Context context)
Initializes the HMS Core Map SDK so that its classes are ready for use.


Parameters:

Parameter nameParameter desc
contextRequired for obtaining the necessary SDK resources. This parameter cannot be set to null.


Return:

Return typeParameter desc
intConnection result code.