API changelog
This page provides the list of API changes in PlanetKit 7.0 for iOS/macOS.
PlanetKit 7.0
Changed
-
PlanetKitAudioManagerclass 1-to-1 callGroup callPrevious PlanetKit 7.0 func resetCustomMicToDefaultMic()func clearCustomMic()func resetCustomSpeakerToDefaultSpeaker()func clearCustomSpeaker()var defaultMicSampleRate: Float64 { get set }var defaultMicSampleRate: PlanetKitAudioSampleRate { get set }var defaultSpeakerSampleRate: Float64 { get set }var defaultSpeakerSampleRate: PlanetKitAudioSampleRate { get set }func startMicPreview(_ preview: PlanetKitAudioMicPreviewDelegate, volumeInternal: TimeInterval) -> Boolfunc startMicPreview(_ preview: PlanetKitAudioMicPreviewDelegate, volumeInterval: TimeInterval) -> Bool -
PlanetKitCallclass 1-to-1 callPrevious PlanetKit 7.0 func sendShortData(type: String, data: Data, completion: @escaping (Bool)->Void)func sendShortData(type: String, data: Data, completion: @escaping (PlanetKitSendShortDataFailReason)->Void) -
PlanetKitCallDelegateprotocol 1-to-1 callPrevious PlanetKit 7.0 func peerDidStopScreenShare(_ call: PlanetKitCall, reason: Int32)func peerDidStopScreenShare(_ call: PlanetKitCall, reason: NSNumber?) -
PlanetKitCameraManagerclass 1-to-1 callGroup callPrevious PlanetKit 7.0 var previewModifier: PlanetKitVideoModifierDelegate?var modifier: PlanetKitVideoModifierDelegate? -
PlanetKitConferenceclass Group callPrevious PlanetKit 7.0 func sendShortData(peerId: PlanetKitUserId, type: String, data: Data, completion: @escaping (Bool)->Void)func sendShortData(peerId: PlanetKitUserId, type: String, data: Data, completion: @escaping (PlanetKitSendShortDataFailReason)->Void)func sendShortData(type: String, data: Data, completion: @escaping (Bool)->Void)func sendShortData(type: String, data: Data, completion: @escaping (PlanetKitSendShortDataFailReason)->Void) -
PlanetKitInitialSettingBuilderclass 1-to-1 callGroup callPrevious PlanetKit 7.0 func withEnableKitLogKey(level: PlanetKitLogLevel, enable: Bool, logSize: PlanetKitLogSizeLimit) -> PlanetKitInitialSettingBuilderfunc withEnableLog(logOption: PlanetKitLogOption) -> PlanetKitInitialSettingBuilderfunc withSetKitBasePathKey(path: String) throws -> PlanetKitInitialSettingBuilderfunc withSetPlanetKitSystemDirectory(path: String) throws -> PlanetKitInitialSettingBuilder -
PlanetKitPeerControlDelegateprotocol Group callPrevious PlanetKit 7.0 func didUpdateScreenShare(_ peerControl: PlanetKitPeerControl, subgroup: PlanetKitSubgroup, status: PlanetKitScreenShareStatus)func didUpdateScreenShare(_ peerControl: PlanetKitPeerControl, subgroup: PlanetKitSubgroup, status: PlanetKitScreenShareStatus, disabledReason: NSNumber?) -
PlanetKitStatistics.PeerScreenShareclass Group callPrevious PlanetKit 7.0 let subGroupName: String?let subgroupName: String? -
PlanetKitStatistics.PeerVideoclass Group callPrevious PlanetKit 7.0 let subGroupName: String?let subgroupName: String? -
PlanetKitStatistics.Videoclass 1-to-1 callGroup callPrevious PlanetKit 7.0 let witdh: UInt16let width: UInt16 -
PlanetKitVideoBufferclass 1-to-1 callGroup callPrevious PlanetKit 7.0 var timestamp: CMTimelet timestamp: CMTimevar rotation: PlanetKitVideoRotationlet rotation: PlanetKitVideoRotationvar position: PlanetKitCameraPositionlet position: PlanetKitCameraPositionvar sender: PlanetKitUserId?let sender: PlanetKitUserId?var source: PlanetKitVideoSourcelet source: PlanetKitVideoSource
Added
-
PlanetKitAudioSampleRateenum 1-to-1 callGroup callcase sampleRate16k- 16,000 Hzcase sampleRate32k- 32,000 Hzcase sampleRate48k- 48,000 Hzvar floatValue: Float64
-
(macOS only)
PlanetKitAutoGainControlModeenum 1-to-1 callGroup callcase hardwareEchoTolerance
-
PlanetKitCallclass 1-to-1 callweak var myScreenShareModifier: PlanetKitVideoModifierDelegate?
-
PlanetKitConferenceclass Group callweak var myScreenShareModifier: PlanetKitVideoModifierDelegate?
-
PlanetKitConferenceScreenShareUpdateParamclass Group calllet disabledReason: NSNumber?
-
PlanetKitLogOptionclass 1-to-1 callGroup calllet logDirectory: Stringlet logLevel: PlanetKitLogLevellet logFileName: String?static func withSizeLimitUnlimited(logDirectory: String, logFileName: String?, logLevel: PlanetKitLogLevel = .simple) -> PlanetKitLogOption?static func withSizeLimit(logDirectory: String, logLevel: PlanetKitLogLevel = .simple, logSizeLimit: PlanetKitLogSizeLimit = .large) -> PlanetKitLogOption?
-
PlanetKitSendShortDataFailReasonenum 1-to-1 callGroup callcase nonecase invalidParametercase tooLongDataTypecase tooLongDatacase tooFrequentcase timeoutcase internalError
-
PlanetKitVideoModifierDelegateprotocol 1-to-1 callGroup callfunc didEncounterError(_ error: PlanetKitVideoModifierError)
-
PlanetKitVideoModifierErrorenum 1-to-1 callGroup callcase videoFrameRejectedByUpscalingcase videoFrameRejectedByFormatChange
Removed
-
(iOS only)
PlanetKitAutoGainControlModeenum 1-to-1 callGroup callcase hardware
-
PlanetKitCallclass 1-to-1 calllet APIKey: String?weak var myVideoModifier: PlanetKitVideoModifierDelegate?
-
PlanetKitCallParamclass 1-to-1 callvar APIKey: String?init(myUserId: PlanetKitUserId, peerUserId: PlanetKitUserId, delegate: PlanetKitCallDelegate, APIKey: String)
-
PlanetKitConferenceclass Group calllet APIKey: String?weak var myVideoModifier: PlanetKitVideoModifierDelegate?weak var myVideoReceiver: PlanetKitVideoOutputDelegate?func requestPeerVideo(id: PlanetKitUserId, maxResolution: PlanetKitVideoResolution, delegate: PlanetKitVideoOutputDelegate, subgroupName: String?, completion: @escaping (Bool)->Void)func requestPeerVideo(id: PlanetKitUserId, maxResolution: PlanetKitVideoResolution, delegate: PlanetKitVideoOutputDelegate, subgroupName: String?, resolution: @escaping (Bool, PlanetKitVideoResolution, PlanetKitVideoResolution, String)->Void)func stopPeerVideo(id: PlanetKitUserId, subgroupName: String?, completion: @escaping (Bool)->Void)func requestPeerScreenShare(peerId: PlanetKitUserId, subgroupName: String?, completion: @escaping (Bool)->Void)func stopPeerScreenShare(peerId: PlanetKitUserId, subgroupName: String?, completion: @escaping (Bool)->Void)
-
PlanetKitConferenceParamclass Group callvar APIKey: String?init(myUserId: PlanetKitUserId, roomId: String, roomServiceId: String, displayName: String?, delegate: PlanetKitConferenceDelegate, APIKey: String)
-
PlanetKitInitialSettingBuilderclass 1-to-1 callGroup callfunc withSetKitLogFilePathKey(filePath: String) -> PlanetKitInitialSettingBuilder
-
PlanetKitLogLevelenum 1-to-1 callGroup callcase silent
-
PlanetKitLogSizeLimitenum 1-to-1 callGroup callcase unlimited
-
PlanetKitStartFailReasonenum 1-to-1 callGroup callcase invalidAPIKey
-
PlanetKitVideoStreamclass 1-to-1 callGroup callweak var modifier: PlanetKitVideoModifierDelegate?