A powerful componentized framework. Component
focuses on improving the user experience.
If you have any confusion while using Component, issues are welcomed any time.
You can also join our community by scanning the QRCode below to discuss more about the Component
![](https://raw.githubusercontent.com/Bonway/Component/develop/./imgs/demoApk.png)
There are many componentized framework for Android
, and what are advantages of Component
?
- Support standard
URI
. - Support
androidx
, there is almost no componentized framework can support it. - Support lifecycle of
Module
- The design of
Component
is close to native, less invasive for native code, minimizing the possibility of retaining native code - Support autowire of
Parameter
andService
- The
Interceptor
ofRouter
is running onMainThread
- The design of
Interceptor
, we think 90% code is running onMainThread
,so theInterceptor
ofRouter
is running onMainThread
.Then you can operate theUI
orDialog
and so on. - We provoder the
Callback
mechanism,then you can do any thing inInterceptor
- This advantage is very useful
- The design of
- An
idea plugin
can navigate to targetActivity
and find all the use of targetActivity
, here is the Plugin - Cancel routering, this advantage is very useful
- You can cancel routering
- The routering will auto canceled when
Activity
orFragment
destoried
-
Interceptor
of router, more detail see Interceptor Wiki- Global Interceptor
- Local Interceptor
- page Interceptor
- The alias name of Interceptor, you can use Interceptor by name anywhere
- Routering
- Support standard
URI
- Support custom
Intent
- Support routering api like [Retrofit
-
Idea Plugin
can navigate to targetActivity
and find all the use of target `Activity``
- Support standard
- Perfect support
H5
-
H5
can useURL
jump to anyActivity
- Because of page Interceptor, when you routering from
H5
,you don't need to care whether the targetActivity
is need login or other or not - Not Support get target
Activity
result fromH5
, this situation you have to designType
to do as before.
-
- You can get
ActivityResult
with no change of code, also don't need to change any code ofBaseActivity
- As the behavior of system, when
Context
isApplication
orService Context
orContentProvider Context
, will not support. - In addition to the above points, other situations are all sopport, include
Dialog
and so on.
- As the behavior of system, when
- The
Routering
andService
is divided - Perfect support
RxJava2
when you userx
version. - Module run alone
- dependence and config
- The usage of RouterAnno
- Routering
- Interceptor
- SPI and use
- Module run alone
- Noun explanation
- Basic introduction
if you want leran more you can see wiki
- Waht is componentized
Idea Plugin
RouterGo can navigate to target Activity
and find all the use of target Activity
, you're worth it!
Licensed 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.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.