GithubHelp home page GithubHelp logo

niqo01 / rxtask Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 4.0 186 KB

RxJava 2 binding for Google Play Services Task APIs.

License: Apache License 2.0

Kotlin 18.63% Java 81.37%
google-play-services rxjava2 android firebase

rxtask's Introduction

RxTask (DEPRECATED)

RxJava 2 binding API for Google Play Services Task APIs.

RxTask can be use standalone for any Google or Firebase APIs returning Task or, bundled with one of the GoogleAPIs helper project provided.

Download
implementation 'com.github.niqo01.rxplayservices:rx-play-services-task:0.4.0'
Example
    GoogleSignInClient client = GoogleSignIn.getClient(context, options);
    Single<GoogleSignInAccount> silentSignIn = SingleTask.create(() -> client.silentSignIn());
    ...
    Completable revokeAccess = CompletableTask.create(() -> client.revokeAccess());

GoogleAPIs

The following projects leverage RxTask and wrap the new GoogleApi introduced in version 11.6.0.

API Dependency
Auth com.github.niqo01.rxplayservices:rx-play-services-auth:0.4.0
Location com.github.niqo01.rxplayservices:rx-play-services-location:0.4.0
Places com.github.niqo01.rxplayservices:rx-play-services-places:0.4.0
Fitness com.github.niqo01.rxplayservices:rx-play-services-fitness:0.4.0
Wallet com.github.niqo01.rxplayservices:rx-play-services-wallet:0.4.0
Location Example
    RxFusedLocationProviderClient rxClient = new RxFusedLocationProviderClient(context);
    Observable<LocationResult> result = rxClient
            .requestLocationRequestUpdates(LocationRequest.create());

Snapshots

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

License

Copyright (C) 2017 Nicolas Milliard

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.

rxtask's People

Contributors

niqo01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

blakelee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.