getInstance

fun getInstance(applicationContext: Context): StorytellerVastModule

Returns the shared singleton instance of StorytellerVastModule.

Parameters

applicationContext

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

Verbose info/debug logging is disabled by default. Calling this overload does not change the current process-wide verbose logging setting. Warning and error log lines are always emitted.


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

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

Parameters

applicationContext

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

key

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

Verbose info/debug logging is disabled by default. Calling this overload does not change the current process-wide verbose logging setting. Warning and error log lines are always emitted.


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

Returns the shared singleton instance of StorytellerVastModule and updates verbose logging.

Parameters

applicationContext

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

enableDebugLogging

Enables process-wide verbose info/debug logcat output when true; disabled by default. Warning and error log lines are always emitted.


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

Returns a keyed singleton instance of StorytellerVastModule and updates verbose 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; disabled by default. Only calls that pass this argument update the process-wide setting. Warning and error log lines are always emitted.