registerAutoReleaseObject method
Registers an object for auto release.
When the object is not used anymore, it will be released automatically from C++. Should not be used directly by the API user.
Implementation
void registerAutoReleaseObject(final int pointerId) {
if (hasRegisteredAutoReleaseObject) {
return;
}
hasRegisteredAutoReleaseObject = true;
_gemObject = GemKitPlatform.instance.registerWeakRelease(
this,
pointerId,
_timestamp,
);
}