Interface ILocationProvider

  • All Implemented Interfaces:

    
    public interface ILocationProvider
    
                        

    Interface for delegate the location to be sent to the server. The location can be used to narrow down the campaign to a specific location.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Location getLocation() Provide the location of the device.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.