Android Intent wrapper with fluid API and argument validations.
Android Intent wrapper with fluid API and argument validations.
git clone https://github.com/robertoestivill/intentbuilder.git
com.robertoestivill.intentbuilder
intentbuilder
0.1.2
dependencies {
compile 'com.robertoestivill.intentbuilder:intentbuilder:0.1.2'
}The main class of the library is intentbuilder.IntentBuilder.
// Explicit intent
Intent intent = new IntentBuilder()
.context(this)
.activity(MyActivity.class)
.extra("my_key", "my_value")
.build();
// Implicit intent
Intent intent = new IntentBuilder()
.action("my.app.MY_GREAT_ACTION")
.extra("bool_key", true)
.extra("int_key", 123)
.extra("char_key", 'A')
.flags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
.build();…No open issues yet, or sync has not completed.