Interface LogCallback

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 LogCallback
Receives process-global Maplibre Native log records.

Native code may invoke this callback on logging or worker threads. The callback should return quickly and avoid calling Maplibre APIs. The binding copies each record before invoking Java code and contains callback exceptions so they do not unwind into native code.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    log(LogRecord record)
    Handles a copied log record.
  • Method Details

    • log

      boolean log(LogRecord record)
      Handles a copied log record.
      Returns:
      true when the callback consumed the record, false to let native logging handle it