device

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevices

func GetDevices(s *session.Session) (*[]Device, error)

Retrieves currently available playback devices, or an empty slice if none are available.

Types

type Device

type Device struct {
	ID            string `json:"id"`
	IsActive      bool   `json:"is_active"`
	Name          string `json:"name"`
	Type          string `json:"type"`
	VolumePercent int    `json:"volume_percent"`
}

Device represents a spotify playback device. There is no guarantee that the device is still valid or active on the user's device since it will be cached.

func (*Device) String

func (d *Device) String() string

func (*Device) StringDetailed

func (d *Device) StringDetailed() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL