PlanetKitDisconnectReason
@objc
@frozen
public enum PlanetKitDisconnectReason : Int
extension PlanetKitDisconnectReason: CustomStringConvertible
Describes the disconnect reasons.
Remark
See more details at https://docs.lineplanet.me/help/troubleshooting/troubleshooting-disconnect-reason/.-
[Both][Caller, Callee, Participant] Disconnected the call without exceptions.
Declaration
Swift
case normal = 1001
-
[Both][Callee, CloudServer]
- 1-to-1 call: Responder rejects a call.
- Conference: Joining previously joined conference that the user did not properly leave (e.g. due to a crash) is declined until the user is disconnected by the server.
Declaration
Swift
case decline = 1002
-
[Both][Caller, Callee, Participant] Received a cellular call during the PlanetKit call.
Declaration
Swift
case cellCall = 1003
-
[Both][Caller, Callee, Participant, CloudServer] Disconnected by PlanetKit’s internal error.
Declaration
Swift
case internalError = 1109
-
[Both][Caller, Callee, AppServer] Application defined error. userCode is accompanied.
- For events, userCode is in PlanetKitDisconnectedParam.
- For API, userErrorReleasePhrase is the parameter of ‘PlanetKitCall.EndCall()’.
1-to-1 call: userCode is defined by the call peer.
Group call: userCode is defined by AppServer. For example) https://docs.lineplanet.me/server-api/server-api-kickout
Declaration
Swift
case userError = 1110
-
[Both][Caller, Callee, Participant] Disconnected by an OS-specific error.
Declaration
Swift
case internalKitError = 1111
-
[Both][Caller, Callee, Participant] Audio source (e.g. mic) has not sent any audio data for a while.
Declaration
Swift
case micNoSource = 1112
-
[1:1][Caller] Initiator disconnected the call before the responder answers.
Declaration
Swift
case cancel = 1201
-
[1:1][Callee] Responder is calling.
Declaration
Swift
case busy = 1202
-
[1:1][Caller] Responder doesn’t answer for 60 seconds.
Declaration
Swift
case noAnswer = 1203
-
[Both][CloudServer] The initiator or the participant already has an incoming call but not received push yet.
Declaration
Swift
case alreadyGotACall = 1204
-
[Both][CloudServer] The same ID pair (user-id and service-id) is calling in another device.
Declaration
Swift
case multiDeviceInUse = 1205
-
[1:1][CloudServer] Responder using the same ID pair (user-id and service-id) answered the call in another device.
Declaration
Swift
case multiDeviceAnswer = 1206
-
[1:1][CloudServer] Responder using the same ID pair(user-id and service-id) declined the call in another device.
Declaration
Swift
case multiDeviceDecline = 1207
-
[Both][CloudServer] Maximum call time has been reached.
Declaration
Swift
case maxCallTimeExceeded = 1208
-
[Both][Caller, Callee, Participant, CloudServer] Network is unavailable to keep a call.
Declaration
Swift
case networkUnstable = 1301
-
[1:1][CloudServer] LINE Planet GW failed to call Notify or notify_cb returned a failure. Please check AppServer or Notify url.
Declaration
Swift
case pushError = 1302
-
[Both][CloudServer] Authentication failure
Declaration
Swift
case authError = 1303
-
[Both][CloudServer] The call was already released. Example: Initiator already canceled.
Declaration
Swift
case releasedCall = 1304
-
[Both][CloudServer] Server disconnected a call because of internal error.
Declaration
Swift
case serverInternalError = 1305
-
[Both][Caller, Callee, Participant] Disconnected due to the network being unavailable for a certain period of time.
Declaration
Swift
case unavailableNetwork = 1308
-
[Both][Caller, Callee, Participant] Application process is terminated.
Declaration
Swift
case appDestroy = 1309
-
[Both][Caller, Callee, Participant] Application is in sleep mode.
Declaration
Swift
case systemSleep = 1310
-
[Both][Caller, Callee, Participant] Application is in logoff mode.
Declaration
Swift
case systemLogOff = 1311
-
[Both][Caller, Callee, Participant] The call is not connected because the MTU is exceeded.
Declaration
Swift
case mtuExceeded = 1312
-
[Both][CloudServer] Planet Cloud Server failed to deliver app server data to AppServer
Declaration
Swift
case appServerDataError = 1313
-
[Both][Caller, Callee, Participant] Desktop screen is locked
Declaration
Swift
case desktopScreenLocked = 1314
-
[Group][CloudServer] The number of participants in this room is full.
Declaration
Swift
case roomIsFull = 1401
-
[Group][CloudServer] Server kicks out a user when the user stays in a conference room alone for a long time.
Declaration
Swift
case aloneKickOut = 1402
-
[Group][CloudServer] The room is destroyed because all remaining participants left before the other participant’s
PlanetKitManager.joinConference(param:settings:)
is complete.Declaration
Swift
case roomNotFound = 1404
-
[Group][Participant] Disconnected by trying to join from another instance.
Declaration
Swift
case anotherInstanceTryToJoin = 1405
-
[Both][CloudServer] Invalid Access token
Declaration
Swift
case serviceAccessTokenError = 1501
-
[Both][CloudServer] Unacceptable character is used in service-id or user-id. Please refer to https://docs.lineplanet.me/overview/glossary#service-id.
Declaration
Swift
case serviceInvalidID = 1502
-
[Both][CloudServer] Under maintenance
Declaration
Swift
case serviceMaintenance = 1503
-
[Both][CloudServer] LINE Planet GW is busy for now.
Declaration
Swift
case serviceBusy = 1504
-
[Both][CloudServer] LINE Planet GW internal error. Join failure in old version(PlanetKit under 3.6) because the room has the SUBGROUP room attribute (Created by PlanetKit 3.6 or above)
Declaration
Swift
case serviceInternalError = 1505
-
[Both][Caller, Participant] Could not make an HTTP request. Please check the user’s network environment.
- Firewall https://docs.lineplanet.me/help/troubleshooting/troubleshooting-firewall
- Client vaccine program
Declaration
Swift
case serviceHttpError = 1506
-
See
serviceHttpError
Declaration
Swift
case serviceHttpConnectionTimeOut = 1507
-
[Both][Caller, Participant] SSL peer certificate or SSH remote key was not OK.
Declaration
Swift
case serviceHttpInvalidPeerCert = 1508
-
See
serviceHttpError
Declaration
Swift
case serviceHttpConnectFail = 1509
-
[Both][Caller, Participant] Wrong URL format or could not resolve host or proxy name.
Declaration
Swift
case serviceHttpInvalidUrl = 1510
-
[Both][CloudServer] The current PlanetKit version is deprecated. Need to upgrade.
Declaration
Swift
case serviceIncompatiblePlanetKitVer = 1511
-
[Both][CloudServer] Too many call connection attempts in a short period of time.
Declaration
Swift
case serviceTooManyRequests = 1512
-
Declaration
Swift
case unknown = -1
-
Declaration
Swift
public var description: String { get }