Jellyfin

class Jellyfin(options: JellyfinOptions)

Constructors

Jellyfin
Link copied to clipboard
fun Jellyfin(optionsBuilder: JellyfinOptions.Builder)

Types

Companion
Link copied to clipboard
object Companion

Functions

createApi
Link copied to clipboard
fun createApi(baseUrl: String? = null, accessToken: String? = null, userId: UUID? = null, clientInfo: ClientInfo? = options.clientInfo, deviceInfo: DeviceInfo? = options.deviceInfo, httpClientOptions: HttpClientOptions = HttpClientOptions()): ApiClient

Create a new API instance to use in API services. The clientInfo and deviceInfo parameters are required when not passed as option in JellyfinOptions. The baseUrl is only required when HTTP calls are made.

Properties

clientInfo
Link copied to clipboard
val clientInfo: ClientInfo?

Get the client information set when creating the Jellyfin instance or null if not set.

deviceInfo
Link copied to clipboard
val deviceInfo: DeviceInfo?

Get the device information set when creating the Jellyfin instance or null if not set.

discovery
Link copied to clipboard
val discovery: DiscoveryService

Get the discovery service to help with normalizing server addresses and find servers in the local network.

options
Link copied to clipboard
val options: JellyfinOptions