onPipStateChanged property

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

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.

  • state The new picture-in-picture state. See AgoraPipState.
  • error Returns an error message if the state change fails; otherwise returns null.

Implementation

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