Dissociate Profiles
Client requirements
Dissociate profiles from the current device
- iOS (Swift)
- Android (Java)
trustfactorClient.dissociateProfiles([<TFApplicationProfile.RawIdentifier>]) { result, correlationId in
switch result {
case .success(let dissociationResult):
// Result contains two lists.
// One with profiles that were removed and another with profiles that failed to be removed.
case .failure(let error):
// handle errors
}
}
trustfactorClient.dissociateProfiles(profilesIDs: <List<String>>, new Result<TFProfilesDissociationResult, Error>() {
@Override
public void onSuccess(TFProfilesDissociationResult result, String correlationId) {
// Result type: TFProfilesDissociationResult
}
@Override
public void onFailure(Error error, String correlationId) {
// handle errors
}
});
Dissociate profiles from other devices
Note: If the current device public key is passed it will have the same effect as calling the previous API.
- iOS (Swift)
- Android (Java)
trustfactorClient.dissociateProfiles([<TFApplicationProfile.RawIdentifier>], from: <TFApplicationProfileDevice.KeyIdentifier>) { result, correlationId in
switch result {
case .success(let dissociationResult):
// Result contains two lists.
// One with profiles that were removed and another with profiles that failed to be removed.
case .failure(let error):
// handle errors
}
}
trustfactorClient.dissociateProfiles(profilesId: <String>, deviceKey: <String>, new Result<Boolean, Error>() {
@Override
public void onSuccess(Boolean result, String correlationId) {
// value is a boolean we can ignore
}
@Override
public void onFailure(Error error, String correlationId) {
// handle errors
}
});