Package 

Interface AppDNAInitDelegate


  • 
    public interface AppDNAInitDelegate
    
                        

    SPEC-070-A H.20 — delegate for SDK init lifecycle events.

    Currently surfaces only onInitDegraded, fired once when the SDK detects a recoverable startup failure (missing google-services-appdna.json, Firebase project misconfiguration, etc.). Hosts can use this to:

    • log to their crash reporter so misconfigured production apps don't go unnoticed,

    • hide features that depend on remote config when the SDK is degraded,

    • render an in-app banner for QA builds.

    The error throwable is also available synchronously via ai.appdna.sdk.AppDNA.lastInitError for consumers that read it lazily.

    • Method Summary

      Modifier and Type Method Description
      Unit onInitDegraded(Throwable reason) Called when the SDK detects a recoverable init failure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onInitDegraded

         Unit onInitDegraded(Throwable reason)

        Called when the SDK detects a recoverable init failure. May fire on the main thread; do not block.