Element can be very large (e.g. stroke sample points, pressure points, angle points, contour points).
To avoid RN-side memory issues caused by loading large datasets at once, the SDK uses an accessor design. Therefore you should create elements via createElement.
For details, see Element. The created Element is cached on the native side — remember to release it with recycleElement or element.recycle() once you’re done; see Element Caching and Release for the full workflow.
Returns
APIResponse<Element>: SeeAPIResponseandElement- On success,
resultis anElementwith accessor fields filled (e.g.angles,contoursSrc, andstroke.*accessors for stroke elements).