Prebid: NSObject

The Prebid class is a singleton that enables the user to apply global settings.


Object

Prebid

Properties

shareGeoLocation: Optional Bool, if this flag is True AND the app collects the user’s geographical location data, Prebid Mobile will send the user’s geographical location data to Prebid Server. If this flag is False OR the app does not collect the user’s geographical location data, Prebid Mobile will not populate any user geographical location information in the call to Prebid Server. The default setting is false.

if let shareGeoLocation = Prebid.shared.shareGeoLocation { 
    //do something with shareGeoLocation
}

guard let shareGeoLocation = Prebid.shared.shareGeoLocation else { 
    print("Error retrieving shareGeoLocation")
    return
}

//do something with shareGeoLocation

let Prebid.shared.shareGeoLocation = true