Skip to content

AudioRecorderStateChangeEvent

Bases: ControlEvent

Source code in src/flet_audio_recorder/audio_recorder.py
26
27
28
29
30
31
32
class AudioRecorderStateChangeEvent(ControlEvent):
    def __init__(self, e: ControlEvent):
        """The current state of the audio recorder.

        Value is of type [AudioRecorderState](audiorecorderstate.md)."""
        super().__init__(e.target, e.name, e.data, e.control, e.page)
        self.state: AudioRecorderState = AudioRecorderState(e.data)

__init__(e)

The current state of the audio recorder.

Value is of type AudioRecorderState.

Source code in src/flet_audio_recorder/audio_recorder.py
27
28
29
30
31
32
def __init__(self, e: ControlEvent):
    """The current state of the audio recorder.

    Value is of type [AudioRecorderState](audiorecorderstate.md)."""
    super().__init__(e.target, e.name, e.data, e.control, e.page)
    self.state: AudioRecorderState = AudioRecorderState(e.data)