Documentation ¶
Index ¶
- Constants
- Variables
- func CanPlayEvent(event string) bool
- func GetSoundTheme() string
- func GetSystemSoundFile(event string) string
- func GetThemeSoundFile(theme, event string) string
- func PlaySystemSound(event, device string) error
- func PlayThemeSound(theme, event, device string) error
- func SetShutdownSoundConfig(v *ShutdownSoundConfig) error
- type ShutdownSoundConfig
Constants ¶
View Source
const ( EventPowerPlug = "power-plug" EventPowerUnplug = "power-unplug" EventBatteryLow = "power-unplug-battery-low" EventVolumeChanged = "audio-volume-change" EventIconToDesktop = "x-deepin-app-sent-to-desktop" EventLogin = "desktop-login" EventLogout = "desktop-logout" EventShutdown = "system-shutdown" EventWakeup = "suspend-resume" EventPowerUnplugBatteryLow = "power-unplug-battery-low" EventAudioVolumeChanged = "audio-volume-change" EventXDeepinAppSentToDesktop = "x-deepin-app-sent-to-desktop" EventDesktopLogin = "desktop-login" EventDesktopLogout = "desktop-logout" EventSystemShutdown = "system-shutdown" EventSuspendResume = "suspend-resume" EventDeviceAdded = "device-added" EventDeviceRemoved = "device-removed" )
Variables ¶
View Source
var UseCache = true
Functions ¶
func CanPlayEvent ¶
func GetSoundTheme ¶
func GetSoundTheme() string
func GetSystemSoundFile ¶
func GetThemeSoundFile ¶
func PlaySystemSound ¶
func PlayThemeSound ¶
func SetShutdownSoundConfig ¶
func SetShutdownSoundConfig(v *ShutdownSoundConfig) error
Types ¶
type ShutdownSoundConfig ¶
func GetShutdownSoundConfig ¶
func GetShutdownSoundConfig() (*ShutdownSoundConfig, error)
Click to show internal directories.
Click to hide internal directories.