
com.cookingfox.eventbus.EventBusSubscriber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbus-adapter-java Show documentation
Show all versions of eventbus-adapter-java Show documentation
The EventBus Adapter wraps various EventBus implementations for Java and Android.
package com.cookingfox.eventbus;
/**
* Gives the implementing class the ability to subscribe and unsubscribe objects to events that are
* posted on the EventBus.
*/
public interface EventBusSubscriber {
/**
* Subscribe for events that are posted on the EventBus.
*
* @param subscriber The object to subscribe.
*/
void register(Object subscriber);
/**
* Unsubscribe from events that are posted on the EventBus.
*
* @param subscriber The object to unsubscribe.
*/
void unregister(Object subscriber);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy