Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 676 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 676 Bytes

AF Radio Android Playback plugin

The library helps you integrate playback into your android app.

Installation

  1. Import the afr library module into your project

  2. 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");
  1. Start the Playback fragment
getSupportFragmentManager()
        .beginTransaction()
        .add(R.id.main, PlaybackFragment.Companion.newInstance(config))
        .commit()
  1. Done.