Submit consent to EULA
The SDK allows for the host application to Accept/Reject the EULA. The EULA status is obtained by using the UserService to get the User data.
Accept Terms
Concrete example
let service = EULAService()
service.acceptTerms(then: { result in
switch result {
case .success:
// terms accepted
case .failure:
// error
})val eulaService = EulaService()
eulaService.submitConsent(EulaService.Consent.ACCEPT) { result: Result<Unit> ->
if (result?.value == null || result.throwable != null) {
// failure
} else {
// Success
}
})Last updated