Skip to main content

ARDK for Android/com.nianticlabs.ardk/ArdkLogCallback

ArdkLogCallback

fun interface ArdkLogCallback

Functional interface for receiving log messages from ARDK.

This callback is invoked by the native ARDK library to send log messages to the Kotlin/Java layer. The callback receives the log level, message, and optional source location information.

Parameters​

androidJvm

levelThe log level (0=All, 1=Debug, 2=Info, 3=Warn, 4=Error, 5=Off)
messageThe log message
fileNameOptional source file name where the log was triggered
fileLineOptional line number in the source file
funcNameOptional function name where the log was triggered

Functions​

NameSummary
onLog[androidJvm]
abstract fun onLog(level: Int, message: String, fileName: String?, fileLine: Int, funcName: String?)