Calls release(), for await using.
Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.
Calls release(), for using.
Hosts without Symbol.dispose, such as ArkTS, leave it undefined.
ReadonlyidThe native handle value. It stays readable after release.
Whether a release, dispose, or discard has ended the handle.
Answers a resource request.
A failed answer fails the request with ResourceErrorReason.other, as
ResourceRequestHandle.release() does.
See mln_resource_request_complete in the
C API reference.
Errors:
Status.invalidState when the library cancelled the request.Reads whether the library cancelled a resource request.
See mln_resource_request_is_cancelled in the
C API reference.
Hands a resource request back to the library to load as usual.
A failed call fails the request with ResourceErrorReason.other, as
ResourceRequestHandle.release() does.
See mln_resource_request_pass_through in the
C API reference.
Errors:
Status.invalidState when the library cancelled the request.Releases a resource request.
Releasing a request without an answer fails it with
ResourceErrorReason.other.
See mln_resource_request_release in the
C API reference.
Calls a callback when the library cancels a resource request.
The callback never runs after the request is answered. A request takes one cancel callback. When the library has already cancelled the request, the call reports that instead and the callback never runs.
See mln_resource_request_set_cancel_callback in the
C API reference.
Names the owner's type, its handle ID, and whether it is closed.
A resource load that a resource provider answers.
See
mln_resource_requestin the C API reference.