All Projects → Jomes → Routersdk

Jomes / Routersdk

A mini and excellent Router Framwork一款小而美的路由框架。网页动态添加自定义参数启动应用。 https://github.com/Jomes/routerSDK

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Routersdk

Onesignal Ios Sdk
OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Stars: ✭ 370 (-7.96%)
Mutual labels:  sdk
React
🔼 UI-Router for React
Stars: ✭ 386 (-3.98%)
Mutual labels:  router
Diet
A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.
Stars: ✭ 394 (-1.99%)
Mutual labels:  router
Quickblox Ios Sdk
QuickBlox iOS SDK for messaging and video calling
Stars: ✭ 373 (-7.21%)
Mutual labels:  sdk
Padavan
padavan 简体中文 & 路由器适配
Stars: ✭ 385 (-4.23%)
Mutual labels:  router
Cmu Multimodalsdk
CMU MultimodalSDK is a machine learning platform for development of advanced multimodal models as well as easily accessing and processing multimodal datasets.
Stars: ✭ 388 (-3.48%)
Mutual labels:  sdk
Applicationinsights Dotnet
ApplicationInsights-dotnet
Stars: ✭ 367 (-8.71%)
Mutual labels:  sdk
Ozzo Routing
An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
Stars: ✭ 398 (-1%)
Mutual labels:  router
Uwebsockets.js
μWebSockets for Node.js back-ends 🤘
Stars: ✭ 4,552 (+1032.34%)
Mutual labels:  router
Blacklist
Blacklist and Adware Blocking for the Ubiquiti EdgeMax Router
Stars: ✭ 393 (-2.24%)
Mutual labels:  router
Miox
Modern infrastructure of complex SPA
Stars: ✭ 374 (-6.97%)
Mutual labels:  router
Krakend
Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation
Stars: ✭ 4,752 (+1082.09%)
Mutual labels:  router
Sower
Sower is a cross-platform intelligent transparent proxy solution.
Stars: ✭ 391 (-2.74%)
Mutual labels:  router
Azure Sdk For Php
Microsoft Azure SDK for PHP
Stars: ✭ 369 (-8.21%)
Mutual labels:  sdk
Huobi python
Python SDK for Huobi Spot API
Stars: ✭ 391 (-2.74%)
Mutual labels:  sdk
Openwrtinvasion
Root shell exploit for several Xiaomi routers: 4A Gigabit, 4A 100M, 4, 4C, 3Gv2, 4Q, miWifi 3C...
Stars: ✭ 366 (-8.96%)
Mutual labels:  router
Regexparam
A tiny (308B) utility that converts route patterns into RegExp. Limited alternative to `path-to-regexp` 🙇‍♂️
Stars: ✭ 390 (-2.99%)
Mutual labels:  router
Minio Py
MinIO Client SDK for Python
Stars: ✭ 400 (-0.5%)
Mutual labels:  sdk
Werobot
WeRoBot 是一个微信公众号开发框架
Stars: ✭ 3,973 (+888.31%)
Mutual labels:  sdk
Dcurlrouter
通过自定义URL实现控制器之间的跳转
Stars: ✭ 393 (-2.24%)
Mutual labels:  router

#RouterSDK RouterSDK is an excellent Router Framwork ,it is easy to integrate in your project. You can start an application through the web page by the custom parameters. In addition, it can also provides a number of useful features such as dynamic routing configuration, jump animation, task station, jump pretreatment, etc.

Screenshot

route

Build

Step 1. Add the JitPack repository to your build file

add the JitPack maven to your project in root build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add module dependency build.gradle

 dependencies {
     compile 'com.github.Jomes:routerSDK:v1.0.3-alpha'
 } 

That's it!

How to use

init RouteTable in application

 Router.initRouteTable(new IRouteTableMapping() {
       @Override
       public void operaRouterTable(Map<String, Class<? extends Activity>> map) {
           map.put("jomeslu://www", OneActivity.class);
           map.put("jomeslu://loginactivity", LoginActivity.class);
       }
 });

Router Jump page

 Router.build("http://androidblog.cn/index.php/Source").start(MainActivity.this);

Definition Of type

  • Scheme:suggest to define application name which router to use
  • Host: suggest to define page where to go, such activity
  • path : Transfer parameter,customer type
key format {i:ikey} {f:key} {l:key} {d:key} {s:key} {b:key}
type integer float long double string boolean

eg :From A page to B page use url :jomeslu://www?{i:id}=168&{s:jomeslu}=jomeslu

A page

 Router.build("jomeslu://www?{i:id}=168&{s:jomeslu}=jomeslu").setIRouteInterceptor(new IRouteInterceptor() {
        @Override
        public boolean interceptor() {
           Router.build("jomeslu://loginactivity?{i:id}=168&{s:jomeslu}=jomeslu").start(MainActivity.this);
           Toast.makeText(MainActivity.this, "login...", Toast.LENGTH_LONG).show();
            return true;
        }
 }).start(MainActivity.this);;

B Page Receive parameter as normal

  String jomeslu = getIntent().getStringExtra("jomeslu");
  int id = getIntent().getIntExtra("id", -1);

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].