Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A SIMPLE library of eventbus, based on RxJava2

NotificationsYou must be signed in to change notification settings

KingJA/RxBus2

Repository files navigation

RxJava2

A SIMPLE library of eventbus, based on RxJava2. CLICK THE STAR if it's useful for you.

Preview

Dependencies

compile'io.reactivex.rxjava2:rxjava:2.1.0'compile'io.reactivex.rxjava2:rxandroid:2.0.1'

Usage

step 1: register

RxBus.getDefault().register(this);

step 2: receive&post

//receive@SubscribepublicvoidreceiveEventMain(EventMainevent) {    ((TextView)findViewById(R.id.tv_main_eventMsg)).setText(event.getMsg());}//postRxBus.getDefault().post(newEventMain());

step 3: unregister

RxBus.getDefault().unregister(this);RxBus.getDefault().unregister(this,eventA);

License

Copyright 2017 KingJALicensed 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.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

About

A SIMPLE library of eventbus, based on RxJava2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp