类 LiveEventBus


  • public final class LiveEventBus
    extends java.lang.Object
    _ _ _____ _ ______ | | (_) | ___| | | | ___ \ | | ___ _____| |____ _____ _ __ | |_| |_/ /_ _ ___ | | | \ \ / / _ \ __\ \ / / _ \ '_ \| __| ___ \ | | / __| | |___| |\ V / __/ |___\ V / __/ | | | |_| |_/ / |_| \__ \ \_____/_| \_/ \___\____/ \_/ \___|_| |_|\__\____/ \__,_|___/ Created by liaohailiang on 2019/1/21.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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
      static ObservableConfig config​(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
      static <T extends LiveEvent>
      Observable<T>
      get​(java.lang.Class<T> eventType)
      get observable from eventType
      static <T> Observable<T> get​(java.lang.String key)
      get observable by key
      static <T> Observable<T> get​(java.lang.String key, java.lang.Class<T> type)
      get observable by key with type
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • LiveEventBus

        public LiveEventBus()
    • 方法详细资料

      • 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 - String
        type - 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 LiveEventObservable<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