HERE Android SDK Developer's Guide

LocationMethod

The enumeration LocationMethod is a member of com.here.android.mpa.common.PositioningManager.

Enumeration Summary

public static final enumeration PositioningManager.LocationMethod

extends java.lang.Enum, java.lang.Object

Represents values describing the location method.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in LocationMethod
Fields

public static final LocationMethod NONE

Device positioning is not active.

public static final LocationMethod GPS

Positioning is provided using a GPS device.

public static final LocationMethod NETWORK

Positioning is provided using a wireless network.

public static final LocationMethod GPS_NETWORK

Positioning is provided using a wireless network, or a GPS device, or both.

Method Summary

Table 2. Methods in LocationMethod
Methods

public static LocationMethod valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static PositioningManager.LocationMethod[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Represents values describing the location method.

Enum Constant Details

public static final LocationMethod NONE

Device positioning is not active.

public static final LocationMethod GPS

Positioning is provided using a GPS device.

public static final LocationMethod NETWORK

Positioning is provided using a wireless network.

public static final LocationMethod GPS_NETWORK

Positioning is provided using a wireless network, or a GPS device, or both.

Method Details

public static LocationMethod valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static PositioningManager.LocationMethod[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.