library / dev.bmcreations.scrcast / ScrCast / onRecordingStateChange
onRecordingStateChange¶
fun onRecordingStateChange(callback: RecordingStateChangeCallback):
Unit
Set an explicit state change listener, as a kotlin lambda, emitting changes of RecordingState as they occur.
This is an alternative to providing the combined RecordingCallbacks if you are only interested in state changes or want to define them independently.
This method is not accessible to the JVM.