-
public class OsmosSDK.Companion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOsmosSDK.Companion.BuilderBuilder class for SDK configuration. Each builder instance maintains isolated configuration state.
-
Field Summary
Fields Modifier and Type Field Description public final static OsmosSDK.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final OsmosSDK.Companion.BuilderclientId(String clientId)Sets the client ID for the SDK (required). final OsmosSDKglobalInstance()Singleton instance of OSMOS SDK. final Unitshutdown()Shuts down the OSMOS SDK and releases all resources. -
-
Method Detail
-
clientId
final OsmosSDK.Companion.Builder clientId(String clientId)
Sets the client ID for the SDK (required).
- Parameters:
clientId- Unique client identifier
-
globalInstance
final OsmosSDK globalInstance()
Singleton instance of OSMOS SDK.
-
shutdown
final Unit shutdown()
Shuts down the OSMOS SDK and releases all resources. This method should be called when the SDK is no longer needed to prevent memory leaks. After calling this method, initialize() must be called again before using the SDK.
Example:
// When app is shutting down or SDK is no longer needed OsmosSDK.shutdown()
-
-
-
-