static int get eventCounter => currentApi!._eventCounter;
static set eventCounter(int c) { currentApi!._eventCounter = c; }