Dissociate Profiles
Client requirements
Dissociate profiles from the current device
- iOS (Swift)
- Android (Java)
trustfactorClient.dissociateApplicationProfiles([<TFApplicationProfile.ID>]) { 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.dissociateApplicationProfiles(profileIds, (result) -> result.fold(
(TFProfilesDissociationResponse dissociationResult, String correlationId) -> {
// handle success
},
(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.dissociateApplicationProfiles([<TFApplicationProfile.ID>], 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.dissociateApplicationProfiles(profileIds, deviceKey, (result) -> result.fold(
(TFProfilesDissociationResponse dissociationResult, String correlationId) -> {
// handle success
},
(Error error, String correlationId) -> {
// handle errors
}
));