ASAPPStyleConfig

Style configuration that allows customization of ASAPP Chat styles/resources.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@StringRes
var chatActivityTitle: Int?

Optional chat activity title.

Link copied to clipboard
@DrawableRes
var chatActivityToolbarLogo: Int?

Optional chat activity logo. This holds priority over chatActivityTitle (i.e. if both are set the logo will be shown).

Functions

Link copied to clipboard

Sets the desired allowed orientations (see ASAPPAllowedOrientations). If this is not called, the default value ASAPPAllowedOrientations.PORTRAIT_LOCK will be used.

Link copied to clipboard
fun setChatActivityTitle(@StringRes resId: Int): ASAPPStyleConfig

Sets the chat activity title.

Link copied to clipboard

Sets the chat activity logo. This holds precedence over the string title.

Link copied to clipboard

Sets whether ASAPP activities icons or titles should be horizontally centered inside the toolbar. The default is "false", meaning the icon will gravitate to the toolbar "start".

Link copied to clipboard
fun setPrimaryBackButton(@DrawableRes resId: Int): ASAPPStyleConfig

Sets the back button drawable for chat activity.

Link copied to clipboard
fun setSecondaryBackButton(@DrawableRes resId: Int): ASAPPStyleConfig

Sets the back button drawable for deeper level views.

Link copied to clipboard

The text style customization handler. See ASAPPTextStyles for more details on text styles and customization options.