onChangeTimeRange() documentation

I’m trying to figure out how to use this event in my plugin (grafanacubism-panel / GitHub - ekacnet/grafanacubism-panel) I would like to implement zooming and so I need to change the time range to match the window that has be defined by the zoom.

I saw this React plugin: how to register to the TimeRangeChange event post but it was not quite clear how to use it to control the dashboard time range from within the plugin.