[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3935":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},3935,"EventBus","greenrobot\u002FEventBus","greenrobot","Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.","http:\u002F\u002Fgreenrobot.org\u002Feventbus\u002F",null,"Java",24726,4650,1029,102,0,1,9,45,"Apache License 2.0",false,"master",true,[],"2026-06-12 02:00:56","EventBus\n========\n[EventBus](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002F) is a publish\u002Fsubscribe event bus for Android and Java.\u003Cbr\u002F>\n\u003Cimg src=\"EventBus-Publish-Subscribe.png\" width=\"500\" height=\"187\"\u002F>\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fgreenrobot\u002FEventBus\u002Factions\u002Fworkflows\u002Fgradle.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgreenrobot\u002FEventBus\u002Factions)\n[![Follow greenrobot on Twitter](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Ffollow\u002Fgreenrobot_de.svg?style=flat-square&logo=twitter)](https:\u002F\u002Ftwitter.com\u002Fgreenrobot_de)\n\nEventBus...\n\n * simplifies the communication between components\n    * decouples event senders and receivers\n    * performs well with Activities, Fragments, and background threads\n    * avoids complex and error-prone dependencies and life cycle issues\n * makes your code simpler\n * is fast\n * is tiny (~60k jar)\n * is proven in practice by apps with 1,000,000,000+ installs\n * has advanced features like delivery threads, subscriber priorities, etc.\n\nEventBus in 3 steps\n-------------------\n1. Define events:\n\n    ```java  \n    public static class MessageEvent { \u002F* Additional fields if needed *\u002F }\n    ```\n\n2. Prepare subscribers:\n    Declare and annotate your subscribing method, optionally specify a [thread mode](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Fdocumentation\u002Fdelivery-threads-threadmode\u002F):  \n\n    ```java\n    @Subscribe(threadMode = ThreadMode.MAIN)  \n    public void onMessageEvent(MessageEvent event) {\n        \u002F\u002F Do something\n    }\n    ```\n    Register and unregister your subscriber. For example on Android, activities and fragments should usually register according to their life cycle:\n\n   ```java\n    @Override\n    public void onStart() {\n        super.onStart();\n        EventBus.getDefault().register(this);\n    }\n \n    @Override\n    public void onStop() {\n        super.onStop();\n        EventBus.getDefault().unregister(this);\n    }\n    ```\n\n3. Post events:\n\n   ```java\n    EventBus.getDefault().post(new MessageEvent());\n    ```\n\nRead the full [getting started guide](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Fdocumentation\u002Fhow-to-get-started\u002F).\n\nThere are also some [examples](https:\u002F\u002Fgithub.com\u002Fgreenrobot-team\u002Fgreenrobot-examples).\n\n**Note:** we highly recommend the [EventBus annotation processor with its subscriber index](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Fdocumentation\u002Fsubscriber-index\u002F).\nThis will avoid some reflection related problems seen in the wild.  \n\nAdd EventBus to your project\n----------------------------\n\u003Ca href=\"https:\u002F\u002Fsearch.maven.org\u002Fsearch?q=g:org.greenrobot%20AND%20a:eventbus\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Forg.greenrobot\u002Feventbus.svg\">\u003C\u002Fa>\n\nAvailable on \u003Ca href=\"https:\u002F\u002Fsearch.maven.org\u002Fsearch?q=g:org.greenrobot%20AND%20a:eventbus\">Maven Central\u003C\u002Fa>.\n\nAndroid projects:\n```groovy\nimplementation(\"org.greenrobot:eventbus:3.3.1\")\n```\n\nJava projects:\n```groovy\nimplementation(\"org.greenrobot:eventbus-java:3.3.1\")\n```\n```xml\n\u003Cdependency>\n    \u003CgroupId>org.greenrobot\u003C\u002FgroupId>\n    \u003CartifactId>eventbus-java\u003C\u002FartifactId>\n    \u003Cversion>3.3.1\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\nR8, ProGuard\n------------\n\nIf your project uses R8 or ProGuard this library ships [with embedded rules](\u002Feventbus-android\u002Fconsumer-rules.pro).\n\nHomepage, Documentation, Links\n------------------------------\nFor more details please check the [EventBus website](https:\u002F\u002Fgreenrobot.org\u002Feventbus). Here are some direct links you may find useful:\n\n[Features](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Ffeatures\u002F)\n\n[Documentation](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Fdocumentation\u002F)\n\n[Changelog](https:\u002F\u002Fgithub.com\u002Fgreenrobot\u002FEventBus\u002Freleases)\n\n[FAQ](https:\u002F\u002Fgreenrobot.org\u002Feventbus\u002Fdocumentation\u002Ffaq\u002F)\n\nLicense\n-------\nCopyright (C) 2012-2021 Markus Junginger, greenrobot (https:\u002F\u002Fgreenrobot.org)\n\nEventBus binaries and source code can be used according to the [Apache License, Version 2.0](LICENSE).\n\nOther projects by greenrobot\n============================\n[__ObjectBox__](https:\u002F\u002Fobjectbox.io\u002F) ([GitHub](https:\u002F\u002Fgithub.com\u002Fobjectbox\u002Fobjectbox-java)) is a new superfast object-oriented database.\n\n[__Essentials__](https:\u002F\u002Fgithub.com\u002Fgreenrobot\u002Fessentials) is a set of utility classes and hash functions for Android & Java projects.\n","EventBus 是一个用于 Android 和 Java 的发布\u002F订阅事件总线，简化了 Activities、Fragments、Threads 和 Services 之间的通信。其核心功能包括解耦事件发送者和接收者，处理复杂的生命周期问题，并支持在主线程或后台线程中灵活地传递事件。EventBus 体积小巧（约60k jar），性能优异，且已在安装量超过10亿的应用中得到验证。它适用于需要减少组件间直接依赖、提高代码可维护性和响应速度的场景，特别是在大型复杂应用开发中。通过简单的三步即可快速上手：定义事件、准备订阅者以及发布事件。",2,"2026-06-11 02:57:16","top_language"]