HERE Android SDK Developer's Guide

StatusListener

The interface StatusListener is a member of com.here.android.positioning.

Interface Summary

public abstract interface StatusListener

HERE positioning status listener interface definition.

[For complete information, see the section Interface Details]

Nested Class Summary

Table 1. Nested Classes in StatusListener
Nested Classes

public static final enumeration StatusListener.PositioningError

Positioning error types.

public static final enumeration StatusListener.ServiceError

Service error types.

Method Summary

Table 2. Methods in StatusListener
Methods

public abstract void onAirplaneModeEnabled ()

Device is set to airplane mode, preventing network usage and possibly Wi-Fi, Bluetooth and cellular scans.

public abstract void onBluetoothDisabled ()

Bluetooth is disabled in the device, preventing Bluetooth positioning.

public abstract void onCellDisabled ()

Phone radios are disabled, preventing outdoor cellular tower positioning.

public abstract void onGnssLocationDisabled ()

GNSS location provider is disabled, preventing outdoor and indoor gnss positioning.

public abstract void onNetworkLocationDisabled ()

Network location provider is disabled, preventing outdoor and indoor based network positioning.

public abstract void onOfflineModeChanged (boolean offline)

HERE SDK is set to run in offline mode, preventing online requests and on-demand radio map downloads.

public abstract void onPositioningError (StatusListener.PositioningError error)

Positioning failure.

public abstract void onServiceError (StatusListener.ServiceError error)

Service initialization failed.

public abstract void onWifiScansDisabled ()

Wi-Fi scans are disabled in the device, preventing outdoor and indoor Wi-Fi positioning.

Interface Details

HERE positioning status listener interface definition. Provides set of callbacks that offer more refined state information about the HERE positioning. For HERE positioning client these callbacks provide valuable information e.g. about the device state or settings that may prevent optimal positioning performance.

Method Details

public abstract void onAirplaneModeEnabled ()

Device is set to airplane mode, preventing network usage and possibly Wi-Fi, Bluetooth and cellular scans.

public abstract void onBluetoothDisabled ()

Bluetooth is disabled in the device, preventing Bluetooth positioning.

public abstract void onCellDisabled ()

Phone radios are disabled, preventing outdoor cellular tower positioning.

public abstract void onGnssLocationDisabled ()

GNSS location provider is disabled, preventing outdoor and indoor gnss positioning.

public abstract void onNetworkLocationDisabled ()

Network location provider is disabled, preventing outdoor and indoor based network positioning.

public abstract void onOfflineModeChanged (boolean offline)

HERE SDK is set to run in offline mode, preventing online requests and on-demand radio map downloads. Positioning is possible only for those areas that are already covered by the cache or previously downloaded radio maps.

Parameters:

  • offline

    If true offlne mode is enabled, if false offline mode is disabled.

public abstract void onPositioningError (StatusListener.PositioningError error)

Positioning failure.

Parameters:

  • error

    Detailed positioning error code.

See also:

StatusListener.PositioningError

public abstract void onServiceError (StatusListener.ServiceError error)

Service initialization failed.

Parameters:

  • error

    Detailed service error code.

See also:

StatusListener.ServiceError

public abstract void onWifiScansDisabled ()

Wi-Fi scans are disabled in the device, preventing outdoor and indoor Wi-Fi positioning.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.