onPipStateChanged property

void Function(AgoraPipState state, String? error) onPipStateChanged
final

Callback function for PiP state changes.

Parameters:

  • state - The new PiP state
  • error - Error message if the state change failed, null otherwise

Implementation

final void Function(AgoraPipState state, String? error) onPipStateChanged;