logo
On this page

Config


ZegoUIKitPrebuiltCallInvitationConfig

Call invitation configuration class

PropertyDescriptionType
incomingCallRingtoneConfigures the ringtone for incoming online calls. The resource file needs to be placed in the res/raw/ directory. When setting this parameter, you do not need to include the file name extension. For example, if you have added the zego_incoming.mp3 resource file in the res/raw/ directory, then set incomingCallRingtone to the string "zego_incoming".String
outgoingCallRingtoneConfigures the ringtone for outgoing online calls. The resource file needs to be placed in the res/raw/ directory. When setting this parameter, you do not need to include the file name extension. For example, if you have added the zego_outgoing.mp3 resource file in the res/raw/ directory, then set outgoingCallRingtone to the string "zego_outgoing".String
ZegoUIKitPrebuiltCallConfigProviderReturns the ZegoUIKitPrebuiltCallConfig configuration class to customize the call. You can use the ZegoUIKitPrebuiltCallInvitationConfig .generateDefaultConfig(ZegoCallInvitationData invitationData) method to generate the default configuration. Please refer to the OverviewZegoUIKitPrebuiltCallConfigProvider
incomingCallBackgroundConfigures the background image for the waiting page of incoming online calls.Drawable
outgoingCallBackgroundConfigures the background image for the waiting page of outgoing online calls.Drawable
showDeclineButtonSpecifies whether to display the decline button when receiving an incoming online call.boolean
notificationConfigOffline call related configuration.ZegoNotificationConfig
translationTextText related to call invitations.ZegoTranslationText
callingConfigConfigurations related to inviting users to an ongoing call.ZegoCallInvitationInCallingConfig
endCallWhenInitiatorLeaveWhether the call automatically ends when the initiator leaves. The default value is false.boolean

ZegoUIKitPrebuiltCallConfig

Call configuration class

PropertyDescriptionType
turnOnCameraWhenJoiningWhether to enable the camera by default when joining a call. Default value is true.boolean
turnOnMicrophoneWhenJoiningWhether to enable the microphone by default when joining a call. Default value is true.boolean
useSpeakerWhenJoiningWhether to enable the speaker by default when joining a call. Default value is true.boolean
audioVideoViewConfigConfiguration for audio and video views, such as microphone and camera status icons, whether to display usernames, sound wave effects, and video display modes.ZegoPrebuiltAudioVideoViewConfig
layoutDisplay style of audio and video windows on the call page, including picture-in-picture layout and gallery layout.ZegoLayout
bottomMenuBarConfigConfiguration parameters for the bottom menu bar on the call page, such as buttons, button count limit, auto-hide, hide when clicking other areas, and color style.ZegoBottomMenuBarConfig
topMenuBarConfigConfiguration parameters for the top menu bar on the call page, such as buttons, button count limit, auto-hide, hide when clicking other areas, and color style.ZegoTopMenuBarConfig
hangUpConfirmDialogInfoWhether to display the dialog information when clicking the hang up button to leave the room. If not set, it will not be displayed.ZegoHangUpConfirmDialogInfo
memberListConfigConfiguration for displaying the member list in the call, such as the camera and microphone status of each member.ZegoMemberListConfig
screenSharingVideoConfigResolution of the screen sharing video, default value is 540p.ZegoPrebuiltVideoConfig
videoConfigResolution of the call video, default value is 360p.ZegoPrebuiltVideoConfig
durationConfigCall duration configuration.ZegoCallDurationConfig
beautyConfigOnly valid when using the face beautification plugin. Used to customize the effectsTypes of the face beautification plugin.ZegoBeautyPluginConfig
inRoomChatConfigConfiguration for the title and input prompt of in-room chat, or customizing the in-room chat view.ZegoInRoomChatConfig
miniVideoConfigConfiguration for the text and drawable resources of the mini video window.ZegoMiniVideoConfig
avatarViewProviderCustomizable user avatars.ZegoAvatarViewProvider
leaveCallListenerCallback when leaving the call.LeaveCallListener
zegoCallTextText related to the call.ZegoCallText

ZegoPrebuiltAudioVideoViewConfig

View configuration class

PropertyDescriptionType
showMicrophoneStateOnViewWhether to display the microphone state icon on the VideoView. The default value is false.boolean
showCameraStateOnViewWhether to display the camera state icon on the VideoView. The default value is false.boolean
showUserNameOnViewWhether to display the username on the VideoView. The default value is false.boolean
showSoundWavesInAudioModeWhether to display sound waves around the avatar in audio mode. The default value is true.boolean
useVideoViewAspectFillWhether to display the video in aspect fill mode (with black borders). The default value is true.boolean
videoViewForegroundViewProviderCustom foreground view for the video view.ZegoForegroundViewProvider

ZegoBottomMenuBarConfig

Bottom menu bar configuration class

PropertyDescriptionType
buttonsThe buttons to be displayed, displayed in the order of the actual List.List<ZegoMenuBarButtonName>
maxCountThe maximum number of buttons that can be displayed, up to 5. If this value is exceeded, a "More" button will be displayed. Note that this value includes the "More" button.int
hideAutomaticallyThe top and bottom will automatically collapse if there is no screen operation within 5 seconds, or if the user clicks on a non-responsive area of the screen.boolean
hideByClickWhether the user can click on a non-responsive area of the screen to collapse the top and bottom.boolean
styleThe color of the menu bar, with two options: highlight and dark.ZegoMenuBarStyle
buttonConfigMenu bar button configuration, use this configuration to change the icon of the button.ZegoMenuBarButtonConfig

ZegoTopMenuBarConfig

Top menu bar configuration class

PropertyDescriptionType
titleTitle of the top menu bar.String
buttonsButtons to be displayed, displayed in the order of the actual List.List<ZegoMenuBarButtonName>
maxCountMaximum number of buttons that can be displayed, up to 5. If exceeded, a "More" button will be displayed. Note that this value includes the "More" button.int
hideAutomaticallyThe top and bottom will automatically collapse if there is no operation on the screen within 5 seconds, or if the user clicks on a non-responsive area of the screen.boolean
hideByClickWhether the user can click on a non-responsive area of the screen to collapse the top and bottom.boolean
styleThe color of the menu bar, with two options: highlight and dark.ZegoMenuBarStyle
buttonConfigMenu bar button configuration, use this configuration to change the icon of the button.ZegoMenuBarButtonConfig

ZegoMemberListConfig

Room member list configuration class

PropertyDescriptionType
showMicrophoneStateWhether to display the microphone status icon, default value is true.boolean
showCameraStateWhether to display the camera status icon, default value is true.boolean
memberListItemProviderCustom member list view.ZegoMemberListItemViewProvider

ZegoCallDurationConfig

Call duration configuration class

PropertyDescriptionType
isVisibleWhether to display call duration, default value is true.boolean
durationUpdateListenerCallback for call duration update. Triggered every 1 second.DurationUpdateListener

ZegoMiniVideoConfig

Mini window configuration class

PropertyDescriptionType
miniVideoTextColorText color of the mini window video.int
miniVideoDrawableColorDrawable color of the mini window video.int
miniVideoAudioDrawableAudio drawable resource of the mini window video.Drawable
miniVideoVideoDrawableVideo drawable resource of the mini window video.Drawable
permissionTextText displayed when requesting permission for mini window video.String

ZegoMenuBarButtonConfig

Menu bar button configuration class

PropertyDescriptionType
toggleCameraOnImageIcon for the button when the camera is turned on.Drawable
toggleCameraOffImageIcon for the button when the camera is turned off.Drawable
toggleMicrophoneOnImageIcon for the button when the microphone is turned on.Drawable
toggleMicrophoneOffImageIcon for the button when the microphone is turned off.Drawable
hangUpButtonImageIcon for the hang up button.Drawable
switchCameraFrontImageIcon for the button to switch to the front camera.Drawable
switchCameraBackImageIcon for the button to switch to the back camera.Drawable
showMemberListButtonImageIcon for the button to show the member list.Drawable
chatButtonImageIcon for the chat button.Drawable
minimizingButtonImageIcon for the minimize button.Drawable
audioOutputSpeakerImageIcon for the button when the audio output is set to speaker.Drawable
audioOutputEarSpeakerImageIcon for the button when the audio output is set to ear speaker.Drawable
audioOutputBluetoothImageIcon for the button when the audio output is set to Bluetooth.Drawable
screenSharingToggleButtonOnImageIcon for the screen sharing toggle button when it is turned on.Drawable
screenSharingToggleButtonOffImageIcon for the screen sharing toggle button when it is turned off.Drawable
beautyButtonImageIcon for the face beautification button.Drawable

ZegoCallInvitationInCallingConfig

Configurations related to inviting users to an ongoing call

PropertyDescriptiontype
canInvitingInCallingWhether to allow inviting users to an ongoing call. The default value is false.boolean
onlyInitiatorCanInviteOnly the person who initiated the call can invite others. The default value is false.boolean

Previous

Event

Next

Migrating to ZEGOCLOUD Maven