removeCredential method

void removeCredential(
  1. NSURLCredential credential, {
  2. required NSURLProtectionSpace forProtectionSpace,
  3. NSDictionary? options,
  4. required NSURLSessionTask task,
})

removeCredential:forProtectionSpace:options:task:

Implementation

void removeCredential(
  NSURLCredential credential, {
  required NSURLProtectionSpace forProtectionSpace,
  objc.NSDictionary? options,
  required NSURLSessionTask task,
}) {
  objc.checkOsVersionInternal(
    'NSURLCredentialStorage.removeCredential:forProtectionSpace:options:task:',
    iOS: (false, (8, 0, 0)),
    macOS: (false, (10, 10, 0)),
  );
  _objc_msgSend_mlcr8l(
    this.ref.pointer,
    _sel_removeCredential_forProtectionSpace_options_task_,
    credential.ref.pointer,
    forProtectionSpace.ref.pointer,
    options?.ref.pointer ?? ffi.nullptr,
    task.ref.pointer,
  );
}