setEnableActivityLifecycle

fun setEnableActivityLifecycle(enableActivityLifecycle: Boolean)

Enables or disables automatic webcam management based on activity lifecycle.

When enabled (default), the SDK automatically disables the webcam when the activity is stopped (e.g., app goes to background) and re-enables it when the activity is resumed.

Code Example:


VideoSDK.setEnableActivityLifecycle(false) // Disable auto webcam management

Parameters

enableActivityLifecycle

true to enable automatic webcam management, false to disable it.