setActivityForLifeCycle

Limits the webcam auto-pause/resume to activity's stop and resume events. Without it the SDK reacts to any activity in the process, so opening a settings screen would stop the camera. See setEnableActivityLifecycle for what stopping and resuming do.

Parameters

activity

the call screen. The reference is dropped when it is destroyed.