RxPalette

RxJava binding APIs for Palette.

License

License

GroupId

GroupId

io.sweers.rxpalette
ArtifactId

ArtifactId

rxpalette
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

aar
Description

Description

RxPalette
RxJava binding APIs for Palette.
Project URL

Project URL

https://github.com/hzsweers/RxPalette/
Source Code Management

Source Code Management

https://github.com/hzsweers/RxPalette/

Download rxpalette

How to add to project

<!-- https://jarcasting.com/artifacts/io.sweers.rxpalette/rxpalette/ -->
<dependency>
    <groupId>io.sweers.rxpalette</groupId>
    <artifactId>rxpalette</artifactId>
    <version>0.3.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.sweers.rxpalette/rxpalette/
implementation 'io.sweers.rxpalette:rxpalette:0.3.0'
// https://jarcasting.com/artifacts/io.sweers.rxpalette/rxpalette/
implementation ("io.sweers.rxpalette:rxpalette:0.3.0")
'io.sweers.rxpalette:rxpalette:aar:0.3.0'
<dependency org="io.sweers.rxpalette" name="rxpalette" rev="0.3.0">
  <artifact name="rxpalette" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.sweers.rxpalette', module='rxpalette', version='0.3.0')
)
libraryDependencies += "io.sweers.rxpalette" % "rxpalette" % "0.3.0"
[io.sweers.rxpalette/rxpalette "0.3.0"]

Dependencies

compile (3)

Group / Artifact Type Version
io.reactivex : rxjava jar 1.1.0
com.android.support » support-annotations jar 23.1.1
com.android.support » palette-v7 jar 23.1.1

Project Modules

There are no modules declared in this project.

RxPalette

RxJava binding APIs for the Palette Android library.

Usage

Java:

RxPalette.generate(bitmap)
        .subscribe({ palette ->
            // Do stuff
        });
        
RxPalette.generate(new Palette.Builder(bitmap).maximumColorCount(10))
        .subscribe({ palette ->
            // Do stuff
        });

Kotlin:

// Extensions directly applied Palette.Builder
Palette.Builder(bitmap)
        .maximumColorCount(10)
        .asObservable()
        .subscribe({ palette ->
            // Do stuff
        });

Download

Java bindings:

compile 'io.sweers.rxpalette:rxpalette:0.3.0'

Kotlin bindings:

compile 'io.sweers.rxpalette:rxpalette-kotlin:0.3.0'

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2015 Zac Sweers

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.

Versions

Version
0.3.0
0.2.0
0.1.0