onPipStateChanged property
Callback for picture-in-picture state changes.
Since Available since v6.6.2. This callback is triggered by the SDK when the picture-in-picture state changes.
stateThe new picture-in-picture state. See AgoraPipState.errorReturns an error message if the state change fails; otherwise returns null.
Implementation
final void Function(AgoraPipState state, String? error) onPipStateChanged;