The library helps you integrate playback into your android app.
Installation
-
Import the
afr
library module into your project -
In the oncreate setion of your
MainActivity
or whatever cativity you want to open you module, create you configuration Parameters using credentials supplied by AF Radio.
Config config = new Config();
config.setAppId("tKvHWTnKAXLfxjAYm");
config.setResId("NFR3cG4sEqLT5pnk3");
- Start the Playback fragment
getSupportFragmentManager()
.beginTransaction()
.add(R.id.main, PlaybackFragment.Companion.newInstance(config))
.commit()
- Done.