Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 812 Bytes

File metadata and controls

32 lines (26 loc) · 812 Bytes

Core Intents

CommonIntentsExtensions

A set of factory functions to quick create common intents, and extensions for Intent class

Factory functions

var intent = webIntent(url)
var intent = emailIntent(url)
var intent = callIntent(url)

Extensions

webIntent(url).launch(context)

Intent(SOME_ACTION).sendBroadcast(context)

Also contains method to launchForResult activity in Rx way.

Sample usage:

selectContactIntent()
           .launchForResult(this)
           .subscribe({it:RxAcitivtyResult -> processResult(it)},
                   {handleError(it)})

For full list of functions, please look to the source code,example project or view documentation