Interface ResourceTransformCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResourceTransformCallback
Rewrites network resource URLs for a runtime.

Native code may invoke this callback on worker or network threads. The callback should return quickly and avoid calling Maplibre APIs. Returning Optional.empty() keeps the original URL. The binding catches callback exceptions and treats them as no rewrite.