Triton Mobile SDK for Android 3.5.1 This is a custom android player made by Triton Digital

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
com.tritondigital.util.LocationUtil Class Reference

Contains utility methods to help use the location manager in an app. More...

## Static Public Member Functions
static void | prefetchNetworkLocation (Context context)
| Prefetch the network provider location in order to increase the chances of having a valid location when "getLastKnownLocation()" will get called.
static Location | getLastKnownNetworkLocation (Context context)
| Returns the last known network provider location.
static boolean | isAnyLocationProviderEnabled (Context context)
| Tells if any location provider is enabled.

## Detailed Description

Contains utility methods to help use the location manager in an app.

## Member Function Documentation

## ◆ isAnyLocationProviderEnabled()

static boolean com.tritondigital.util.LocationUtil.isAnyLocationProviderEnabled | ( | Context | context | ) |
| static

Tells if any location provider is enabled.

Ignores security exceptions.

The documentation for this class was generated from the following file:

- util/src/main/java/com/tritondigital/util/LocationUtil.java