setActivityLogEnabled

fun setActivityLogEnabled(enabled: Boolean): Unit?

Enables or disables Activity Log writes for the current SDK instance.

This setting is persisted for the instance and affects only future log writes. It does not open or close the Activity Log database.

If the Activity Log feature was not enabled during SDK initialization, or the Activity Log repository is not available for this instance, this does nothing.

Parameters

enabled

True to enable Activity Log writes, false to disable.

Throws

If the SDK is not initialized before calling this function. See: initialize.