Skip to content
Titanium SDK
Version12.6.4

You are reading 12.6.4. See this page in 13.4.1.

LocationProviderDict

pseudoAndroidiPhoneiPadmacOS

Simple object describing a location provider.

The accuracy and power values correspond to constants defined in the Android API. See android.location.Criteria in the Android API Reference.

These values are generalizations. In general, a provider with coarse accuracy will provide less accurate results than a provider with fine accuracy, and a provider with high power requirements will use more battery power than a provider with low power requirements.

Properties 3

accuracy

Number

Accuracy of the location provider, either fine (1) or coarse (2).

name

String

Name of the location provider.

power

Number

Power consumption for this provider, either low (1), medium (2), or high (3).