Help Center/ Meeting/ Client SDK Reference/ Android SDK/ API Reference/ UI Customization/ Customizing the Buttons for Answering a Video Meeting Call
Updated on 2023-03-23 GMT+08:00

Customizing the Buttons for Answering a Video Meeting Call

API Description

This API is used to customize the buttons for answering a video meeting call. By default, a video meeting call can be answered in video or voice mode. You can use this API to display only one answering mode.

Figure 1 Customizing the buttons for answering a video meeting call
Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
public class MyUiStrategyWhenConfIncoming implements IUiStrategyWhenConfIncoming {
    @Override
    public AnswerBtnShowType getVideoConfIncomingAnswerBtnShowType() {
        // return AnswerBtnShowType.AnswerBtnShowTypeOnlyVideo: displays only the video answering button.
        // return AnswerBtnShowType.AnswerBtnShowTypeOnlyAudio: displays only the voice answering button.
        // return AnswerBtnShowType.AnswerBtnShowTypeAll: displays both answering buttons.
        return AnswerBtnShowType.AnswerBtnShowTypeAll;
    }

sdkConfig.setUiStrategyWhenConfIncoming(new MyUiStrategyWhenConfIncoming());