MCPcopy Index your code
hub / github.com/L4Digital/RxLoader

github.com/L4Digital/RxLoader @2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.0 ↗ · + Follow
63 symbols 143 edges 7 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RxLoader

License API Download

An Android Loader that wraps an RxJava Observable.

RxLoader caches the data emitted by your Observable across orientation changes by utilizing an Android Loader, while also providing the results from an Observable preserving the RxJava pattern.

Download

Gradle:

dependencies {
    compile 'com.l4digital.rxloader:rxloader:2.1.0'
}

Maven:

<dependency>
  <groupId>com.l4digital.rxloader</groupId>
  <artifactId>rxloader</artifactId>
  <version>2.1.0</version>
</dependency>

Usage

import com.l4digital.rxloader.RxLoader;
import com.l4digital.rxloader.RxLoaderCallbacks;

...

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    RxLoader<DataType> loader = new RxLoader<>(this, getObservable());
    RxLoaderCallbacks<DataType> callbacks = new RxLoaderCallbacks<>(loader);

    callbacks.getFlowable().subscribe(this);

    getLoaderManager().initLoader(loaderId, Bundle.EMPTY, callbacks);
}

RxLoader can also be used with the Android Support Library:

import com.l4digital.support.rxloader.RxLoader;
import com.l4digital.support.rxloader.RxLoaderCallbacks;

...

getSupportLoaderManager().initLoader(loaderId, Bundle.EMPTY, callbacks);

License

Copyright 2016 L4 Digital LLC. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Core symbols most depended-on inside this repo

dispose
called by 7
rxloader/src/main/java/com/l4digital/rxloader/RxLoader.java
deliverResult
called by 5
rxloader/src/main/java/com/l4digital/rxloader/RxLoader.java
deliverResult
called by 5
rxloader/src/main/java/com/l4digital/support/rxloader/RxLoader.java
reset
called by 4
rxloader/src/main/java/com/l4digital/reactivex/LoaderSubscriber.java
createProcessor
called by 4
rxloader/src/main/java/com/l4digital/reactivex/LoaderProcessor.java
subscribe
called by 3
rxloader/src/main/java/com/l4digital/rxloader/RxLoader.java
dispose
called by 3
rxloader/src/main/java/com/l4digital/support/rxloader/RxLoader.java
getObservable
called by 2
example/src/main/java/com/l4digital/rxloader/example/ExampleActivity.java

Shape

Method 56
Class 7

Languages

Java100%

Modules by API surface

rxloader/src/main/java/com/l4digital/support/rxloader/RxLoader.java16 symbols
rxloader/src/main/java/com/l4digital/rxloader/RxLoader.java16 symbols
example/src/main/java/com/l4digital/rxloader/example/ExampleActivity.java11 symbols
rxloader/src/main/java/com/l4digital/reactivex/LoaderSubscriber.java6 symbols
rxloader/src/main/java/com/l4digital/support/rxloader/RxLoaderCallbacks.java5 symbols
rxloader/src/main/java/com/l4digital/rxloader/RxLoaderCallbacks.java5 symbols
rxloader/src/main/java/com/l4digital/reactivex/LoaderProcessor.java4 symbols

For agents

$ claude mcp add RxLoader \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact