package com.palomamobile.android.sdk.core;

/**
 * Implement this interface to prove own event bus adapter.
 */
public interface IEventBus {

    /**
     * Register as a subscriber to receive Events from the event bus.
     *
     * @param subscriber will receive events
     */
    void register(Object subscriber);

    /**
     * Unregister as a subscriber from the event bus to no longer receive events.
     *
     * @param subscriber will no longer receive events
     */
    void unregister(Object subscriber);

    /**
     * Post an event to the bus for propagation to registered subscribers.
     *
     * @param event to be propagate to subscribers
     */
    void post(Object event);
}

@@ -76,16 +76,18 @@
  to prov
+id
 e own ev
@@ -102,16 +102,127 @@
 adapter.
+ For sample implementations have a look at %7B@link GreenRobotEventBusAdapter%7D%0A * and %7B@link OttoEventBusAdapter%7D
 %0A */%0Apub

improve doc for IEventBus.java