getInstance

fun getInstance(applicationContext: Context): StorytellerGamVastModule

Returns the shared singleton instance of StorytellerGamVastModule.

Parameters

applicationContext

Application Context. Must be the application context to avoid leaks.


fun getInstance(applicationContext: Context, key: String?): StorytellerGamVastModule

Returns a keyed, or shared when key is null, singleton instance of StorytellerGamVastModule.

Parameters

applicationContext

Application Context. Must be the application context to avoid leaks.

key

Optional key for multi-instance scenarios; null uses the shared singleton.


fun getInstance(applicationContext: Context, enableDebugLogging: Boolean): StorytellerGamVastModule

Returns the shared singleton instance of StorytellerGamVastModule and updates verbose VAST diagnostics logging.

Parameters

applicationContext

Application Context. Must be the application context to avoid leaks.

enableDebugLogging

Enables process-wide verbose info/debug logcat output when true.


fun getInstance(applicationContext: Context, key: String?, enableDebugLogging: Boolean): StorytellerGamVastModule

Returns a keyed singleton instance of StorytellerGamVastModule and updates verbose VAST diagnostics logging.

Parameters

applicationContext

Application Context. Must be the application context to avoid leaks.

key

Optional key for multi-instance scenarios; null uses the shared singleton.

enableDebugLogging

Enables process-wide verbose info/debug logcat output when true.