Register a device
caution
Make sure to accept the latest Terms and Conditions first, otherwise an error will be returned.
Client requirements
- iOS (Swift)
- Android (Java)
trustfactorClient.register(pin: <String>) { result, correlationId in
switch result {
case .failure(let error):
// handle error
case .success(_):
// handle success
}
}
trustfactorClient.register(pin, (result) -> result.fold(
(Boolean value, String correlationId) -> {
// value is a boolean we can ignore
},
(Error error, String correlationId) -> {
// handle error
}
));