/* * Copyright (c) Double Symmetry GmbH * Commercial use requires a license. See https://rntp.dev/pricing */ package com.doublesymmetry.trackplayer.models import kotlinx.serialization.Serializable @Serializable enum class WakeMode { /** * A wake mode that will not cause the player to hold any locks. * This is suitable for applications that do not play media with the screen off. */ NONE, /** * A wake mode that will cause the player to hold a [android.os.PowerManager.WakeLock] during playback. * This is suitable for applications that play media with the screen off and do not load media over wifi. */ LOCAL, /** * A wake mode that will cause the player to hold a [android.os.PowerManager.WakeLock] and a [android.net.wifi.WifiManager]. WifiLock during playback. * This is suitable for applications that play media with the screen off and may load media over wifi. */ NETWORK, }