onPipStateChanged property
Callback function for PiP state changes.
Parameters:
state
- The new PiP stateerror
- Error message if the state change failed, null otherwise
Implementation
final void Function(AgoraPipState state, String? error) onPipStateChanged;