OnPerformanceAlarmsType typedef

OnPerformanceAlarmsType = void Function(PerformanceAlarmMode mode, String roomId, PerformanceAlarmReason reason, SourceWantedData data)

mode: Indicates whether publish fallback is enabled locally.

roomId: When publish performance fallback is disabled, roomId is empty. When publish performance fallback is enabled, roomId is the ID of the room affected by the alert.

reason: Reasons for the warning.

data: Performance fallback related data

Implementation

typedef OnPerformanceAlarmsType = void Function(PerformanceAlarmMode mode,
    String roomId, PerformanceAlarmReason reason, SourceWantedData data);