Rate this page:

Flutter SDK

You can start with downloading our Flutter demos or dive into installation steps right now. The first step is to add flutter_voximplant as a dependency in your pubspec.yaml file. Further steps differ for iOS and Android.

Add Flutter SDK to the iOS project

Add the following entry to your Info.plist file, located in /ios/Runner/Info.plist:

<string>Microphone is required to make audio calls</string>
<key>NSCameraUsageDescription</key>
<string>Camera is required to make video calls</string>

This entry allows your app to access the microphone and cameras.

Add Flutter SDK to the Android project

It is required to add Java 8 support. Open android/app/build.gradle file and add the following lines to ‘android’ section:

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

Initialization

Client is the main class of the SDK that provides access to Voximplant’s functions, the Voximplant().getClient() method is used to get its instance:

getClient

getClient

Connect and Log In

The VIClient.getClientState() method is used to get the current state of connection to the Voximplant cloud and perform the actions according to it.

Connect and Log In

Connect and Log In