NsdkLogCallback
Declaration
interface NsdkLogCallbackSummary
Functional interface for receiving log messages from NSDK. This callback is invoked by the native NSDK library to send log messages to the Kotlin/Java layer. The callback receives the log level, message, and optional source location information. Threading: [onLog] runs on whichever thread logged: NSDK's own native worker threads, and the thread calling into NSDK. It can run on several threads at once, so it must be thread-safe and should return quickly. Post to the main thread before touching UI. It is never called once [NSDKSession.close] has begun, and [NSDKSession.close] waits for calls already running. Do not call NSDK from [onLog]: [NSDKSession.close] in particular would deadlock. An exception thrown from [onLog] cannot reach the native thread that logged. It is printed to logcat and otherwise discarded.
Functions
| Name | Type | Summary |
|---|---|---|
| onLog | void | - |