Class LastKnownLocationInfoManager
java.lang.Object
org.prebid.mobile.rendering.sdk.BaseManager
org.prebid.mobile.rendering.sdk.deviceData.managers.LastKnownLocationInfoManager
- All Implemented Interfaces:
LocationInfoManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the latitude.Get the longitude.protected booleanisBetterLocation(android.location.Location location, android.location.Location currentBestLocation) Determine whether one Location reading is better than the current Location fixbooleanvoidMethods inherited from class org.prebid.mobile.rendering.sdk.BaseManager
getContext
-
Constructor Details
-
LastKnownLocationInfoManager
public LastKnownLocationInfoManager(android.content.Context context)
-
-
Method Details
-
resetLocation
public void resetLocation()- Specified by:
resetLocationin interfaceLocationInfoManager
-
isBetterLocation
protected boolean isBetterLocation(android.location.Location location, android.location.Location currentBestLocation) Determine whether one Location reading is better than the current Location fix- Parameters:
location- The new Location that you want to evaluatecurrentBestLocation- The current Location fix, to which you want to compare the new one
-
getLatitude
Description copied from interface:LocationInfoManagerGet the latitude.- Specified by:
getLatitudein interfaceLocationInfoManager- Returns:
- the latitude
- See Also:
-
getLongitude
Description copied from interface:LocationInfoManagerGet the longitude.- Specified by:
getLongitudein interfaceLocationInfoManager- Returns:
- the longitude
- See Also:
-
getAccuracy
- Specified by:
getAccuracyin interfaceLocationInfoManager
-
getElapsedSeconds
- Specified by:
getElapsedSecondsin interfaceLocationInfoManager
-
isLocationAvailable
public boolean isLocationAvailable()- Specified by:
isLocationAvailablein interfaceLocationInfoManager
-