goodow / Realtime Android
数据驱动视图开发在 Android 平台的实现
Stars: ✭ 23
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Realtime Android
Devutils
🔥 ( 持续更新,目前含 160+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。
Stars: ✭ 680 (+2856.52%)
Mutual labels: activity
Path To Regexp
Turn a path string such as `/user/:name` into a regular expression
Stars: ✭ 6,789 (+29417.39%)
Mutual labels: router
Rapid.js
An ORM-like Interface and a Router For Your API Requests
Stars: ✭ 700 (+2943.48%)
Mutual labels: router
Micro Router
🚉 A tiny and functional router for Zeit's Micro
Stars: ✭ 621 (+2600%)
Mutual labels: router
Koa Dec Router
An ES6 decorator + class based router, support inherit, override, priority, auto load controllers, etc.
Stars: ✭ 19 (-17.39%)
Mutual labels: router
Xunlei Fastdick
迅雷快鸟 Xunlei Network Accelerator For Router
Stars: ✭ 789 (+3330.43%)
Mutual labels: router
Lion
Lion is a fast HTTP router for building modern scalable modular REST APIs in Go
Stars: ✭ 750 (+3160.87%)
Mutual labels: router
Flutter thrio
flutter_thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.
Stars: ✭ 717 (+3017.39%)
Mutual labels: router
Android Dragdismissactivity
A smooth, easy-to-implement, drag to dismiss Android Activity.
Stars: ✭ 682 (+2865.22%)
Mutual labels: activity
Multiprocessrouter
一个多进程路由框架,使用APT处理路由接口的注册和初始化。多个模块间可以进行IPC调用。
Stars: ✭ 18 (-21.74%)
Mutual labels: router
Navaid
A navigation aid (aka, router) for the browser in 850 bytes~!
Stars: ✭ 648 (+2717.39%)
Mutual labels: router
Androuter
A android router framework used to map url to activities or actions.
Stars: ✭ 730 (+3073.91%)
Mutual labels: router
Storeon Async Router
Asynchronous router for Storeon. It provides possibility for prefetch the data, lazy load, navigation cancellation, and routes modification on the fly.
Stars: ✭ 22 (-4.35%)
Mutual labels: router
realtime-android
Event bus client over WebSocket for java and andorid
Visit Google groups for discussions and announcements.
Adding realtime-android to your project
Maven
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.goodow.realtime</groupId>
<artifactId>realtime-android</artifactId>
<version>0.5.5-SNAPSHOT</version>
</dependency>
</dependencies>
Usage
WebSocket mode
AndroidPlatform.register(); // or JavaPlatform.register();
Bus bus = new ReconnectBus("ws://localhost:1986/channel/websocket", null);
bus.subscribe("some/topic", new MessageHandler<JsonObject>() {
@Override
public void handle(Message<JsonObject> message) {
JsonObject payload = message.payload();
System.out.println("Name: " + payload.get("name"));
}
});
bus.publish("some/topic", Json.createObject().set("name", "Larry Tin"));
AndroidPlatform.register(); // or JavaPlatform.register();
Store store = new StoreImpl("ws://localhost:1986/channel/websocket", null);
Bus bus = store.getBus();
Handler<Document> onLoaded = new Handler<Document>() {
@Override
public void handle(Document document) {
Model model = document.getModel();
CollaborativeMap root = model.getRoot();
CollaborativeString name = root.get("name");
System.out.println("Name: " + name.getText());
}
};
Handler<Model> opt_initializer = new Handler<Model>() {
@Override
public void handle(Model model) {
CollaborativeString name = model.createString("Larry Tin");
CollaborativeMap root = mod.getRoot();
root.set("name", name);
}
};
store.load("docType/docId", onLoaded, opt_initializer, null);
See WebSocketBusTest and ServerStoreTest for more usage.
Local mode
NOTE: You must register a platform first by invoke JavaPlatform.register() or AndroidPlatform.register()
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].