Overview
PlanetKit for Flutter is a Flutter wrapper around PlanetKit for iOS and PlanetKit for Android. With PlanetKit for Flutter, you can develop multi-platform applications with call functionality from a single codebase.
Native platform requirements
- iOS
- iOS 12.0 or later
- Android
- targetSDKVersion 31 or higher
Native platform permissions
The following permissions are required for each native platform.
- iOS
NSMicrophoneUsageDescription
- Android
Manifest.permission.READ_PHONE_STATEManifest.permission.RECORD_AUDIOManifest.permission.BLUETOOTH_CONNECT
Key classes
Common
-
PlanetKitManager- This class is used to initialize PlanetKit, make or verify a 1-to-1 call, or join a group call.
1-to-1 call
-
PlanetKitCall- This class is used to manage a 1-to-1 call session (for example, to mute audio).
- An instance of this class can be created with
PlanetKitManager. - A
PlanetKitCallinstance can be found inPlanetKitMakeCallResultandPlanetKitVerifyCallResult.
-
PlanetKitCallEventHandler- This class is a 1-to-1 call event handler that you need to implement.
Group call
-
PlanetKitConference- This class is used to manage a group call session (for example, to mute audio).
- An instance of this class can be created with
PlanetKitManager. - A
PlanetKitConferenceinstance can be found inPlanetKitJoinConferenceResult.
-
PlanetKitConferenceEventHandler- This class is a group call event handler that you need to implement.