In this talk, I'm giving you 5 useful tips of RxJava you might not know. Reference - Subscriptions#empty() http://reactivex.io/RxJava/javadoc/rx/â¦
This article is a revision of âTesting RXJavaâ, completely updated to conform to the RxJava2 specification. Youâve read about RxJava; youâve played with the samples on the internet, for example in RxJava by Example, and now you have made a commitment to explore reactive opportunities in your own code. But now you are wondering how to test out the new capabilities that you might find in your codeba
Iâm a big RxJava enthusiast. As an Android developer, I use it because it helps streamline my development by cutting down on a lot of the boilerplate thatâs generally associated with asynchronous tasks. As I got more comfortable with Rx, though, I noticed that a lot of my use cases for RxJava follow the same pattern in their setup and finish logic. A common example â loading data for a screen in a
第2åã¹ã¿ã¼ãã¢ããAndroidåå¼·ä¼ https://connpass.com/event/48090/
In this RxAndroid tutorial for reactive programming, you will learn how to do the following: Grasp the concepts of Reactive Programming. Define an Observable. Turn asynchronous events like button taps and text field context changes into observable constructs. Transform and filter observable items. Leverage Rx threading in code execution. Combine several observables into one stream. Turn all your o
ããã¯RxJava Advent Calendar 2016ã®ç¬¬14æ¥ç®ã®è¨äºã§ããååã¯TestSubscriberãTestSchedulerã使ã£ã¦RxJavaã«é¢ããåä½ãã¹ãã®ãããã説æãã¾ããã ãã®è¨äºã§ã¯ããããã§ã¯è¶³ããªãå ´åã®å¥¥ã®æãã¹ã±ã¸ã¥ã¼ã©ãå·®ãæ¿ããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã TestSubscriberãTestSchedulerã§ã¯è§£æ±ºããªãå ´å 以ä¸ã®ã³ã¼ããè¦ã¦ãã ãããããã¯ååã®è¨äºã§ä½¿ç¨ãã AsyncService ãã©ãããã WrappedService ã®ãã¹ãã§ãããã®ã©ãããé©åãã©ããã¯ãæªãã¦ããã¾ããã :-) @Test public void testWrappedService() { final WrappedService service = new WrappedService(new AsyncService());
ããã¯RxJava Advent Calendar 2016ã®ç¬¬12æ¥ç®ã®è¨äºã§ãã RxJavaã¯éåæå¦çãæ±ãã©ã¤ãã©ãªã§ãããããæ ã«RxJavaã®ãããåä½ãã¹ãã¯ä¸çç¸ã§ãããªãã¨ãããããã¾ãããã®è¨äºã¨æ¬¡ã®è¨äºã§ã¯ãRxJavaã§ã®éåæå¦çãã¹ãç¹æã®åé¡ã¨ããã®è§£æ±ºæ¹æ³ã説æãã¾ãããªããåºæ¬çã« RxJava 1.x ã対象ã¨ãã¦ãã¾ãããå¿ è¦ã«å¿ã㦠RxJava 2.x ã«ã¤ãã¦ã触ãã¾ãã ãã®è¨äºã®ç¶ç·¨ã¯ãã¡ãã«ãªãã¾ãã éåæå¦çã®åä½ãã¹ãã®é£ãã éåæå¦çã®åä½ãã¹ãã¯ä¸è¬ã«é£ãããã®ã§ãã試ãã«ä»¥ä¸ã®ã³ã¼ããå®è¡ãã¦ã¿ã¾ãããã @Test public void testDoSomething() { new AsyncService().doSomething() .subscribe(s -> assertEquals("success",
RxJava is used in many Android applications to manage background tasks, in this post will see how to test this code using Mockito and some RxJava utility classes. The example is written using RxJava 2, the same concepts are available also in RxJava 1 (in the demo project you can find both versions of the same example). Letâs see a simple example, we need a class (created using Retrofit) to execute
ãã使ããã¤ãã絶対ã¤ãããã¼ã ãã¿ãããªãã¤æ¸ãã¾ããã ãã¾ã¼ã«è¦è¿ãã¦æ¯æ¥ããããã«ãã¾ãããã ãããããã°ãã£ã¡ã«åºæ¬çãªä½¿ãæ¹ãæ¸ãã¦ããã®ã§ã©ãã çæ create [ReactiveX - Create operator][create] å¥Observableã®subscribeã«ãã£ã¦Observalbeãçæãããªãã¬ã¼ã¿ã¼ã æå³ãåããã°å³ã®éããªãã ãã©æå³ããããªãã¨æãã®ã§ãµã³ãã«ã³ã¼ããã ã§ã¯ã©ããã£ãã¨ãã«ä½¿ããã¨ããã¨éåæå¦ççã§ã¨ã©ã¼ãã³ããªã³ã°ãå¿ è¦ãªéã«ä½¿ãã¾ãã ã§ã¯å ·ä½ä¾ãã Observable<String> observable = Observable.create( new Observable.OnSubscribe<String>() { @Override public void call(Subscriber<? su
Flux ã¨ã¯ Facebook ãæå±ããã¢ã¼ããã¯ãã£ã®å称ã§ãæè¿ã®ããã³ãã¨ã³ã(JavaScript)çéã§ã¢ããªã±ã¼ã·ã§ã³ã®ç¶æ ã®è¤éãã«å¯¾å¿ããçºã®ã¢ããã¼ãã®ä¸ã¤ã§ãã https://facebook.github.io/flux/docs/overview.html æ§æ¥ã® MVC2 ããã㯠Observer ãã¿ã¼ã³ã« Action Dispatcher Sotre ã¨ããã³ã³ãã¼ãã³ãåãå®ç¾©ã Flux ã¨ããå称ãã¤ãããã®ãã¨èãã¦ããããã¨æãã¾ãã ãªãããã³ãã¨ã³ã(JavaScript)çéã§ä»ãã®ã¢ã¼ããã¯ãã£ãåãä¸ãããã¦ãããã¨è¨ã㨠React ã®ä»®æ³DOMã®ç»å ´ããã£ããã«ãªã£ã¦ãã¾ããã¢ããªã±ã¼ã·ã§ã³éçºã§ãããã£ã±ã«ç¶æ (Flux ã§ãã㨠Store)ãã View å ¨ä½ãåæç»ããã³ã¼ããæ¸ãã¦ããä»®æ³DOMå´ã§å·®åã§ã¬ã³ããªã³ã°
Since we started using RxJava in our Yammer Android app weâve often encountered APIs that donât follow its reactive model, requiring us to do some conversion work to integrate them with the rest of our RxJava Observable chains. APIs usually offer one of these two options when dealing with expensive operations: A synchronous blocking method call (expected to be called from a background thread)An as
ã¿ãããã¾ã¨ã RxJavaã¨Android Data Bindingãé£æºãã¦MVVMããã©ã¤ãã©ãªãä½ãã¾ããâRxProperty Android ï¼2017/02/09 v3.0.0ãã¼ã¸ã§ã³ã¢ããã«ä¼´ãç·¨éï¼ ã¯ããã« Androidæ¨æºã®éåæå¦çã®é¢åããããAndroidéçºã«RxJavaãå°å ¥ããæ¹ãå¢ãã¦ãã¾ãã å®éã«RxJavaã使ç¨ãã¦ã¿ãã¨ãéåæå¦çã®ã¿ãªããã¤ãã³ããå層ã®I/Fãªã©ãããã¨ãããããã®ãã¹ããªã¼ã ã¨ãã¦è¡¨ç¾ããããªãã¨æãã¾ãã ãã®çµæãã¹ããªã¼ã æ«å°¾ã®subscribeã¯ã»ã¨ãã©ãViewæä½ã¨ãªããã¨ããããããå¤ãã»ããããã ãã®ãããªåç´ãªå¦çãç¹°ãè¿ããã¨ã«ãªãã¾ãã å½ç¶ãio.reactivex.Observableã«æµãã¦ããå¤ããã®ã¾ã¾Viewã«åæ ãããªãããªãã¨ã®çºæ³ãçãã¾ãããAndroid Data Bindi
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}