DropletMediaPlayerDescriptor

Static description of the external music player a droplet integrates.

struct DropletMediaPlayerDescriptor

Initializers

init(displayName:bundleIdentifiers:capabilities:accentColor:favoriteStyle:symbolName:)

init(displayName: String, bundleIdentifiers: [String], capabilities: DropletMediaCapabilities, accentColor: DropletMediaAccentColor? = nil, favoriteStyle: DropletMediaFavoriteStyle = .heart, symbolName: String? = nil)

Creates a media player descriptor.

Properties

accentColor

let accentColor: DropletMediaAccentColor?

Optional brand accent color used for active media controls.

bundleIdentifiers

let bundleIdentifiers: [String]

macOS bundle identifiers of the player app(s) this droplet owns (matched case-insensitively).

Droppy caps registration at 16 normalized bundle identifiers per droplet and unconditionally ignores bundle identifiers reserved for Droppy's built-in providers (Apple Music, Spotify, Kaset, Apple TV, and Droppy itself).

capabilities

let capabilities: DropletMediaCapabilities

Feature set this droplet supports for the claimed player.

displayName

let displayName: String

User-facing player name (for example, "Sonora").

favoriteStyle

let favoriteStyle: DropletMediaFavoriteStyle

Symbol style used for the favorite control. Defaults to .heart.

symbolName

let symbolName: String?

Optional SF Symbol name representing this player.