Skip to main content
Version: 6.1

Release notes

This page provides the release notes of PlanetKit 6.1 for Android.

PlanetKit 6.1

Release date: 2025-08-08

Support user types

  • We have added a feature that allows distinguishing user types defined by the application. This can be used when the application needs to alter behavior or UI configuration for each user type. For example, it can be used to differentiate between regular users and bot users.
  • You can define and use any value within the range of 1 to 9999.
  • Values starting from 10000 are used to differentiate agents provided by LINE Planet. For more information, refer to Agent call.
  • For more information on user types, refer to Setting the user type.

API

Added
  • PlanetKitConferenceParam.Builder class Group call
    • fun customUserType(@IntRange(from = 1, to = 9999) type: Int)
  • PlanetKitUserType enum class Group call
    • val rawValue: Int
    • UNDEFINED(0)
    • AUDIO_CALLER(10000)
    • AUDIO_ECHO_CALLEE(10001)
    • VIDEO_ECHO_CALLEE(10002)
    • MENTAL_HEALTH_COUNSELOR(10003)
    • RESERVED_1(10004)
    • RESERVED_2(10005)
    • RESERVED_3(10006)
    • RESERVED_4(10007)
    • RESERVED_5(10008)
    • PARTICIPANT_INTERPRETER(20000)
    • PARTICIPANT_TRANSCRIBER(20001)
    • PARTICIPANT_MENTAL_HEALTH_COUNSELOR(20002)
    • PARTICIPANT_RESERVED_1(20003)
    • PARTICIPANT_RESERVED_2(20004)
    • PARTICIPANT_RESERVED_3(20005)
    • PARTICIPANT_RESERVED_4(20006)
    • PARTICIPANT_RESERVED_5(20007)
  • PlanetKitUserTypeContainer class Group call
    • val planetkitUserType: PlanetKitUserType?
    • @IntRange(from = 1, to = 9999) val customUserType: Int?
    • fun isEqualTo(other: Int): Boolean
    • fun isEqualTo(other: PlanetKitUserType): Boolean
    • fun isPlanetKitUserType(): Boolean
  • PlanetKitConferencePeer class Group call
    • val userType: PlanetKitUserTypeContainer

Example code

  • Step 1: Define the application user type and set it when joining a group call.

    val customUserTypeRegularUser = 1
    val customUserTypeBot = 2

    fun joinConference() {
    val param = PlanetKitConferenceParam.Builder()
    .customUserType(customUserTypeRegularUser)
    /* Set other parameters as needed */
    .build()

    val result = Planetkit.joinConference(param, listener)
    ...
    }
  • Step 2: Implement actions to be processed according to each user type.

    interface ConferenceListener {
    fun onPeerListUpdated(param: PlanetKitConferencePeerListUpdatedParam) {
    for (peer in param.addedPeers) {
    if (peer.userType.isEqualTo(customUserTypeRegularUser)) {
    /* customUserTypeRegularUser */
    } else if (peer.userType.isEqualTo(customUserTypeBot)) {
    /* customUserTypeBot */
    } else if (peer.userType.isEqualTo(PlanetKitUserType.UNDEFINED)) {
    /* UserType is not specified */
    } else {
    /* A condition of no interest */
    }
    }
    }
    }