Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HMS Core
The enhanced Map SDK for Android provides the native location capabilities. To use the high-precision location capability, perform the following steps to configure the location source for high-precision location.
Before turning on the location display switch, you need to set a location source (LocationSource) which can provide a display position for the location.
- private LocationSource.OnLocationChangedListener mLocationChangedListener;
- LocationSource hwLocationSource = new LocationSource() {
- @Override
- public void activate(LocationSource.OnLocationChangedListener listener) {
- mLocationChangedListener = listener;
- }
- @Override
- public void deactivate() {
- mLocationChangedListener = null;
- }
- };
- var mLocationChangedListener: LocationSource.OnLocationChangedListener? = null
- var hwLocationSource: LocationSource = object : LocationSource {
- override fun activate(listener: LocationSource.OnLocationChangedListener) {
- mLocationChangedListener = listener
- }
- override fun deactivate() {
- mLocationChangedListener = null
- }
- }
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.