set Activity For Life Cycle
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)
Content copied to clipboard
Parameters
activity
The activity to bind webcam lifecycle management to.