Created
March 3, 2020 17:18
-
-
Save bitomule/2c236536c6acf0b5793e2a454fb3e215 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class DidomiServiceProxy { | |
static let shared = DidomiServiceProxy() | |
private static let apiKey = "xxxxxxxxx" | |
private let service = Didomi.shared | |
init() { | |
service.onReady { [weak self] in | |
print("DIDOMI READY") | |
} | |
} | |
func start() { | |
service.initialize(apiKey: DidomiServiceProxy.apiKey, | |
localConfigurationPath: nil, | |
remoteConfigurationURL: nil, | |
providerId: nil, | |
disableDidomiRemoteConfig: false) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment