RxMediaStore

Additional

Language
Java
Version
1.0.0 (Jul 14, 2015)
Created
Jun 29, 2015
Updated
Oct 30, 2016 (Retired)
Owner
Andrew Chen (yongjhih)
Contributors
Andrew Chen (yongjhih)
The Gitter Badger (gitter-badger)
2
Activity
Badge
Generate
Download
Source code

RxMediaStore

MediaStore with AutoCursor in RxJava.

Usage

Observable<Image> images = MediaStoreObservable.images(context);
images.subscribe(System.out::println);

Ready Image.java:

@AutoCursor
public abstract class Image implements Parcelable {
    @Nullable
    @AutoCursor.Column(name = _ID)
    public abstract Long id();

    @Nullable
    @AutoCursor.Column(name = DATA)
    public abstract String data();
 
    @Nullable
    @AutoCursor.Column(name = BUCKET_DISPLAY_NAME)
    public String bucketDisplayName();

    @Nullable
    @AutoCursor.Column(name = BUCKET_ID)
    public Long bucketId();

    // ...

    public static Image create(Cursor cursor) {
        return new AutoCursor_Image(cursor);
    }
}

Installation

via jcenter:

repositories {
    jcenter()
}

dependencies {
    compile 'com.infstory:rx-media-store:1.0.0'
}

via jitpack.io:

repositories {
    maven {
        url "https://jitpack.io"
    }
}

dependencies {
    compile 'com.github.yongjhih.RxMediaStore:rx-media-store:-SNAPSHOT'
}

License

Copyright 2015 8tory, Inc.

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.