Skip to content

Start a chat

Federico Marin edited this page Mar 20, 2020 · 9 revisions

To create a chat you need to have the BandyerSDKClient initialized running and the chat module ready see here.

CallCapabilities capabilities = new CallCapabilities()
			.withWhiteboard()
			.withFileSharing()
			.withChat()
			.withScreenSharing();

CallOptions options = new CallOptions()
			.withRecordingEnabled() // if the call started should be recorded
			.withBackCameraAsDefault() // if the call should start with back camera
			.withProximitySensorDisabled(); // if the proximity sensor should be disabled during calls

BandyerIntent bandyerChatIntent = new BandyerIntent.Builder()
        .startWithChat(MainActivity.this /* starting context */)
	.with("user_A") // we are creating a chat with user A
	.withAudioCallCapability(capabilities, options)  // optional
	.withAudioUpgradableCallCapability(capabilities, options)  // optionally upgradable to audio video call
	.withAudioVideoCallCapability(capabilities, options)  // optional
	.build();
                
startActivity(bandyerChatIntent);
Clone this wiki locally