Usually just make a class. Or object. Expose a pub...
# android
a
Usually just make a class. Or object. Expose a public property that is a behaviorsubject. Reference that shared instance between your classes. One publishes the event to the behaviorsubject and other one subscribed to it