| // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| // coverage:ignore-file | |
| // AUTO GENERATED FILE, DO NOT EDIT. | |
| // | |
| // Generated by `package:ffigen`. | |
| // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package | |
| import 'dart:ffi' as ffi; | |
| import 'package:objective_c/objective_c.dart' as objc; | |
| import 'package:ffi/ffi.dart' as pkg_ffi; | |
| const _$objcVersionCheck = objc.ObjCVersionCheck(9, 6); | |
| @ffi.Native< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >() | |
| external void _1yx5rho_protocolTrampoline_18v1jvf( | |
| ffi.Pointer<objc.ObjCObjectImpl> target, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ); | |
| @ffi.Native< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >() | |
| external void _1yx5rho_protocolTrampoline_jk1ljc( | |
| ffi.Pointer<objc.ObjCObjectImpl> target, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) | |
| > | |
| >, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapBlockingBlock_18v1jvf( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ffi.Pointer< | |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> | |
| > | |
| directInvoke, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) | |
| > | |
| >, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapBlockingBlock_jk1ljc( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ffi.Pointer< | |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> | |
| > | |
| directInvoke, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) | |
| > | |
| >, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapBlockingBlock_xtuoz7( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ffi.Pointer< | |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> | |
| > | |
| directInvoke, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapListenerBlock_18v1jvf( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapListenerBlock_jk1ljc( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ); | |
| @ffi.Native< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Int64, | |
| ffi.Pointer<objc.DOBJC_Context>, | |
| ) | |
| >(isLeaf: true) | |
| external ffi.Pointer<objc.ObjCBlockImpl> _1yx5rho_wrapListenerBlock_xtuoz7( | |
| int port, | |
| ffi.Pointer<objc.DOBJC_Context> context, | |
| ); | |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(objc.NSString)>`. | |
| abstract final class ObjCBlock_ffiVoid_NSString { | |
| /// Returns a block that wraps the given raw block pointer. | |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromPointer( | |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { | |
| bool retain = false, | |
| bool release = false, | |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( | |
| pointer, | |
| retain: retain, | |
| release: release, | |
| ); | |
| /// Creates a block from a C function pointer. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromFunctionPointer( | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) | |
| > | |
| > | |
| ptr, | |
| ) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( | |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a block from a Dart function. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromFunction( | |
| void Function(objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( | |
| objc.newClosureBlock(_closureCallable, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, | |
| ) { | |
| return fn(objc.NSString.fromPointer(arg0, retain: true, release: true)); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a listener block from a Dart function. | |
| /// | |
| /// This block can be invoked from any thread, but only supports void | |
| /// functions, and is not run synchronously. Async functions (ie returning | |
| /// Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> listener( | |
| void Function(objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock<ffi.Void Function(objc.NSString)>( | |
| objc.newBlockPort(_1yx5rho_wrapListenerBlock_xtuoz7, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_1vzvc26.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| /// Creates a blocking block from a Dart function. | |
| /// | |
| /// This callback can be invoked from any native thread, and will block the | |
| /// caller until the callback is handled by the Dart isolate that created | |
| /// the block. Async functions (ie returning Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate | |
| /// has shut down, and the block is invoked by native code, it may block | |
| /// indefinitely, or have other undefined behavior. | |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> blocking( | |
| void Function(objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock<ffi.Void Function(objc.NSString)>( | |
| objc.newBlockingBlockPort(_1yx5rho_wrapBlockingBlock_xtuoz7, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_1vzvc26.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| static void _fnPtrTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, | |
| ) => block.ref.target | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) | |
| > | |
| >() | |
| .asFunction<void Function(ffi.Pointer<objc.ObjCObjectImpl>)>()(arg0); | |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(_fnPtrTrampoline) | |
| .cast(); | |
| static void _closureTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, | |
| ) => | |
| (objc.getBlockClosure(block) | |
| as void Function(ffi.Pointer<objc.ObjCObjectImpl>))(arg0); | |
| static ffi.Pointer<ffi.Void> _closureCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(_closureTrampoline) | |
| .cast(); | |
| } | |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(objc.NSString)>`. | |
| extension ObjCBlock_ffiVoid_NSString$CallExtension | |
| on objc.ObjCBlock<ffi.Void Function(objc.NSString)> { | |
| void call(objc.NSString arg0) { | |
| final _$$ref = arg0.ref; | |
| return ref.pointer.ref.invoke | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >()(ref.pointer, _$$ref.pointer); | |
| } | |
| } | |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)>`. | |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString { | |
| /// Returns a block that wraps the given raw block pointer. | |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> | |
| fromPointer( | |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { | |
| bool retain = false, | |
| bool release = false, | |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)>( | |
| pointer, | |
| retain: retain, | |
| release: release, | |
| ); | |
| /// Creates a block from a C function pointer. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> | |
| fromFunctionPointer( | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) | |
| > | |
| > | |
| ptr, | |
| ) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)>( | |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a block from a Dart function. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> | |
| fromFunction( | |
| void Function(ffi.Pointer<ffi.Void>, objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) => objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)>( | |
| objc.newClosureBlock(_closureCallable, ( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) { | |
| return fn( | |
| arg0, | |
| objc.NSString.fromPointer(arg1, retain: true, release: true), | |
| ); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a listener block from a Dart function. | |
| /// | |
| /// This block can be invoked from any thread, but only supports void | |
| /// functions, and is not run synchronously. Async functions (ie returning | |
| /// Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> | |
| listener( | |
| void Function(ffi.Pointer<ffi.Void>, objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock< | |
| ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString) | |
| >( | |
| objc.newBlockPort(_1yx5rho_wrapListenerBlock_18v1jvf, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_1t32fdx.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0, args.arg1); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| /// Creates a blocking block from a Dart function. | |
| /// | |
| /// This callback can be invoked from any native thread, and will block the | |
| /// caller until the callback is handled by the Dart isolate that created | |
| /// the block. Async functions (ie returning Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate | |
| /// has shut down, and the block is invoked by native code, it may block | |
| /// indefinitely, or have other undefined behavior. | |
| static objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> | |
| blocking( | |
| void Function(ffi.Pointer<ffi.Void>, objc.NSString) fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock< | |
| ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString) | |
| >( | |
| objc.newBlockingBlockPort(_1yx5rho_wrapBlockingBlock_18v1jvf, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_1t32fdx.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0, args.arg1); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| static void _fnPtrTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) => block.ref.target | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObjectImpl>) | |
| >()(arg0, arg1); | |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(_fnPtrTrampoline) | |
| .cast(); | |
| static void _closureTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) => | |
| (objc.getBlockClosure(block) | |
| as void Function( | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ))(arg0, arg1); | |
| static ffi.Pointer<ffi.Void> _closureCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(_closureTrampoline) | |
| .cast(); | |
| } | |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)>`. | |
| extension ObjCBlock_ffiVoid_ffiVoid_NSString$CallExtension | |
| on objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString)> { | |
| void call(ffi.Pointer<ffi.Void> arg0, objc.NSString arg1) { | |
| final _$$ref = arg1.ref; | |
| return ref.pointer.ref.invoke | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >()(ref.pointer, arg0, _$$ref.pointer); | |
| } | |
| } | |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString, objc.ObjCBlock<ffi.Void Function(objc.NSString)>)>`. | |
| abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_ffiVoidNSString { | |
| /// Returns a block that wraps the given raw block pointer. | |
| static objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > | |
| fromPointer( | |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { | |
| bool retain = false, | |
| bool release = false, | |
| }) => | |
| objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >(pointer, retain: retain, release: release); | |
| /// Creates a block from a C function pointer. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| static objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > | |
| fromFunctionPointer( | |
| ffi.Pointer< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) | |
| > | |
| > | |
| ptr, | |
| ) => | |
| objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >( | |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a block from a Dart function. | |
| /// | |
| /// This block must be invoked by native code running on the same thread as | |
| /// the isolate that registered it. Invoking the block on the wrong thread | |
| /// will result in a crash. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > | |
| fromFunction( | |
| void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fn, { | |
| bool keepIsolateAlive = true, | |
| }) => | |
| objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >( | |
| objc.newClosureBlock(_closureCallable, ( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) { | |
| return fn( | |
| arg0, | |
| objc.NSString.fromPointer(arg1, retain: true, release: true), | |
| ObjCBlock_ffiVoid_NSString.fromPointer( | |
| arg2, | |
| retain: true, | |
| release: true, | |
| ), | |
| ); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| /// Creates a listener block from a Dart function. | |
| /// | |
| /// This block can be invoked from any thread, but only supports void | |
| /// functions, and is not run synchronously. Async functions (ie returning | |
| /// Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. | |
| static objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > | |
| listener( | |
| void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >( | |
| objc.newBlockPort(_1yx5rho_wrapListenerBlock_jk1ljc, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_nl1ebt.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0, args.arg1, args.arg2); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| /// Creates a blocking block from a Dart function. | |
| /// | |
| /// This callback can be invoked from any native thread, and will block the | |
| /// caller until the callback is handled by the Dart isolate that created | |
| /// the block. Async functions (ie returning Future<void>) are not supported. | |
| /// | |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive | |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate | |
| /// has shut down, and the block is invoked by native code, it may block | |
| /// indefinitely, or have other undefined behavior. | |
| static objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > | |
| blocking( | |
| void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fn, { | |
| bool keepIsolateAlive = true, | |
| }) { | |
| return objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >( | |
| objc.newBlockingBlockPort(_1yx5rho_wrapBlockingBlock_jk1ljc, ( | |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, | |
| ) { | |
| final args = _BlockArgs_nl1ebt.fromPointer( | |
| rawArgs, | |
| retain: false, | |
| release: false, | |
| ); | |
| fn(args.arg0, args.arg1, args.arg2); | |
| }, keepIsolateAlive), | |
| retain: false, | |
| release: true, | |
| ); | |
| } | |
| static void _fnPtrTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) => block.ref.target | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >()(arg0, arg1, arg2); | |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >(_fnPtrTrampoline) | |
| .cast(); | |
| static void _closureTrampoline( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) => | |
| (objc.getBlockClosure(block) | |
| as void Function( | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ))(arg0, arg1, arg2); | |
| static ffi.Pointer<ffi.Void> _closureCallable = | |
| ffi.Pointer.fromFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >(_closureTrampoline) | |
| .cast(); | |
| } | |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, objc.NSString, objc.ObjCBlock<ffi.Void Function(objc.NSString)>)>`. | |
| extension ObjCBlock_ffiVoid_ffiVoid_NSString_ffiVoidNSString$CallExtension | |
| on | |
| objc.ObjCBlock< | |
| ffi.Void Function( | |
| ffi.Pointer<ffi.Void>, | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| > { | |
| void call( | |
| ffi.Pointer<ffi.Void> arg0, | |
| objc.NSString arg1, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> arg2, | |
| ) { | |
| final _$$ref = arg1.ref; | |
| final _$$ref$1 = arg2.ref; | |
| return ref.pointer.ref.invoke | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl> block, | |
| ffi.Pointer<ffi.Void> arg0, | |
| ffi.Pointer<objc.ObjCObjectImpl> arg1, | |
| ffi.Pointer<objc.ObjCBlockImpl> arg2, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); | |
| } | |
| } | |
| /// TestAsyncProtocol | |
| extension type TestAsyncProtocol._(objc.ObjCProtocol object$) | |
| implements objc.ObjCProtocol { | |
| /// Constructs a [TestAsyncProtocol] that points to the same underlying object as [other]. | |
| TestAsyncProtocol.as(objc.ObjCObject other) : object$ = other; | |
| /// Constructs a [TestAsyncProtocol] that wraps the given raw object pointer. | |
| TestAsyncProtocol.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); | |
| /// Returns whether [obj] is an instance of [TestAsyncProtocol]. | |
| static bool conformsTo(objc.ObjCObject obj) { | |
| return _objc_msgSend_e3qsqz( | |
| obj.ref.pointer, | |
| _sel_conformsToProtocol_, | |
| _protocol_TestAsyncProtocol, | |
| ); | |
| } | |
| } | |
| extension TestAsyncProtocol$Methods on TestAsyncProtocol { | |
| /// fetchDataWithParam:completionHandler: | |
| void fetchDataWithParam( | |
| objc.NSString param, { | |
| required objc.ObjCBlock<ffi.Void Function(objc.NSString)> completionHandler, | |
| }) { | |
| final _$$ref = object$.ref; | |
| final _$$ref$1 = param.ref; | |
| final _$$ref$2 = completionHandler.ref; | |
| _objc_msgSend_o762yo( | |
| _$$ref.pointer, | |
| _sel_fetchDataWithParam_completionHandler_, | |
| _$$ref$1.pointer, | |
| _$$ref$2.pointer, | |
| ); | |
| } | |
| } | |
| interface class TestAsyncProtocol$Builder { | |
| /// Returns the [objc.Protocol] object for this protocol. | |
| static objc.Protocol get $protocol => | |
| objc.Protocol.fromPointer(_protocol_TestAsyncProtocol.cast()); | |
| /// Builds an object that implements the TestAsyncProtocol protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestAsyncProtocol implement({ | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder(debugName: 'TestAsyncProtocol'); | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_.implement( | |
| builder, | |
| fetchDataWithParam_completionHandler_, | |
| ); | |
| builder.addProtocol($protocol); | |
| return TestAsyncProtocol.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestAsyncProtocol protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilder( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_.implement( | |
| builder, | |
| fetchDataWithParam_completionHandler_, | |
| ); | |
| builder.addProtocol($protocol); | |
| } | |
| /// Builds an object that implements the TestAsyncProtocol protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All | |
| /// methods that can be implemented as listeners will be. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestAsyncProtocol implementAsListener({ | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder(debugName: 'TestAsyncProtocol'); | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_ | |
| .implementAsListener(builder, fetchDataWithParam_completionHandler_); | |
| builder.addProtocol($protocol); | |
| return TestAsyncProtocol.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestAsyncProtocol protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will | |
| /// be. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilderAsListener( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_ | |
| .implementAsListener(builder, fetchDataWithParam_completionHandler_); | |
| builder.addProtocol($protocol); | |
| } | |
| /// Builds an object that implements the TestAsyncProtocol protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All | |
| /// methods that can be implemented as blocking listeners will be. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestAsyncProtocol implementAsBlocking({ | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder(debugName: 'TestAsyncProtocol'); | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_ | |
| .implementAsBlocking(builder, fetchDataWithParam_completionHandler_); | |
| builder.addProtocol($protocol); | |
| return TestAsyncProtocol.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestAsyncProtocol protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking | |
| /// listeners will be. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilderAsBlocking( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| fetchDataWithParam_completionHandler_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestAsyncProtocol$Builder.fetchDataWithParam_completionHandler_ | |
| .implementAsBlocking(builder, fetchDataWithParam_completionHandler_); | |
| builder.addProtocol($protocol); | |
| } | |
| /// fetchDataWithParam:completionHandler: | |
| static final fetchDataWithParam_completionHandler_ = | |
| objc.ObjCProtocolListenableMethod< | |
| void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| >( | |
| _protocol_TestAsyncProtocol, | |
| _sel_fetchDataWithParam_completionHandler_, | |
| ffi.Native.addressOf< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| > | |
| >(_1yx5rho_protocolTrampoline_jk1ljc) | |
| .cast(), | |
| objc.getProtocolMethodSignature( | |
| _protocol_TestAsyncProtocol, | |
| _sel_fetchDataWithParam_completionHandler_, | |
| isRequired: true, | |
| isInstanceMethod: true, | |
| ), | |
| ( | |
| void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| func, | |
| ) => ObjCBlock_ffiVoid_ffiVoid_NSString_ffiVoidNSString.fromFunction( | |
| ( | |
| ffi.Pointer<ffi.Void> _, | |
| objc.NSString arg1, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> arg2, | |
| ) => func(arg1, arg2), | |
| ), | |
| ( | |
| void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| func, | |
| ) => ObjCBlock_ffiVoid_ffiVoid_NSString_ffiVoidNSString.listener( | |
| ( | |
| ffi.Pointer<ffi.Void> _, | |
| objc.NSString arg1, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> arg2, | |
| ) => func(arg1, arg2), | |
| ), | |
| ( | |
| void Function( | |
| objc.NSString, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)>, | |
| ) | |
| func, | |
| ) => ObjCBlock_ffiVoid_ffiVoid_NSString_ffiVoidNSString.blocking( | |
| ( | |
| ffi.Pointer<ffi.Void> _, | |
| objc.NSString arg1, | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> arg2, | |
| ) => func(arg1, arg2), | |
| ), | |
| ); | |
| } | |
| /// TestSwiftInvoker | |
| extension type TestSwiftInvoker._(objc.ObjCObject object$) | |
| implements objc.ObjCObject, objc.NSObject { | |
| /// Constructs a [TestSwiftInvoker] that points to the same underlying object as [other]. | |
| TestSwiftInvoker.as(objc.ObjCObject other) : object$ = other { | |
| assert(isA(object$)); | |
| } | |
| /// Constructs a [TestSwiftInvoker] that wraps the given raw object pointer. | |
| TestSwiftInvoker.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { | |
| assert(isA(object$)); | |
| } | |
| /// Returns whether [obj] is an instance of [TestSwiftInvoker]. | |
| static bool isA(objc.ObjCObject? obj) => obj == null | |
| ? false | |
| : _objc_msgSend_19nvye5( | |
| obj.ref.pointer, | |
| _sel_isKindOfClass_, | |
| _class_TestSwiftInvoker, | |
| ); | |
| /// alloc | |
| static TestSwiftInvoker alloc() { | |
| final $ret = _objc_msgSend_151sglz(_class_TestSwiftInvoker, _sel_alloc); | |
| return TestSwiftInvoker.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// allocWithZone: | |
| static TestSwiftInvoker allocWithZone(ffi.Pointer<objc.NSZone> zone) { | |
| final $ret = _objc_msgSend_1cwp428( | |
| _class_TestSwiftInvoker, | |
| _sel_allocWithZone_, | |
| zone, | |
| ); | |
| return TestSwiftInvoker.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// invokeAsyncMethodOnBackgroundThreadWithProtocolInstance:param:completionHandler: | |
| static void invokeAsyncMethodOnBackgroundThreadWithProtocolInstance( | |
| TestAsyncProtocol protocolInstance, { | |
| required objc.NSString param, | |
| required objc.ObjCBlock<ffi.Void Function(objc.NSString)> completionHandler, | |
| }) { | |
| final _$$ref = protocolInstance.ref; | |
| final _$$ref$1 = param.ref; | |
| final _$$ref$2 = completionHandler.ref; | |
| _objc_msgSend_18qun1e( | |
| _class_TestSwiftInvoker, | |
| _sel_invokeAsyncMethodOnBackgroundThreadWithProtocolInstance_param_completionHandler_, | |
| _$$ref.pointer, | |
| _$$ref$1.pointer, | |
| _$$ref$2.pointer, | |
| ); | |
| } | |
| /// invokeAsyncMethodWithProtocolInstance:param:completionHandler: | |
| static void invokeAsyncMethodWithProtocolInstance( | |
| TestAsyncProtocol protocolInstance, { | |
| required objc.NSString param, | |
| required objc.ObjCBlock<ffi.Void Function(objc.NSString)> completionHandler, | |
| }) { | |
| final _$$ref = protocolInstance.ref; | |
| final _$$ref$1 = param.ref; | |
| final _$$ref$2 = completionHandler.ref; | |
| _objc_msgSend_18qun1e( | |
| _class_TestSwiftInvoker, | |
| _sel_invokeAsyncMethodWithProtocolInstance_param_completionHandler_, | |
| _$$ref.pointer, | |
| _$$ref$1.pointer, | |
| _$$ref$2.pointer, | |
| ); | |
| } | |
| /// new | |
| static TestSwiftInvoker new$() { | |
| final $ret = _objc_msgSend_151sglz(_class_TestSwiftInvoker, _sel_new); | |
| return TestSwiftInvoker.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// Returns a new instance of TestSwiftInvoker constructed with the default `new` method. | |
| TestSwiftInvoker() : this.as(new$().object$); | |
| } | |
| extension TestSwiftInvoker$Methods on TestSwiftInvoker { | |
| /// init | |
| TestSwiftInvoker init() { | |
| final _$$ref = object$.ref; | |
| objc.checkOsVersionInternal( | |
| 'TestSwiftInvoker.init', | |
| iOS: (false, (2, 0, 0)), | |
| macOS: (false, (10, 0, 0)), | |
| ); | |
| final $ret = _objc_msgSend_151sglz( | |
| _$$ref.retainAndReturnPointer(), | |
| _sel_init, | |
| ); | |
| return TestSwiftInvoker.fromPointer($ret, retain: false, release: true); | |
| } | |
| } | |
| /// TestWeatherService | |
| extension type TestWeatherService._(objc.ObjCObject object$) | |
| implements objc.ObjCObject, objc.NSObject { | |
| /// Constructs a [TestWeatherService] that points to the same underlying object as [other]. | |
| TestWeatherService.as(objc.ObjCObject other) : object$ = other { | |
| assert(isA(object$)); | |
| } | |
| /// Constructs a [TestWeatherService] that wraps the given raw object pointer. | |
| TestWeatherService.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { | |
| assert(isA(object$)); | |
| } | |
| /// Returns whether [obj] is an instance of [TestWeatherService]. | |
| static bool isA(objc.ObjCObject? obj) => obj == null | |
| ? false | |
| : _objc_msgSend_19nvye5( | |
| obj.ref.pointer, | |
| _sel_isKindOfClass_, | |
| _class_TestWeatherService, | |
| ); | |
| /// alloc | |
| static TestWeatherService alloc() { | |
| final $ret = _objc_msgSend_151sglz(_class_TestWeatherService, _sel_alloc); | |
| return TestWeatherService.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// allocWithZone: | |
| static TestWeatherService allocWithZone(ffi.Pointer<objc.NSZone> zone) { | |
| final $ret = _objc_msgSend_1cwp428( | |
| _class_TestWeatherService, | |
| _sel_allocWithZone_, | |
| zone, | |
| ); | |
| return TestWeatherService.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// fetchWeatherWithDelegate: | |
| static void fetchWeatherWithDelegate(TestWeatherServiceDelegate delegate) { | |
| final _$$ref = delegate.ref; | |
| _objc_msgSend_xtuoz7( | |
| _class_TestWeatherService, | |
| _sel_fetchWeatherWithDelegate_, | |
| _$$ref.pointer, | |
| ); | |
| } | |
| /// new | |
| static TestWeatherService new$() { | |
| final $ret = _objc_msgSend_151sglz(_class_TestWeatherService, _sel_new); | |
| return TestWeatherService.fromPointer($ret, retain: false, release: true); | |
| } | |
| /// Returns a new instance of TestWeatherService constructed with the default `new` method. | |
| TestWeatherService() : this.as(new$().object$); | |
| } | |
| extension TestWeatherService$Methods on TestWeatherService { | |
| /// init | |
| TestWeatherService init() { | |
| final _$$ref = object$.ref; | |
| objc.checkOsVersionInternal( | |
| 'TestWeatherService.init', | |
| iOS: (false, (2, 0, 0)), | |
| macOS: (false, (10, 0, 0)), | |
| ); | |
| final $ret = _objc_msgSend_151sglz( | |
| _$$ref.retainAndReturnPointer(), | |
| _sel_init, | |
| ); | |
| return TestWeatherService.fromPointer($ret, retain: false, release: true); | |
| } | |
| } | |
| /// TestWeatherServiceDelegate | |
| extension type TestWeatherServiceDelegate._(objc.ObjCProtocol object$) | |
| implements objc.ObjCProtocol { | |
| /// Constructs a [TestWeatherServiceDelegate] that points to the same underlying object as [other]. | |
| TestWeatherServiceDelegate.as(objc.ObjCObject other) : object$ = other; | |
| /// Constructs a [TestWeatherServiceDelegate] that wraps the given raw object pointer. | |
| TestWeatherServiceDelegate.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); | |
| /// Returns whether [obj] is an instance of [TestWeatherServiceDelegate]. | |
| static bool conformsTo(objc.ObjCObject obj) { | |
| return _objc_msgSend_e3qsqz( | |
| obj.ref.pointer, | |
| _sel_conformsToProtocol_, | |
| _protocol_TestWeatherServiceDelegate, | |
| ); | |
| } | |
| } | |
| extension TestWeatherServiceDelegate$Methods on TestWeatherServiceDelegate { | |
| /// didUpdateWeather: | |
| void didUpdateWeather(objc.NSString weather) { | |
| final _$$ref = object$.ref; | |
| final _$$ref$1 = weather.ref; | |
| _objc_msgSend_xtuoz7( | |
| _$$ref.pointer, | |
| _sel_didUpdateWeather_, | |
| _$$ref$1.pointer, | |
| ); | |
| } | |
| } | |
| interface class TestWeatherServiceDelegate$Builder { | |
| /// Returns the [objc.Protocol] object for this protocol. | |
| static objc.Protocol get $protocol => | |
| objc.Protocol.fromPointer(_protocol_TestWeatherServiceDelegate.cast()); | |
| /// Builds an object that implements the TestWeatherServiceDelegate protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestWeatherServiceDelegate implement({ | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder( | |
| debugName: 'TestWeatherServiceDelegate', | |
| ); | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implement( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| return TestWeatherServiceDelegate.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestWeatherServiceDelegate protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilder( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implement( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| } | |
| /// Builds an object that implements the TestWeatherServiceDelegate protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All | |
| /// methods that can be implemented as listeners will be. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestWeatherServiceDelegate implementAsListener({ | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder( | |
| debugName: 'TestWeatherServiceDelegate', | |
| ); | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implementAsListener( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| return TestWeatherServiceDelegate.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestWeatherServiceDelegate protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will | |
| /// be. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilderAsListener( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implementAsListener( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| } | |
| /// Builds an object that implements the TestWeatherServiceDelegate protocol. To implement | |
| /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All | |
| /// methods that can be implemented as blocking listeners will be. | |
| /// | |
| /// If `$keepIsolateAlive` is true, this protocol will keep this isolate | |
| /// alive until it is garbage collected by both Dart and ObjC. | |
| static TestWeatherServiceDelegate implementAsBlocking({ | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| final builder = objc.ObjCProtocolBuilder( | |
| debugName: 'TestWeatherServiceDelegate', | |
| ); | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implementAsBlocking( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| return TestWeatherServiceDelegate.as( | |
| builder.build(keepIsolateAlive: $keepIsolateAlive), | |
| ); | |
| } | |
| /// Adds the implementation of the TestWeatherServiceDelegate protocol to an existing | |
| /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking | |
| /// listeners will be. | |
| /// | |
| /// Note: You cannot call this method after you have called `builder.build`. | |
| static void addToBuilderAsBlocking( | |
| objc.ObjCProtocolBuilder builder, { | |
| required void Function(objc.NSString) didUpdateWeather_, | |
| bool $keepIsolateAlive = true, | |
| }) { | |
| TestWeatherServiceDelegate$Builder.didUpdateWeather_.implementAsBlocking( | |
| builder, | |
| didUpdateWeather_, | |
| ); | |
| builder.addProtocol($protocol); | |
| } | |
| /// didUpdateWeather: | |
| static final didUpdateWeather_ = | |
| objc.ObjCProtocolListenableMethod<void Function(objc.NSString)>( | |
| _protocol_TestWeatherServiceDelegate, | |
| _sel_didUpdateWeather_, | |
| ffi.Native.addressOf< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<ffi.Void>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| > | |
| >(_1yx5rho_protocolTrampoline_18v1jvf) | |
| .cast(), | |
| objc.getProtocolMethodSignature( | |
| _protocol_TestWeatherServiceDelegate, | |
| _sel_didUpdateWeather_, | |
| isRequired: true, | |
| isInstanceMethod: true, | |
| ), | |
| (void Function(objc.NSString) func) => | |
| ObjCBlock_ffiVoid_ffiVoid_NSString.fromFunction( | |
| (ffi.Pointer<ffi.Void> _, objc.NSString arg1) => func(arg1), | |
| ), | |
| (void Function(objc.NSString) func) => | |
| ObjCBlock_ffiVoid_ffiVoid_NSString.listener( | |
| (ffi.Pointer<ffi.Void> _, objc.NSString arg1) => func(arg1), | |
| ), | |
| (void Function(objc.NSString) func) => | |
| ObjCBlock_ffiVoid_ffiVoid_NSString.blocking( | |
| (ffi.Pointer<ffi.Void> _, objc.NSString arg1) => func(arg1), | |
| ), | |
| ); | |
| } | |
| extension type _BlockArgs_1t32fdx._(objc.ObjCObject object$) | |
| implements objc.ObjCObject { | |
| /// Constructs a [_BlockArgs_1t32fdx] that points to the same underlying object as [other]. | |
| _BlockArgs_1t32fdx.as(objc.ObjCObject other) : object$ = other { | |
| assert(isA(object$)); | |
| } | |
| /// Constructs a [_BlockArgs_1t32fdx] that wraps the given raw object pointer. | |
| _BlockArgs_1t32fdx.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { | |
| assert(isA(object$)); | |
| } | |
| /// Returns whether [obj] is an instance of [_BlockArgs_1t32fdx]. | |
| static bool isA(objc.ObjCObject? obj) => obj == null | |
| ? false | |
| : _objc_msgSend_19nvye5( | |
| obj.ref.pointer, | |
| _sel_isKindOfClass_, | |
| _class__BlockArgs_1t32fdx, | |
| ); | |
| } | |
| extension _BlockArgs_1t32fdx$Methods on _BlockArgs_1t32fdx { | |
| ffi.Pointer<ffi.Void> get arg0 { | |
| final _$$ref = object$.ref; | |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); | |
| } | |
| objc.NSString get arg1 { | |
| final _$$ref = object$.ref; | |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); | |
| return objc.NSString.fromPointer($ret, retain: true, release: true); | |
| } | |
| } | |
| extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) | |
| implements objc.ObjCObject { | |
| /// Constructs a [_BlockArgs_1vzvc26] that points to the same underlying object as [other]. | |
| _BlockArgs_1vzvc26.as(objc.ObjCObject other) : object$ = other { | |
| assert(isA(object$)); | |
| } | |
| /// Constructs a [_BlockArgs_1vzvc26] that wraps the given raw object pointer. | |
| _BlockArgs_1vzvc26.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { | |
| assert(isA(object$)); | |
| } | |
| /// Returns whether [obj] is an instance of [_BlockArgs_1vzvc26]. | |
| static bool isA(objc.ObjCObject? obj) => obj == null | |
| ? false | |
| : _objc_msgSend_19nvye5( | |
| obj.ref.pointer, | |
| _sel_isKindOfClass_, | |
| _class__BlockArgs_1vzvc26, | |
| ); | |
| } | |
| extension _BlockArgs_1vzvc26$Methods on _BlockArgs_1vzvc26 { | |
| objc.NSString get arg0 { | |
| final _$$ref = object$.ref; | |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); | |
| return objc.NSString.fromPointer($ret, retain: true, release: true); | |
| } | |
| } | |
| extension type _BlockArgs_nl1ebt._(objc.ObjCObject object$) | |
| implements objc.ObjCObject { | |
| /// Constructs a [_BlockArgs_nl1ebt] that points to the same underlying object as [other]. | |
| _BlockArgs_nl1ebt.as(objc.ObjCObject other) : object$ = other { | |
| assert(isA(object$)); | |
| } | |
| /// Constructs a [_BlockArgs_nl1ebt] that wraps the given raw object pointer. | |
| _BlockArgs_nl1ebt.fromPointer( | |
| ffi.Pointer<objc.ObjCObjectImpl> other, { | |
| bool retain = false, | |
| bool release = false, | |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { | |
| assert(isA(object$)); | |
| } | |
| /// Returns whether [obj] is an instance of [_BlockArgs_nl1ebt]. | |
| static bool isA(objc.ObjCObject? obj) => obj == null | |
| ? false | |
| : _objc_msgSend_19nvye5( | |
| obj.ref.pointer, | |
| _sel_isKindOfClass_, | |
| _class__BlockArgs_nl1ebt, | |
| ); | |
| } | |
| extension _BlockArgs_nl1ebt$Methods on _BlockArgs_nl1ebt { | |
| ffi.Pointer<ffi.Void> get arg0 { | |
| final _$$ref = object$.ref; | |
| return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); | |
| } | |
| objc.NSString get arg1 { | |
| final _$$ref = object$.ref; | |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); | |
| return objc.NSString.fromPointer($ret, retain: true, release: true); | |
| } | |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> get arg2 { | |
| final _$$ref = object$.ref; | |
| final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); | |
| return ObjCBlock_ffiVoid_NSString.fromPointer( | |
| $ret, | |
| retain: true, | |
| release: true, | |
| ); | |
| } | |
| } | |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| symbol: 'OBJC_CLASS_\$__TtC9protocols16TestSwiftInvoker', | |
| ) | |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_TestSwiftInvoker_raw; | |
| final _class_TestSwiftInvoker = objc.getClass( | |
| "protocols.TestSwiftInvoker", | |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| _class_TestSwiftInvoker_raw, | |
| ).cast(), | |
| ); | |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| symbol: 'OBJC_CLASS_\$__TtC9protocols18TestWeatherService', | |
| ) | |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_TestWeatherService_raw; | |
| final _class_TestWeatherService = objc.getClass( | |
| "protocols.TestWeatherService", | |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| _class_TestWeatherService_raw, | |
| ).cast(), | |
| ); | |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| symbol: 'OBJC_CLASS_\$__1yx5rho_BlockArgs_18v1jvf', | |
| ) | |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1t32fdx_raw; | |
| final _class__BlockArgs_1t32fdx = objc.getClass( | |
| "_1yx5rho_BlockArgs_18v1jvf", | |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| _class__BlockArgs_1t32fdx_raw, | |
| ).cast(), | |
| ); | |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| symbol: 'OBJC_CLASS_\$__1yx5rho_BlockArgs_xtuoz7', | |
| ) | |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1vzvc26_raw; | |
| final _class__BlockArgs_1vzvc26 = objc.getClass( | |
| "_1yx5rho_BlockArgs_xtuoz7", | |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| _class__BlockArgs_1vzvc26_raw, | |
| ).cast(), | |
| ); | |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| symbol: 'OBJC_CLASS_\$__1yx5rho_BlockArgs_jk1ljc', | |
| ) | |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_nl1ebt_raw; | |
| final _class__BlockArgs_nl1ebt = objc.getClass( | |
| "_1yx5rho_BlockArgs_jk1ljc", | |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( | |
| _class__BlockArgs_nl1ebt_raw, | |
| ).cast(), | |
| ); | |
| final _objc_msgSend_151sglz = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Pointer<objc.ObjCObjectImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| ffi.Pointer<objc.ObjCObjectImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| >(); | |
| final _objc_msgSend_18qun1e = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >(); | |
| final _objc_msgSend_19nvye5 = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Bool Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| bool Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(); | |
| final _objc_msgSend_1cwp428 = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Pointer<objc.ObjCObjectImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.NSZone>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| ffi.Pointer<objc.ObjCObjectImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.NSZone>, | |
| ) | |
| >(); | |
| final _objc_msgSend_6ex6p5 = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Pointer<ffi.Void> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| ffi.Pointer<ffi.Void> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| >(); | |
| final _objc_msgSend_e3qsqz = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Bool Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCProtocolImpl>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| bool Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCProtocolImpl>, | |
| ) | |
| >(); | |
| final _objc_msgSend_o762yo = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCBlockImpl>, | |
| ) | |
| >(); | |
| final _objc_msgSend_uwvaik = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| ffi.Pointer<objc.ObjCBlockImpl> Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ) | |
| >(); | |
| final _objc_msgSend_xtuoz7 = objc.msgSendPointer | |
| .cast< | |
| ffi.NativeFunction< | |
| ffi.Void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| > | |
| >() | |
| .asFunction< | |
| void Function( | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ffi.Pointer<objc.ObjCSelector>, | |
| ffi.Pointer<objc.ObjCObjectImpl>, | |
| ) | |
| >(); | |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( | |
| symbol: '_1yx5rho_TestAsyncProtocol', | |
| ) | |
| external ffi.Pointer<objc.ObjCProtocolImpl> _protocol_TestAsyncProtocol_raw(); | |
| final _protocol_TestAsyncProtocol = objc.getProtocol( | |
| "protocols.TestAsyncProtocol", | |
| _protocol_TestAsyncProtocol_raw, | |
| ); | |
| @ffi.Native<ffi.Pointer<objc.ObjCProtocolImpl> Function()>( | |
| symbol: '_1yx5rho_TestWeatherServiceDelegate', | |
| ) | |
| external ffi.Pointer<objc.ObjCProtocolImpl> | |
| _protocol_TestWeatherServiceDelegate_raw(); | |
| final _protocol_TestWeatherServiceDelegate = objc.getProtocol( | |
| "protocols.TestWeatherServiceDelegate", | |
| _protocol_TestWeatherServiceDelegate_raw, | |
| ); | |
| late final _sel_alloc = objc.registerName("alloc"); | |
| late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); | |
| late final _sel_arg0 = objc.registerName("arg0"); | |
| late final _sel_arg1 = objc.registerName("arg1"); | |
| late final _sel_arg2 = objc.registerName("arg2"); | |
| late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); | |
| late final _sel_didUpdateWeather_ = objc.registerName("didUpdateWeather:"); | |
| late final _sel_fetchDataWithParam_completionHandler_ = objc.registerName( | |
| "fetchDataWithParam:completionHandler:", | |
| ); | |
| late final _sel_fetchWeatherWithDelegate_ = objc.registerName( | |
| "fetchWeatherWithDelegate:", | |
| ); | |
| late final _sel_init = objc.registerName("init"); | |
| late final _sel_invokeAsyncMethodOnBackgroundThreadWithProtocolInstance_param_completionHandler_ = | |
| objc.registerName( | |
| "invokeAsyncMethodOnBackgroundThreadWithProtocolInstance:param:completionHandler:", | |
| ); | |
| late final _sel_invokeAsyncMethodWithProtocolInstance_param_completionHandler_ = | |
| objc.registerName( | |
| "invokeAsyncMethodWithProtocolInstance:param:completionHandler:", | |
| ); | |
| late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); | |
| late final _sel_new = objc.registerName("new"); | |
| typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>; | |
| typedef Dartinstancetype = objc.ObjCObject; |