DefaultFloatingButtonConfiguration

data class DefaultFloatingButtonConfiguration(val anchor: Int = Gravity.BOTTOM or Gravity.START, val margins: DefaultFloatingButtonMargins = DefaultFloatingButtonMargins(), val backgroundTint: Int = 0xFF1BC74E.toInt(), val iconTint: Int = 0xFFF4F4F5.toInt(), val iconResIds: Map<ConversationChannel, Int> = mapOf( CHAT to R.drawable.iadvize_sdk_ic_chat, VIDEO to R.drawable.iadvize_sdk_ic_video ))

Data object that holds the configuration of the Conversation SDK Default Floating 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.

backgroundTint

The floating button background color tint. Default is #1BC74E.

iconTint

The floating button icon color tint. Default is #F4F4F5.

iconResIds

A map of icons res ids for each conversation channel.

Constructors

Link copied to clipboard
constructor(anchor: Int = Gravity.BOTTOM or Gravity.START, margins: DefaultFloatingButtonMargins = DefaultFloatingButtonMargins(), backgroundTint: Int = 0xFF1BC74E.toInt(), iconTint: Int = 0xFFF4F4F5.toInt(), iconResIds: Map<ConversationChannel, Int> = mapOf( CHAT to R.drawable.iadvize_sdk_ic_chat, VIDEO to R.drawable.iadvize_sdk_ic_video ))

Properties

Link copied to clipboard
val anchor: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard