Skip to main content
Version: 1.0

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_STATE
    • Manifest.permission.RECORD_AUDIO
    • Manifest.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 PlanetKitCall instance can be found in PlanetKitMakeCallResult and PlanetKitVerifyCallResult.
  • 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 PlanetKitConference instance can be found in PlanetKitJoinConferenceResult.
  • PlanetKitConferenceEventHandler
    • This class is a group call event handler that you need to implement.