URLSession_didReceiveChallenge_completionHandler_ property

ObjCProtocolListenableMethod<void Function(NSURLSession, NSURLAuthenticationChallenge, ObjCBlock<Void Function(NSInteger, NSURLCredential?)>)> URLSession_didReceiveChallenge_completionHandler_
final

URLSession:didReceiveChallenge:completionHandler:

Implementation

static final URLSession_didReceiveChallenge_completionHandler_ =
    objc.ObjCProtocolListenableMethod<
      void Function(
        NSURLSession,
        NSURLAuthenticationChallenge,
        objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>,
      )
    >(
      _protocol_NSURLSessionStreamDelegate,
      _sel_URLSession_didReceiveChallenge_completionHandler_,
      ffi.Native.addressOf<
            ffi.NativeFunction<
              ffi.Void Function(
                ffi.Pointer<objc.ObjCObject>,
                ffi.Pointer<ffi.Void>,
                NSUserInterfaceItemIdentifier,
                ffi.Pointer<objc.ObjCObject>,
                ffi.Pointer<objc.ObjCBlockImpl>,
              )
            >
          >(_NativeBindingBindings_protocolTrampoline_bklti2)
          .cast(),
      objc.getProtocolMethodSignature(
        _protocol_NSURLSessionStreamDelegate,
        _sel_URLSession_didReceiveChallenge_completionHandler_,
        isRequired: false,
        isInstanceMethod: true,
      ),
      (
        void Function(
          NSURLSession,
          NSURLAuthenticationChallenge,
          objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>,
        )
        func,
      ) =>
          ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction(
            (
              ffi.Pointer<ffi.Void> _,
              NSURLSession arg1,
              NSURLAuthenticationChallenge arg2,
              objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>
              arg3,
            ) => func(arg1, arg2, arg3),
          ),
      (
        void Function(
          NSURLSession,
          NSURLAuthenticationChallenge,
          objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>,
        )
        func,
      ) =>
          ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener(
            (
              ffi.Pointer<ffi.Void> _,
              NSURLSession arg1,
              NSURLAuthenticationChallenge arg2,
              objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>
              arg3,
            ) => func(arg1, arg2, arg3),
          ),
      (
        void Function(
          NSURLSession,
          NSURLAuthenticationChallenge,
          objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>,
        )
        func,
      ) =>
          ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking(
            (
              ffi.Pointer<ffi.Void> _,
              NSURLSession arg1,
              NSURLAuthenticationChallenge arg2,
              objc.ObjCBlock<ffi.Void Function(NSInteger, NSURLCredential?)>
              arg3,
            ) => func(arg1, arg2, arg3),
          ),
    );