getCredential method

ArcGISCredential? getCredential(
  1. {required Uri uri}
)

Returns the best matched credential in the ArcGISCredentialStore for the given URL.

Parameters:

  • uri — The URL of an ArcGIS secured resource.

Return Value: An ArcGISCredential in the ArcGISCredentialStore that best matches the given URL.

Implementation

ArcGISCredential? getCredential({required Uri uri}) {
  final coreURI = _CString(uri.toString());
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISCredentialStore_getCredential(
        _handle, coreURI.bytes, errorHandler);
  });
  return ArcGISCredential._fromHandle(objectHandle);
}