Package-level declarations

Types

Link copied to clipboard
data class CheckLimitsAndMakeRequestOptions(val apiUserName: String, val apiToken: String, val link: String, val userName: String, val parameters: CheckLimitsAndMakeRequestParameters, val validate: Boolean = true)

Options for checking limits and making requests.

Link copied to clipboard

Parameters for checking limits and making requests.

Link copied to clipboard
@Serializable
data class CreateJoinRoomError(val error: String, val success: Boolean? = null)

Represents the error response from creating or joining a room.

Link copied to clipboard
@Serializable
data class CreateJoinRoomResponse(val message: String, val roomName: String, val secureCode: String? = null, val publicURL: String, val link: String, val secret: String, val success: Boolean)

Represents the successful response from creating or joining a room.

Link copied to clipboard
data class CreateJoinRoomResult(val data: Any? = null, val success: Boolean)

Aggregates the result from attempting to create or join a room. Mirrors the Flutter SDK where the payload may be either a success response, an error response, or null when the request fails early.

Link copied to clipboard
typealias CreateJoinRoomType = suspend (payload: Map<String, Any?>, apiUserName: String, apiKey: String) -> CreateJoinRoomResult

Signature for functions that create or join a MediaSFU room.

Link copied to clipboard
data class CreateMediaSFUOptions(val payload: CreateMediaSFURoomOptions, val apiUserName: String, val apiKey: String, val localLink: String = "")

Options for creating a room on MediaSFU.

Link copied to clipboard
@Serializable
data class CreateMediaSFURoomOptions(val action: String, val duration: Int, val capacity: Int, val userName: String, val scheduledDate: Long? = null, val secureCode: String? = null, val eventType: String? = null, val roomName: String? = null, val adminPasscode: String? = null, val islevel: String? = null, val recordOnly: Boolean? = false, val safeRoom: Boolean? = false, val autoStartSafeRoom: Boolean? = false, val safeRoomAction: String? = "kick", val dataBuffer: Boolean? = false, val bufferType: String? = "all")

Options for creating a room on MediaSFU.

Link copied to clipboard

Represents the options for creating a ResponseJoinRoom.

Link copied to clipboard
data class FormatNumberOptions(val number: Int)

Options for the formatNumber function.

Link copied to clipboard
typealias FormatNumberType = suspend (FormatNumberOptions) -> String?

Type definition for the formatNumber function.

Link copied to clipboard
data class GenerateRandomMessagesOptions(val participants: List<Participant>, val member: String, val coHost: String? = null, val host: String, val forChatBroadcast: Boolean = false)

Options for generating random messages.

Link copied to clipboard

Type definition for the random message generator function.

Link copied to clipboard
data class GenerateRandomParticipantsOptions(val member: String, val coHost: String? = null, val host: String, val forChatBroadcast: Boolean = false)

Options for generating a random list of participants.

Link copied to clipboard

Type definition for the participant generator function.

Link copied to clipboard
data class GenerateRandomPollsOptions(val numberOfPolls: Int)

Options for generating random polls.

Link copied to clipboard

Type definition for the poll generator function.

Link copied to clipboard
data class GenerateRandomRequestListOptions(val participants: List<Participant>, val hostName: String, val coHostName: String? = null, val numberOfRequests: Int)

Options for generating a random request list.

Link copied to clipboard

Type definition for the request list generator function.

Link copied to clipboard

Type definition for the waiting room list generator function.

Link copied to clipboard

Type definition for the getMediaDevicesList function.

Link copied to clipboard
data class GetModalPositionOptions(val position: String, val modalWidth: Double, val modalHeight: Double, val screenWidth: Double, val screenHeight: Double)

Options for configuring the modal position.

Link copied to clipboard

Type definition for get modal position function.

Link copied to clipboard
data class GetOverlayPositionOptions(val position: String)

Options for configuring the overlay position.

Link copied to clipboard

Type definition for get overlay position function.

Link copied to clipboard
data class GetParticipantMediaOptions(val id: String = "", val name: String = "", val kind: String = "video", val parameters: GetParticipantMediaParameters)

Options for the getParticipantMedia function.

Link copied to clipboard

Parameters interface for getParticipantMedia.

Link copied to clipboard

Type definition for the getParticipantMedia function.

Link copied to clipboard

Initial values for the MediaSFU SDK state.

Link copied to clipboard
data class JoinMediaSFUOptions(val payload: JoinMediaSFURoomOptions, val apiUserName: String, val apiKey: String, val localLink: String = "")

Options for joining a room on MediaSFU.

Link copied to clipboard
@Serializable
data class JoinMediaSFURoomOptions(val action: String, val meetingID: String, val userName: String, val adminPasscode: String? = null, val islevel: String = "0")

Options for joining a room on MediaSFU.

Link copied to clipboard
actual class PlatformAudioPlayer
expect class PlatformAudioPlayer

Platform-agnostic interface for audio playback. Platform-specific implementations should be provided via expect/actual.

Link copied to clipboard
data class SleepOptions(val ms: Long)

Options for the sleep function, containing the sleep duration in milliseconds.

Link copied to clipboard
typealias SleepType = suspend (SleepOptions) -> Unit

Type definition for sleep function.

Link copied to clipboard

A sound player that plays audio from a given URL.

Link copied to clipboard
data class SoundPlayerOptions(val soundUrl: String)

Options for the SoundPlayer, encapsulating the sound URL.

Link copied to clipboard
typealias SoundPlayerType = suspend (SoundPlayerOptions) -> Unit

Type definition for sound player function.

Link copied to clipboard
data class ValidateAlphanumericOptions(val str: String)

Options for the alphanumeric validation, containing the string to validate.

Link copied to clipboard

Type definition for alphanumeric validation function.

Functions

Link copied to clipboard

Checks for rate limits and establishes a socket connection if permissible.

Link copied to clipboard
suspend fun createJoinRoom(payload: Map<String, Any?>, apiUserName: String, apiKey: String): CreateJoinRoomResult

Resolves the loosely typed payload into the correct REST helper call. This mirrors the behaviour of the Flutter SDK by accepting dynamic maps and normalising the values before delegating to createRoomOnMediaSfu or joinRoomOnMediaSfu.

Link copied to clipboard

Creates a ResponseJoinRoom object from a ResponseJoinLocalRoom object.

Link copied to clipboard

Sends a request to create a new room on MediaSFU.

Link copied to clipboard
suspend fun formatNumber(options: FormatNumberOptions): String?

Formats a given number into a human-readable string representation with suffixes (K, M, B).

Link copied to clipboard

Generates random direct and group messages for the provided options.

Link copied to clipboard

Generates a list of random participants for a meeting based on the provided options.

Link copied to clipboard

Generates a list of random polls for testing and demo scenarios.

Link copied to clipboard

Generates random request entries for the provided participant list.

Link copied to clipboard

Generates a deterministic waiting room list for demo scenarios.

Link copied to clipboard

Retrieves a filtered list of media devices based on the specified kind.

Link copied to clipboard

Returns the position of a modal based on the specified options.

Link copied to clipboard

Returns the overlay position based on the specified options.

Link copied to clipboard

Retrieves the media stream of a participant by ID or name.

Link copied to clipboard

Sends a request to join an existing room on MediaSFU.

Link copied to clipboard
suspend fun sleep(options: SleepOptions)

Suspends the execution of the current coroutine for the specified options.ms milliseconds.

Link copied to clipboard

Validates if the provided string in options contains only alphanumeric characters.