setActivityForLifeCycle

Sets the activity to be used for lifecycle-based webcam management.

When set, the SDK will only automatically pause/resume the webcam when this specific activity is stopped/resumed, rather than responding to any activity lifecycle change.

Code Example:


VideoSDK.setActivityForLifeCycle(this)

Parameters

activity

The activity to bind webcam lifecycle management to.

See also