ObjCCallbackMapper¶
Fields¶
block2blockInfo¶
class2data¶
instance2callbacks¶
-
public Map<Object, WeakReference[]>
instance2callbacks
¶ Collection used for caching generated native blocks where the Java instance has no cache field.
Methods¶
cleanupObjCBlock¶
createStrongBlockBindingPointer¶
-
public static Pointer
createStrongBlockBindingPointer
(long peer, boolean owned)¶ Creates a strong block binding pointer to an Objective-C object.
Retains if doing so is needed to keep the strong ownership.
Parameters: - peer – The pointer
- owned – If this is false, the pointer objects will be retained
Returns: The created
Pointer
object
dispose¶
getJavaBlockPeer¶
getNativeBlockPeer¶
toJava¶
-
public Object
toJava
(long peer, NatJ.JavaObjectConstructionInfo info)¶ Creates a Java instance from a native block.
This only works with Objective-C blocks we create.
toNative¶
-
public long
toNative
(Object instance, NatJ.NativeObjectConstructionInfo info)¶ Creates a native block from a Java instance.