Package 

Object Pier39


  • 
    public class Pier39
    
                        

    Main entry point for the Pier39 SDK. Call initialize once during app startup, typically in your Application class.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Pier39 INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final static Unit initialize(P39Config config) Initialize the Pier39 SDK.
      final static Unit initialize() Initialize the Pier39 SDK.
      final static Capabilities capabilities() Get the SDK capabilities.
      final static Boolean isInitialized() Check if the SDK has been initialized.
      final static Unit on(Function1<P39Event, Unit> handler) Register a global event handler for SDK events.
      final static Unit off(Function1<P39Event, Unit> handler) Remove a previously registered event handler.
      • Methods inherited from class java.lang.Object

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

      • initialize

        @JvmOverloads() final static Unit initialize(P39Config config)

        Initialize the Pier39 SDK. This should be called once during app startup, typically in your Application class.

        Parameters:
        config - Configuration options for the SDK
      • initialize

        @JvmOverloads() final static Unit initialize()

        Initialize the Pier39 SDK. This should be called once during app startup, typically in your Application class.

      • on

         final static Unit on(Function1<P39Event, Unit> handler)

        Register a global event handler for SDK events. If the SDK is already initialized, the handler will receive a P39Event.Ready event immediately.

        Parameters:
        handler - Callback function invoked on the main thread for each event
      • off

         final static Unit off(Function1<P39Event, Unit> handler)

        Remove a previously registered event handler.