Camera Use Binder
Utility function that wraps a DisposableEffect and callbacks that should either cause the unbinding of the camera or trigger the re-binding of the camera in order to save resources. This contains the logic of the lifecycle stages where the camera should be un-binded (which is when the app is "minimized", in Android terms, in Lifecycle.Event.ON_PAUSE) and returned on Lifecycle.Event.ON_RESUME
Parameters
on Unbind
a callback that's called when Lifecycle.Event.ON_PAUSE occurs
on Bind
a callback that's called when Lifecycle.Event.ON_RESUME occurs