addScreenRecordListener method

void addScreenRecordListener(
  1. dynamic callback(
    1. bool recorded
    )
)

Listen when user screenrecord the screen You can add listener multiple time, and every listener will be executed

Implementation

void addScreenRecordListener(Function(bool recorded) callback) {
  _screenRecordListener.add(callback);
}