-
public class Pier39Main entry point for the Pier39 SDK. Call initialize once during app startup, typically in your Application class.
-
-
Method Summary
Modifier and Type Method Description final static Unitinitialize(P39Config config)Initialize the Pier39 SDK. final static Unitinitialize()Initialize the Pier39 SDK. final static Capabilitiescapabilities()Get the SDK capabilities. final static BooleanisInitialized()Check if the SDK has been initialized. final static Uniton(Function1<P39Event, Unit> handler)Register a global event handler for SDK events. final static Unitoff(Function1<P39Event, Unit> handler)Remove a previously registered event handler. -
-
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.
-
capabilities
final static Capabilities capabilities()
Get the SDK capabilities.
-
isInitialized
final static Boolean isInitialized()
Check if the SDK has been initialized.
-
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
-
-
-
-