This one can show you how to call a microflow.
Also take a look at the widget boilerplate on Github:
Most of the time someone in the community has already built a lot of the functionality your looking for. So take a look on the appstore there might be a widget that does 90% -100% what you want. The beauty of the widgets is they are all open sourced and easily customisable.