removeCredentials method

List<ArcGISCredential> removeCredentials(
  1. {required Uri uri}
)

Removes any credentials from the ArcGISCredentialStore that would be shared with a service endpoint represented by the provided URL.

Parameters:

  • uri — The URL to search for and remove credentials from the store.

Return Value: An array of credentials that were removed.

Implementation

List<ArcGISCredential> removeCredentials({required Uri uri}) {
  final coreURI = _CString(uri.toString());
  final arrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISCredentialStore_removeCredentials(
        _handle, coreURI.bytes, errorHandler);
  });
  return arrayHandle.toList();
}