Default Floating Button Configuration
data class DefaultFloatingButtonConfiguration(val anchor: Int = Gravity.BOTTOM or Gravity.START, val margins: DefaultFloatingButtonMargins = DefaultFloatingButtonMargins(), val backgroundTint: Int = 0xFF3D3D38.toInt(), val iconTint: Int = 0xFFFFFFFF.toInt(), val iconResId: Int = R.drawable.iadvize_sdk_ic_chat)
Encapsulate all the configuration options that can be applied to the chat button.
Parameters
anchor
The floating button anchor gravity on the screen. This will change the button position by anchoring it to the screen following the given gravity. Default is Gravity.BOTTOM | Gravity.START (button shows on bottom left part of the screen).
margins
The floating button margins. This will change the button position by applying the given margins to it. Default is (12-12-12-12). Please note that the button also has a fixed padding of 12dp.
background Tint
The floating button background color tint. Default is #3D3D38.
icon Tint
The floating button icon color tint. Default is #FFFFFF.
icon Res Id
The icon resource id.
Constructors
Link copied to clipboard
constructor(anchor: Int = Gravity.BOTTOM or Gravity.START, margins: DefaultFloatingButtonMargins = DefaultFloatingButtonMargins(), backgroundTint: Int = 0xFF3D3D38.toInt(), iconTint: Int = 0xFFFFFFFF.toInt(), iconResId: Int = R.drawable.iadvize_sdk_ic_chat)