There is a class that can be called from 4 places. There is a lisener in a class (lisener redefines from android libraries - its parameters cannot be changed). It is necessary to force this licer to work differently depending on who causes it. How can this be achieved?
Visualizer.setDataCaptureListener(bla, bla,bla) public void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate) {}