vite.rxbus.Subscribe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxbus-annotations Show documentation
Show all versions of rxbus-annotations Show documentation
RxBus base on RxJava2 & RxAndroid to achieve event bus.
package vite.rxbus;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by trs on 16-10-20.
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
public @interface Subscribe {
/**
* Tag
*
* @return
*/
String[] value() default {DEFAULT};
/**
* random strings
*/
String DEFAULT = "2d51$5,0";
}