fromFunctionPointer static method
ObjCBlock<CGSize Function(Pointer<Void> , Pointer<ObjCObject> , CGSize)>
fromFunctionPointer(
- Pointer<
NativeFunction< ptrCGSize Function(Pointer< >Void> arg0, Pointer<ObjCObject> arg1, CGSize arg2)>
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.
Implementation
static objc.ObjCBlock<objc.CGSize Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObject>, objc.CGSize)>
fromFunctionPointer(
ffi.Pointer<
ffi.NativeFunction<
objc.CGSize Function(ffi.Pointer<ffi.Void> arg0, ffi.Pointer<objc.ObjCObject> arg1, objc.CGSize arg2)
>
>
ptr,
) => objc.ObjCBlock<objc.CGSize Function(ffi.Pointer<ffi.Void>, ffi.Pointer<objc.ObjCObject>, objc.CGSize)>(
objc.newPointerBlock(_ObjCBlock_CGSize_ffiVoid_idUIContentContainer_CGSize_fnPtrCallable, ptr.cast()),
retain: false,
release: true,
);