package com.sogilis.ReactNativeBluetooth.events;

public class EventNames {
    private static final String BASE = EventNames.class.getCanonicalName() + ".EVENT_";

    public static final String STATE_CHANGED = BASE + "STATE_CHANGED";
    public static final String SCAN_STARTED = BASE + "SCAN_STARTED";
    public static final String SCAN_STOPPED = BASE + "SCAN_STOPPED";
    public static final String DEVICE_DISCOVERED = BASE + "DEVICE_DISCOVERED";
    public static final String DEVICE_CONNECTED = BASE + "DEVICE_CONNECTED";
    public static final String DEVICE_DISCONNECTED = BASE + "DEVICE_DISCONNECTED";
    public static final String SERVICE_DISCOVERY_STARTED = BASE + "SERVICE_DISCOVERY_STARTED";
    public static final String SERVICE_DISCOVERED = BASE + "SERVICE_DISCOVERED";
}

@@ -73,97 +73,8 @@
 s %7B%0A
-    private static final String BASE = EventNames.class.getCanonicalName() + %22.EVENT_%22;%0A%0A
     
@@ -116,23 +116,21 @@
 ANGED = 
-BASE + 
+name(
 %22STATE_C
@@ -136,16 +136,17 @@
 CHANGED%22
+)
 ;%0A    pu
@@ -181,31 +181,29 @@
 N_STARTED = 
-BASE + 
+name(
 %22SCAN_STARTE
@@ -196,32 +196,33 @@
 e(%22SCAN_STARTED%22
+)
 ;%0A    public sta
@@ -253,23 +253,21 @@
 OPPED = 
-BASE + 
+name(
 %22SCAN_ST
@@ -272,16 +272,17 @@
 STOPPED%22
+)
 ;%0A    pu
@@ -322,31 +322,29 @@
 ISCOVERED = 
-BASE + 
+name(
 %22DEVICE_DISC
@@ -350,16 +350,17 @@
 COVERED%22
+)
 ;%0A    pu
@@ -395,39 +395,37 @@
 ICE_CONNECTED = 
-BASE + 
+name(
 %22DEVICE_CONNECTE
@@ -418,32 +418,33 @@
 EVICE_CONNECTED%22
+)
 ;%0A    public sta
@@ -482,23 +482,21 @@
 ECTED = 
-BASE + 
+name(
 %22DEVICE_
@@ -504,24 +504,25 @@
 ISCONNECTED%22
+)
 ;%0A    public
@@ -566,31 +566,29 @@
 Y_STARTED = 
-BASE + 
+name(
 %22SERVICE_DIS
@@ -602,16 +602,17 @@
 STARTED%22
+)
 ;%0A    pu
@@ -661,15 +661,13 @@
 D = 
-BASE + 
+name(
 %22SER
@@ -682,12 +682,157 @@
 COVERED%22
-;
+);%0A%0A    private static final String name(String customNamePart) %7B%0A        return EventNames.class.getCanonicalName() + %22.%22 + customNamePart;%0A    %7D
 %0A%7D%0A

Make event naming more flexible