Java Code Examples for android.arch.lifecycle.Lifecycle#Event

The following examples show how to use android.arch.lifecycle.Lifecycle#Event . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FavoritePresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public FavoritePresenter(DataManager dataManager, LifecycleProvider<Lifecycle.Event> provider) {
    this.dataManager = dataManager;
    this.provider = provider;
}
 
Example 2
Source File: ForumPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public ForumPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
}
 
Example 3
Source File: AxglePlayActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
static LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 4
Source File: SettingActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 5
Source File: MeiZiTuPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public MeiZiTuPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
}
 
Example 6
Source File: BasePresenter.java    From v9porn with MIT License 4 votes vote down vote up
public BasePresenter(CacheProviders cacheProviders, LifecycleProvider<Lifecycle.Event> provider) {
    this.cacheProviders = cacheProviders;
    this.provider = provider;
}
 
Example 7
Source File: VideoListPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public VideoListPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
    Logger.t(TAG).d("VideoListPresenter init______________");
}
 
Example 8
Source File: AboutActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
static LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 9
Source File: BasePresenter.java    From v9porn with MIT License 4 votes vote down vote up
public BasePresenter(LifecycleProvider<Lifecycle.Event> provider, AppDataManager appDataManager) {
    this.provider = provider;
    this.appDataManager = appDataManager;
}
 
Example 10
Source File: ProxySettingActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
static LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 11
Source File: PictureViewerPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public PictureViewerPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
}
 
Example 12
Source File: RxLifecycle.java    From RxLifecycle with Apache License 2.0 4 votes vote down vote up
public static Observable<Lifecycle.Event> onStart(LifecycleOwner lifecycle) {
    return RxLifecycle.with(lifecycle).onStart();
}
 
Example 13
Source File: RxLifecycle.java    From RxLifecycle with Apache License 2.0 4 votes vote down vote up
public static Observable<Lifecycle.Event> onCreate(LifecycleOwner lifecycle) {
    return RxLifecycle.with(lifecycle).onCreate();
}
 
Example 14
Source File: SearchAxgleVideoActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
static LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 15
Source File: FavoriteActivityModule.java    From v9porn with MIT License 4 votes vote down vote up
@Provides
static LifecycleProvider<Lifecycle.Event> providerLifecycleProvider(AppCompatActivity mAppCompatActivity) {
    return AndroidLifecycle.createLifecycleProvider(mAppCompatActivity);
}
 
Example 16
Source File: SettingPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public SettingPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    super(provider);
    this.dataManager = dataManager;
}
 
Example 17
Source File: IndexPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public IndexPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
}
 
Example 18
Source File: ProxyPresenter.java    From v9porn with MIT License 4 votes vote down vote up
@Inject
public ProxyPresenter(LifecycleProvider<Lifecycle.Event> provider, DataManager dataManager) {
    this.provider = provider;
    this.dataManager = dataManager;
}
 
Example 19
Source File: RxLifecycle.java    From RxLifecycle with Apache License 2.0 4 votes vote down vote up
public static Observable<Lifecycle.Event> onEvent(Lifecycle lifecycle) {
    return RxLifecycle.with(lifecycle).onEvent();
}
 
Example 20
Source File: Utils.java    From AndroidUtilCode with Apache License 2.0 votes vote down vote up
public void onLifecycleChanged(@NonNull Activity activity, Lifecycle.Event event) {/**/}