Skip to content
Hrishikesh Kadam edited this page Jun 29, 2018 · 2 revisions

setAllowedDirection(AllowedDirection allowedDirection)

Set reading direction mode options for users. This method should be called before setDirection(Direction) as it has higher preference.

Parameters:

  • allowedDirection - reading direction mode options for users. Setting to VERTICAL_AND_HORIZONTAL users will have choice to select the reading direction at runtime.

setDirection(Direction direction)

Set reading direction. This method should be called after setAllowedDirection(AllowedDirection) as it has lower preference.

Parameters:

  • direction - reading direction.

setFont(int font)

Parameters:

  • font - You can choose custom font provided by FolioReader:
    • Constants.FONT_ANDADA = 1
    • Constants.FONT_LATO = 2
    • Constants.FONT_LORA = 3
    • Constants.FONT_RALEWAY = 4

setFontSize(int fontSize)

Parameters:

  • fontSize - You can choose fontSize from 0 to 4, 0 being textSizeOne till 4 as textSizeFive.

setNightMode(boolean nightMode)

Parameters:

  • nightMode - true makes night mode on.

setThemeColor(int themeColor)

Parameters:

  • themeColor - Color resource applied app wide as accent color.

setShowTts(boolean showTts)

Parameters: