setPrivate method

bool setPrivate(
  1. Pointer<NativeType> data
)

Sets a pointer to private data on an object. The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private data. data (void*) A void* to set as the object's private data.

Implementation

bool setPrivate(Pointer data) {
  return JSObjectRef.jSObjectSetPrivate(pointer, data) == 1;
}