Package com.iplateia.sorisdk
Interface ILocationProvider
-
- All Implemented Interfaces:
public interface ILocationProviderInterface for delegate the location to be sent to the server. The location can be used to narrow down the campaign to a specific location.
-
-
Method Summary
Modifier and Type Method Description abstract LocationgetLocation()Provide the location of the device. -
-
Method Detail
-
getLocation
abstract Location getLocation()
Provide the location of the device. To prevent battery drain, you may cache the location and update it periodically.
For example, you can use google play service's FusedLocationProviderClient to get the location.
- Returns:
The current location of the device.
-
-
-
-