JSObjectInitializeCallback typedef

JSObjectInitializeCallback = Void Function(Pointer<NativeType> ctx, Pointer<NativeType> object)

typedef JSObjectInitializeCallback The callback invoked when an object is first created. ctx The execution context to use. object The JSObject being created. If you named your function Initialize, you would declare it like this:

void Initialize(JSContextRef ctx, JSObjectRef object);

Unlike the other object callbacks, the initialize callback is called on the least derived class (the parent class) first, and the most derived class last. typedef void (*JSObjectInitializeCallback) (JSContextRef ctx, JSObjectRef object);

Implementation

typedef JSObjectInitializeCallback = Void Function(Pointer ctx, Pointer object);