-
public final class EloConfigurationFull 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.
-
-
Field Summary
Fields Modifier and Type Field Description private final EloNetworkConfigurationeloprivate final Booleancoppaprivate final Booleantfuaprivate final LogLevellogLevelprivate final StringbaseUrlprivate final BooleanshareGeoLocationprivate final IntegergeoLocationPrecision
-
Constructor Summary
Constructors Constructor Description EloConfiguration(EloNetworkConfiguration elo, Boolean coppa, Boolean tfua, LogLevel logLevel, String baseUrl, Boolean shareGeoLocation, Integer geoLocationPrecision)
-
Method Summary
Modifier and Type Method Description final EloNetworkConfigurationgetElo()final BooleangetCoppa()final BooleangetTfua()final LogLevelgetLogLevel()final StringgetBaseUrl()Optional API base URL override for sample apps, staging builds, and internal tools. final BooleangetShareGeoLocation()Enables Prebid-style passive geo sharing. final IntegergetGeoLocationPrecision()Number of decimal places used when rounding passive geo coordinates (clamped to 0–6). -
-
Method Detail
-
getElo
final EloNetworkConfiguration getElo()
-
getLogLevel
final LogLevel getLogLevel()
-
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_LOCATIONand/orACCESS_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 = falsehere or Elo.setShareGeoLocation at runtime. Coordinates are never sent for coppa/tfua configurations regardless of this flag. Note the settings-deriveddevice.geo.country/device.geo.utcoffsetsignals 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 tonullto keep full precision.
-
-
-
-