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: <String>, tcVersion: <String>, tcSHA256Sum: <String>, new Result<Boolean, Error>() {
@Override
public void onSuccess(Boolean value) {
// value is a boolean we can ignore
}
@Override
public void onFailure(Error error) {
// handle error
}
});