Skip to main content

🎨 Call Screen UI Customization Guide (PitelCallUIConfig)

The Pitel VoIP SDK provides a built-in Jetpack Compose in-call overlay screen (PitelCallActivity) and heads-up notification UI. You can customize the entire appearance—including colors, button visibility, font sizes, text labels, and icon resources—using PitelCallUIConfig.


🚀 Quick Example​

Pitel Call Screen

Pass your PitelCallUIConfig during SDK initialization:

import com.pitel.voip.sdk.core.PitelClient
import com.pitel.voip.sdk.ui.PitelCallUIConfig

val customUIConfig = PitelCallUIConfig(
// Colors (Light Mode)
backgroundColor = 0xFF1B2A47, // Dark navy primary background
textColor = 0xFFFFFFFF, // Text color
acceptBtnColor = 0xFF4CAF50, // Green answer button
declineBtnColor = 0xFFE53935, // Red decline button
hangupBtnColor = 0xFFE53935, // Red hangup button

// Custom Status Texts
incomingText = "Incoming call...",
ongoingCallTitle = "Call in progress",
ongoingCallText = "Tap to return to call",
acceptText = "Answer",
declineText = "Decline",

// Visibility Toggles
showKeypadByDefault = false,
showTransferButton = true,
showHoldButton = true,
showMuteButton = true,
showSpeakerButton = true
)

// Apply UI config during initialization
PitelClient.init(
context = this,
autoLaunchCallScreen = true,
uiConfig = customUIConfig
)

📋 Complete PitelCallUIConfig Parameters Reference​

ParameterTypeDefault ValueDescription
Theme & Colors (Light Mode)
backgroundColorLong0xFF4F69E3Primary call screen background color (HEX ARGB)
textColorLong0xFFFFFFFFGeneral text color
actionCardBgColorLong0xFFFFFFFFIn-call action card panel background color
Theme & Colors (Dark Mode)
backgroundColorDarkLong0xFF121212Primary call screen background color in dark mode
textColorDarkLong0xFFFFFFFFGeneral text color in dark mode
actionCardBgColorDarkLong0xFF1E1E1EIn-call action card panel background color in dark mode
Button States & Colors (Light Mode)
btnActiveBgColorLong0xFFE8ECFFActive/toggled button background color
btnInactiveBgColorLong0xFFF5F7FBInactive button background color
btnDisabledBgColorLong0x66F5F7FBDisabled button background color
btnActiveIconColorLong0xFF4F69E3Active button icon tint
btnInactiveIconColorLong0xFF2D3748Inactive button icon tint
btnDisabledIconColorLong0xFFA0AEC0Disabled button icon tint
btnLabelTextColorLong0xFF2D3748Button label text color
Button States & Colors (Dark Mode)
btnActiveBgColorDarkLong0xFF3D4E80Active button background color in dark mode
btnInactiveBgColorDarkLong0xFF2C2C2EInactive button background color in dark mode
btnDisabledBgColorDarkLong0x662C2C2EDisabled button background color in dark mode
btnActiveIconColorDarkLong0xFF8FA9FFActive button icon tint in dark mode
btnInactiveIconColorDarkLong0xFFE0E0E0Inactive button icon tint in dark mode
btnDisabledIconColorDarkLong0xFF4A4A4ADisabled button icon tint in dark mode
btnLabelTextColorDarkLong0xFFE0E0E0Button label text color in dark mode
Control Action Buttons
acceptBtnColorLong0xFF4CAF50Answer incoming call button background color
declineBtnColorLong0xFFE53935Decline incoming call button background color
hangupBtnColorLong0xFFE53935Hangup active call button background color
Typography & Font Sizes
titleTextSizeSpFloat28fFont size (in SP) for Caller/Callee display name
In-Call Action Visibility
showKeypadByDefaultBooleanfalseWhen true, automatically reveals the DTMF keypad on call start
showTransferButtonBooleantrueShow/hide the call transfer button
showHoldButtonBooleantrueShow/hide the call hold/unhold button
showMuteButtonBooleantrueShow/hide the microphone mute/unmute button
showSpeakerButtonBooleantrueShow/hide the audio routing (speaker/earpiece/bluetooth) button
Custom Status & Notification Texts
incomingTextString"Incoming call..."Incoming call alert title text
outgoingTextString"Outgoing..."Outgoing call dialing status text
connectingTextString"Connecting..."Call connection status text
ringingTextString"Ringing..."Ringing status text
activeTextString"Active"Call established status text
disconnectedTextString"Disconnected"Call ended status text
acceptTextString"Answer"Answer button text in notification popup
declineTextString"Decline"Decline button text in notification popup
ongoingCallTitleString"Call in progress"Ongoing call notification title
ongoingCallTextString"Active call"Ongoing call notification body text
Custom Resource Drawables (R.drawable.*)
defaultAvatarResIdInt?nullCaller avatar placeholder drawable resource ID
muteIconResIdInt?nullMute microphone action button icon
unmuteIconResIdInt?nullUnmute microphone action button icon
speakerIconResIdInt?nullSpeaker audio route button icon
earpieceIconResIdInt?nullEarpiece audio route button icon
bluetoothIconResIdInt?nullBluetooth audio route button icon
headsetIconResIdInt?nullWired headset audio route button icon
holdIconResIdInt?nullHold call action button icon
resumeIconResIdInt?nullResume call action button icon
transferIconResIdInt?nullTransfer call action button icon
keypadIconResIdInt?nullShow dial pad action button icon
acceptIconResIdInt?nullAnswer call icon
declineIconResIdInt?nullDecline call icon
hangupIconResIdInt?nullHangup call icon