Skip to content

Custom Configuration

Hrishikesh Kadam edited this page Apr 27, 2018 · 4 revisions

You can pass custom configuration to FolioReader by creating a Configuration builder.

Config config = new Config.ConfigBuilder()
                        .nightmode(true) 
                        .fontSize(1)
                        .setShowTts(true)
                        .font(Font.ANDADA)
                        .themeColor(R.color.grey_color)
                        .build();

FolioReader folioReader = FolioReader.getInstance(getApplicationContext())
        .openBook("file:///android_asset/adventures.epub", config);