use of com.fanap.podchat.call.request_model.SwapViewsRequest in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method onCallPartnerViewSelected.
@Override
public void onCallPartnerViewSelected(CallPartnerView secondPartnerView) {
if (isInCall) {
CallPartnerView mainPartnerView = remotePartnersViews.get(0);
Long mainPartnerId = mainPartnerView.getPartnerId();
Long secondPartnerId = secondPartnerView.getPartnerId();
SwapViewsRequest request = new SwapViewsRequest.Builder().setFirstPartnerUserId(mainPartnerId).setSecondPartnerUserId(secondPartnerId).setFirstPartnerView(mainPartnerView).setSecondPartnerView(secondPartnerView).build();
chat.swapPartnerViews(request);
}
}
Aggregations