All Projects → thepacific → Timer

thepacific / Timer

This is a simple rxjava2/rxjava3/kotlin-flow timer

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Timer

Weexplus
🔨基于阿里WeexSDK跨平台方案,在原有的组件基础上,提供weex调用android native方法的一套扩展通信交互库,包含页面导航、数据存储、图片选择、二维码识别、权限等。
Stars: ✭ 73 (-21.51%)
Mutual labels:  rxjava2
Hackaru
Simple, cross-platform time tracking application
Stars: ✭ 82 (-11.83%)
Mutual labels:  timer
Pufferdb
🐡 An Android & JVM key-value storage powered by Protobuf and Coroutines
Stars: ✭ 91 (-2.15%)
Mutual labels:  rxjava2
Suzaku
Hashed wheel timer in Swift
Stars: ✭ 77 (-17.2%)
Mutual labels:  timer
Open Source Android Weather App
☔️ Open source android weather app. See "Issues" tab for current tasks queue. Tasks suitable for beginners are labeled with green "beginner friendly" tags.
Stars: ✭ 81 (-12.9%)
Mutual labels:  rxjava2
Timerlab
⏰ A simple and customizable timer
Stars: ✭ 84 (-9.68%)
Mutual labels:  timer
Android App Architecture Mvvm Databinding
A simple but complete project (in both Java & Kotlin) to demonstrate the Android application architecture with MVVM pattern, a client app for The Movie DB Web API. Dagger2 is used for dependency injection and RxJava is used for RFP (Reactive Functional Programming).
Stars: ✭ 69 (-25.81%)
Mutual labels:  rxjava2
Rxlife
使用Jetpack、Kotlin实现的RxJava自动注销库,你值得拥有!
Stars: ✭ 92 (-1.08%)
Mutual labels:  rxjava2
Freesound Android
Unofficial Android client for the Freesound Project
Stars: ✭ 81 (-12.9%)
Mutual labels:  rxjava2
Seckill
Chrome浏览器 抢购、秒杀插件,秒杀助手,定时自动点击
Stars: ✭ 1,278 (+1274.19%)
Mutual labels:  timer
Rxbus
Android reactive event bus that simplifies communication between Presenters, Activities, Fragments, Threads, Services, etc.
Stars: ✭ 79 (-15.05%)
Mutual labels:  rxjava2
Kuroba Experimental
Free and open source image board browser
Stars: ✭ 76 (-18.28%)
Mutual labels:  rxjava2
Archetype
[DEPRECATED]Badass MVVM architecture.
Stars: ✭ 84 (-9.68%)
Mutual labels:  rxjava2
Rxactivityresult
This is a library that can help you to receive results from startActivityForResult() as an Observable.
Stars: ✭ 76 (-18.28%)
Mutual labels:  rxjava2
Workerman
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols. PHP>=5.3.
Stars: ✭ 9,617 (+10240.86%)
Mutual labels:  timer
Flip Clock
A flip clock, timer and countdown made with Polymer
Stars: ✭ 69 (-25.81%)
Mutual labels:  timer
Functionalrx2
FunctionalRx2 is a collection of constructs to simplify a functional programming approach to Java and Android [STABLE]
Stars: ✭ 83 (-10.75%)
Mutual labels:  rxjava2
Dipstick
Configurable metrics toolkit for Rust applications
Stars: ✭ 92 (-1.08%)
Mutual labels:  timer
Androidbase
Android project template for Gradle Kotlin DSL + 100% Kotlin + Base module + Extensions = ❤️
Stars: ✭ 92 (-1.08%)
Mutual labels:  rxjava2
Android Base
Android Clean Architecture MVP RESTful client template app
Stars: ✭ 87 (-6.45%)
Mutual labels:  rxjava2

This is a simple rxjava2/rxjava3/kotlin-flow timer. I copy this class into all the little apps I make. I'm tired of doing it. Now it's a library

Download

Usage

timer = Rx2Timer.builder()
                .initialDelay(0) //default is 0
                .period(1) //default is 1
                .take(30) //default is 60
                .unit(TimeUnit.SECONDS) // default is TimeUnit.SECONDS
                .onEmit(count -> {
                    if (count < 10) {
                        binding.text.setText("0" + count + " s");
                    } else {
                        binding.text.setText(count + " s");
                    }
                })
                .onError(e -> binding.text.setText(R.string.count))
                .onComplete(() -> binding.text.setText(R.string.count))
                .build();

timer.start();
timer.stop();
timer.restart();
timer.pause();
timer.resume();
                

Gradle

// rxjava2
implementation 'com.github.thepacific:rx2-timer:1.0.0'
// rxjava3
implementation 'com.github.thepacific:rx3-timer:1.0.0'

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].