类 LiveEventBus
- java.lang.Object
-
- com.jeremyliao.liveeventbus.LiveEventBus
-
public final class LiveEventBus extends java.lang.Object_ _ _____ _ ______ | | (_) | ___| | | | ___ \ | | ___ _____| |____ _____ _ __ | |_| |_/ /_ _ ___ | | | \ \ / / _ \ __\ \ / / _ \ '_ \| __| ___ \ | | / __| | |___| |\ V / __/ |___\ V / __/ | | | |_| |_/ / |_| \__ \ \_____/_| \_/ \___\____/ \_/ \___|_| |_|\__\____/ \__,_|___/ Created by liaohailiang on 2019/1/21.
-
-
构造器概要
构造器 构造器 说明 LiveEventBus()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Configconfig()use the inner class Config to set params first of all, call config to get the Config instance then, call the method of Config to config LiveEventBus call this method in Application.onCreatestatic ObservableConfigconfig(java.lang.String key)use the inner class Config to set params first of all, call config to get the Config instance then, call the method of Config to config LiveEventBus call this method in Application.onCreatestatic <T extends LiveEvent>
Observable<T>get(java.lang.Class<T> eventType)get observable from eventTypestatic <T> Observable<T>get(java.lang.String key)get observable by keystatic <T> Observable<T>get(java.lang.String key, java.lang.Class<T> type)get observable by key with type
-
-
-
方法详细资料
-
get
public static <T> Observable<T> get(@NonNull java.lang.String key, @NonNull java.lang.Class<T> type)
get observable by key with type- 类型参数:
T- T- 参数:
key- Stringtype- Class- 返回:
- Observable
-
get
public static <T> Observable<T> get(@NonNull java.lang.String key)
get observable by key- 类型参数:
T- T- 参数:
key- String- 返回:
- Observable
-
get
public static <T extends LiveEvent> Observable<T> get(@NonNull java.lang.Class<T> eventType)
get observable from eventType- 类型参数:
T- T- 参数:
eventType- Class- 返回:
- Observable
-
config
public static Config config()
use the inner class Config to set params first of all, call config to get the Config instance then, call the method of Config to config LiveEventBus call this method in Application.onCreate- 返回:
- Config
-
config
public static ObservableConfig config(@NonNull java.lang.String key)
use the inner class Config to set params first of all, call config to get the Config instance then, call the method of Config to config LiveEventBus call this method in Application.onCreate- 参数:
key- String- 返回:
- ObservableConfig
-
-