Package 

Class EloConfiguration


  • 
    public final class EloConfiguration
    
                        

    Full SDK configuration. Construct directly and pass to Elo.configure; for the common case, prefer the Elo.configure(context, publisherId, adUnitId) convenience which builds a minimal configuration internally.

    • Method Detail

      • getBaseUrl

         final String getBaseUrl()

        Optional API base URL override for sample apps, staging builds, and internal tools. Leave null in production integrations so the SDK uses its build-type default endpoint.

      • getShareGeoLocation

         final Boolean getShareGeoLocation()

        Enables Prebid-style passive geo sharing. When enabled, the SDK reads an already-authorized last-known device location (if one is available) and sends it as OpenRTB device.geo; it never requests location permission itself. Apps must declare a platform location permission (ACCESS_COARSE_LOCATION and/or ACCESS_FINE_LOCATION) for any geo to flow — without one, coordinates are simply omitted.

        On by default since 0.1.8 (previously opt-in), matching iOS 0.1.6. Opt out with shareGeoLocation = false here or Elo.setShareGeoLocation at runtime. Coordinates are never sent for coppa/tfua configurations regardless of this flag. Note the settings-derived device.geo.country / device.geo.utcoffset signals are not location data and are unaffected by this flag.

      • getGeoLocationPrecision

         final Integer getGeoLocationPrecision()

        Number of decimal places used when rounding passive geo coordinates (clamped to 0–6). The default of 2 (~1.1 km) is a privacy-conscious default. Set to null to keep full precision.