onWarning property

(void Function(int warningCode, String warningMsg)?) onWarning
final

Warning Event Callback

Warning event, which indicates that the SDK threw an error requiring attention, such as video lag or high CPU usage.

For more information, see Error Codes.

  • Parameters:
    • warningCode(int):
      • Warning code.
    • warningMsg(String):
      • Warning message.

Implementation

final void Function(int warningCode, String warningMsg)? onWarning;