canBeUsedForUri method

bool canBeUsedForUri(
  1. Uri uri
)

Checks if this configuration can be used for the given URL.

Parameters:

  • uri — The URL to check.

Return Value: True if this configuration can be used, otherwise false.

Implementation

bool canBeUsedForUri(Uri uri) {
  final coreURI = _CString(uri.toString());
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OAuthUserConfiguration_canBeUsedForURL(
        _handle, coreURI.bytes, errorHandler);
  });
}