@maplibre/native-ffi
    Preparing search index...

    Class ResourceRequestHandle

    A resource load that a resource provider answers.

    See mln_resource_request in the C API reference.

    Hierarchy

    • Owner
      • ResourceRequestHandle
    Index
    "[asyncDispose]": () => Promise<void>

    Calls release(), for await using. Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.

    "[dispose]": () => void

    Calls release(), for using. Hosts without Symbol.dispose, such as ArkTS, leave it undefined.

    id: bigint

    The native handle value. It stays readable after release.

    • 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.

      Returns void