mediaplayer

package
v0.5.0-preview Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Find and play songs, audio podcasts, audio books, and more from within your app.

Full Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangeLanguageOptionCommandEventClass = _ChangeLanguageOptionCommandEventClass{objc.GetClass("MPChangeLanguageOptionCommandEvent")}

The class instance for the ChangeLanguageOptionCommandEvent class.

View Source
var ChangePlaybackPositionCommandClass = _ChangePlaybackPositionCommandClass{objc.GetClass("MPChangePlaybackPositionCommand")}

The class instance for the ChangePlaybackPositionCommand class.

View Source
var ChangePlaybackPositionCommandEventClass = _ChangePlaybackPositionCommandEventClass{objc.GetClass("MPChangePlaybackPositionCommandEvent")}

The class instance for the ChangePlaybackPositionCommandEvent class.

View Source
var ChangePlaybackRateCommandClass = _ChangePlaybackRateCommandClass{objc.GetClass("MPChangePlaybackRateCommand")}

The class instance for the ChangePlaybackRateCommand class.

View Source
var ChangePlaybackRateCommandEventClass = _ChangePlaybackRateCommandEventClass{objc.GetClass("MPChangePlaybackRateCommandEvent")}

The class instance for the ChangePlaybackRateCommandEvent class.

View Source
var ChangeRepeatModeCommandClass = _ChangeRepeatModeCommandClass{objc.GetClass("MPChangeRepeatModeCommand")}

The class instance for the ChangeRepeatModeCommand class.

View Source
var ChangeRepeatModeCommandEventClass = _ChangeRepeatModeCommandEventClass{objc.GetClass("MPChangeRepeatModeCommandEvent")}

The class instance for the ChangeRepeatModeCommandEvent class.

View Source
var ChangeShuffleModeCommandClass = _ChangeShuffleModeCommandClass{objc.GetClass("MPChangeShuffleModeCommand")}

The class instance for the ChangeShuffleModeCommand class.

View Source
var ChangeShuffleModeCommandEventClass = _ChangeShuffleModeCommandEventClass{objc.GetClass("MPChangeShuffleModeCommandEvent")}

The class instance for the ChangeShuffleModeCommandEvent class.

View Source
var ContentItemClass = _ContentItemClass{objc.GetClass("MPContentItem")}

The class instance for the ContentItem class.

View Source
var FeedbackCommandClass = _FeedbackCommandClass{objc.GetClass("MPFeedbackCommand")}

The class instance for the FeedbackCommand class.

View Source
var FeedbackCommandEventClass = _FeedbackCommandEventClass{objc.GetClass("MPFeedbackCommandEvent")}

The class instance for the FeedbackCommandEvent class.

View Source
var MediaItemArtworkClass = _MediaItemArtworkClass{objc.GetClass("MPMediaItemArtwork")}

The class instance for the MediaItemArtwork class.

View Source
var NowPlayingInfoCenterClass = _NowPlayingInfoCenterClass{objc.GetClass("MPNowPlayingInfoCenter")}

The class instance for the NowPlayingInfoCenter class.

View Source
var NowPlayingInfoLanguageOptionClass = _NowPlayingInfoLanguageOptionClass{objc.GetClass("MPNowPlayingInfoLanguageOption")}

The class instance for the NowPlayingInfoLanguageOption class.

View Source
var NowPlayingInfoLanguageOptionGroupClass = _NowPlayingInfoLanguageOptionGroupClass{objc.GetClass("MPNowPlayingInfoLanguageOptionGroup")}

The class instance for the NowPlayingInfoLanguageOptionGroup class.

View Source
var RatingCommandClass = _RatingCommandClass{objc.GetClass("MPRatingCommand")}

The class instance for the RatingCommand class.

View Source
var RatingCommandEventClass = _RatingCommandEventClass{objc.GetClass("MPRatingCommandEvent")}

The class instance for the RatingCommandEvent class.

View Source
var RemoteCommandCenterClass = _RemoteCommandCenterClass{objc.GetClass("MPRemoteCommandCenter")}

The class instance for the RemoteCommandCenter class.

View Source
var RemoteCommandClass = _RemoteCommandClass{objc.GetClass("MPRemoteCommand")}

The class instance for the RemoteCommand class.

View Source
var RemoteCommandEventClass = _RemoteCommandEventClass{objc.GetClass("MPRemoteCommandEvent")}

The class instance for the RemoteCommandEvent class.

View Source
var SeekCommandEventClass = _SeekCommandEventClass{objc.GetClass("MPSeekCommandEvent")}

The class instance for the SeekCommandEvent class.

View Source
var SkipIntervalCommandClass = _SkipIntervalCommandClass{objc.GetClass("MPSkipIntervalCommand")}

The class instance for the SkipIntervalCommand class.

View Source
var SkipIntervalCommandEventClass = _SkipIntervalCommandEventClass{objc.GetClass("MPSkipIntervalCommandEvent")}

The class instance for the SkipIntervalCommandEvent class.

Functions

This section is empty.

Types

type ChangeLanguageOptionCommandEvent

type ChangeLanguageOptionCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the language option. Full Topic

func ChangeLanguageOptionCommandEventFrom

func ChangeLanguageOptionCommandEventFrom(ptr unsafe.Pointer) ChangeLanguageOptionCommandEvent

func ChangeLanguageOptionCommandEvent_Alloc

func ChangeLanguageOptionCommandEvent_Alloc() ChangeLanguageOptionCommandEvent

func NewChangeLanguageOptionCommandEvent

func NewChangeLanguageOptionCommandEvent() ChangeLanguageOptionCommandEvent

func (ChangeLanguageOptionCommandEvent) Init

func (ChangeLanguageOptionCommandEvent) Setting

The extent of the language setting change. Full Topic

type ChangeLanguageOptionSetting

type ChangeLanguageOptionSetting int

The states that determine when language option changes take effect. Full Topic

const (
	ChangeLanguageOptionSettingNone               ChangeLanguageOptionSetting = 0
	ChangeLanguageOptionSettingNowPlayingItemOnly ChangeLanguageOptionSetting = 1
	ChangeLanguageOptionSettingPermanent          ChangeLanguageOptionSetting = 2
)

type ChangePlaybackPositionCommand

type ChangePlaybackPositionCommand struct {
	RemoteCommand
}

An object that responds to requests to change the current playback position of the playing item. Full Topic

func ChangePlaybackPositionCommandFrom

func ChangePlaybackPositionCommandFrom(ptr unsafe.Pointer) ChangePlaybackPositionCommand

func ChangePlaybackPositionCommand_Alloc

func ChangePlaybackPositionCommand_Alloc() ChangePlaybackPositionCommand

func NewChangePlaybackPositionCommand

func NewChangePlaybackPositionCommand() ChangePlaybackPositionCommand

func (ChangePlaybackPositionCommand) Init

type ChangePlaybackPositionCommandEvent

type ChangePlaybackPositionCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the playback position. Full Topic

func ChangePlaybackPositionCommandEventFrom

func ChangePlaybackPositionCommandEventFrom(ptr unsafe.Pointer) ChangePlaybackPositionCommandEvent

func ChangePlaybackPositionCommandEvent_Alloc

func ChangePlaybackPositionCommandEvent_Alloc() ChangePlaybackPositionCommandEvent

func NewChangePlaybackPositionCommandEvent

func NewChangePlaybackPositionCommandEvent() ChangePlaybackPositionCommandEvent

func (ChangePlaybackPositionCommandEvent) Init

func (ChangePlaybackPositionCommandEvent) PositionTime

The playback position used when setting the current time of the player. Full Topic

type ChangePlaybackRateCommand

type ChangePlaybackRateCommand struct {
	RemoteCommand
}

An object that responds to requests to change the playback rate of the playing item. Full Topic

func ChangePlaybackRateCommandFrom

func ChangePlaybackRateCommandFrom(ptr unsafe.Pointer) ChangePlaybackRateCommand

func ChangePlaybackRateCommand_Alloc

func ChangePlaybackRateCommand_Alloc() ChangePlaybackRateCommand

func NewChangePlaybackRateCommand

func NewChangePlaybackRateCommand() ChangePlaybackRateCommand

func (ChangePlaybackRateCommand) Init

func (ChangePlaybackRateCommand) SetSupportedPlaybackRates

func (c_ ChangePlaybackRateCommand) SetSupportedPlaybackRates(value []foundation.INumber)

The supported playback rates for a media item. Full Topic

func (ChangePlaybackRateCommand) SupportedPlaybackRates

func (c_ ChangePlaybackRateCommand) SupportedPlaybackRates() []foundation.Number

The supported playback rates for a media item. Full Topic

type ChangePlaybackRateCommandEvent

type ChangePlaybackRateCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the playback rate. Full Topic

func ChangePlaybackRateCommandEventFrom

func ChangePlaybackRateCommandEventFrom(ptr unsafe.Pointer) ChangePlaybackRateCommandEvent

func ChangePlaybackRateCommandEvent_Alloc

func ChangePlaybackRateCommandEvent_Alloc() ChangePlaybackRateCommandEvent

func NewChangePlaybackRateCommandEvent

func NewChangePlaybackRateCommandEvent() ChangePlaybackRateCommandEvent

func (ChangePlaybackRateCommandEvent) Init

func (ChangePlaybackRateCommandEvent) PlaybackRate

func (c_ ChangePlaybackRateCommandEvent) PlaybackRate() float64

The chosen playback rate for the command event. Full Topic

type ChangeRepeatModeCommand

type ChangeRepeatModeCommand struct {
	RemoteCommand
}

An object that responds to requests to change the current repeat mode used during playback. Full Topic

func ChangeRepeatModeCommandFrom

func ChangeRepeatModeCommandFrom(ptr unsafe.Pointer) ChangeRepeatModeCommand

func ChangeRepeatModeCommand_Alloc

func ChangeRepeatModeCommand_Alloc() ChangeRepeatModeCommand

func NewChangeRepeatModeCommand

func NewChangeRepeatModeCommand() ChangeRepeatModeCommand

func (ChangeRepeatModeCommand) CurrentRepeatType

func (c_ ChangeRepeatModeCommand) CurrentRepeatType() RepeatType

The current repeat option for a media item. Full Topic

func (ChangeRepeatModeCommand) Init

func (ChangeRepeatModeCommand) SetCurrentRepeatType

func (c_ ChangeRepeatModeCommand) SetCurrentRepeatType(value RepeatType)

The current repeat option for a media item. Full Topic

type ChangeRepeatModeCommandEvent

type ChangeRepeatModeCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the repeat mode. Full Topic

func ChangeRepeatModeCommandEventFrom

func ChangeRepeatModeCommandEventFrom(ptr unsafe.Pointer) ChangeRepeatModeCommandEvent

func ChangeRepeatModeCommandEvent_Alloc

func ChangeRepeatModeCommandEvent_Alloc() ChangeRepeatModeCommandEvent

func NewChangeRepeatModeCommandEvent

func NewChangeRepeatModeCommandEvent() ChangeRepeatModeCommandEvent

func (ChangeRepeatModeCommandEvent) Init

func (ChangeRepeatModeCommandEvent) PreservesRepeatMode

func (c_ ChangeRepeatModeCommandEvent) PreservesRepeatMode() bool

A Boolean value that indicates whether the chosen repeat mode is preserved between playback sessions. Full Topic

func (ChangeRepeatModeCommandEvent) RepeatType

func (c_ ChangeRepeatModeCommandEvent) RepeatType() RepeatType

The repeat type used when fulfilling the event request. Full Topic

type ChangeShuffleModeCommand

type ChangeShuffleModeCommand struct {
	RemoteCommand
}

An object that responds to requests to change the current shuffle mode used during playback. Full Topic

func ChangeShuffleModeCommandFrom

func ChangeShuffleModeCommandFrom(ptr unsafe.Pointer) ChangeShuffleModeCommand

func ChangeShuffleModeCommand_Alloc

func ChangeShuffleModeCommand_Alloc() ChangeShuffleModeCommand

func NewChangeShuffleModeCommand

func NewChangeShuffleModeCommand() ChangeShuffleModeCommand

func (ChangeShuffleModeCommand) CurrentShuffleType

func (c_ ChangeShuffleModeCommand) CurrentShuffleType() ShuffleType

The current shuffle mode for a media item. Full Topic

func (ChangeShuffleModeCommand) Init

func (ChangeShuffleModeCommand) SetCurrentShuffleType

func (c_ ChangeShuffleModeCommand) SetCurrentShuffleType(value ShuffleType)

The current shuffle mode for a media item. Full Topic

type ChangeShuffleModeCommandEvent

type ChangeShuffleModeCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the shuffle mode. Full Topic

func ChangeShuffleModeCommandEventFrom

func ChangeShuffleModeCommandEventFrom(ptr unsafe.Pointer) ChangeShuffleModeCommandEvent

func ChangeShuffleModeCommandEvent_Alloc

func ChangeShuffleModeCommandEvent_Alloc() ChangeShuffleModeCommandEvent

func NewChangeShuffleModeCommandEvent

func NewChangeShuffleModeCommandEvent() ChangeShuffleModeCommandEvent

func (ChangeShuffleModeCommandEvent) Init

func (ChangeShuffleModeCommandEvent) PreservesShuffleMode

func (c_ ChangeShuffleModeCommandEvent) PreservesShuffleMode() bool

A Boolean value that indicates whether the shuffle mode is preserved between playback sessions. Full Topic

func (ChangeShuffleModeCommandEvent) ShuffleType

func (c_ ChangeShuffleModeCommandEvent) ShuffleType() ShuffleType

The shuffle type used when fulfilling the event request. Full Topic

type ContentItem

type ContentItem struct {
	objc.Object
}

An object that contains the information for a displayed media item. Full Topic

func ContentItemFrom

func ContentItemFrom(ptr unsafe.Pointer) ContentItem

func ContentItem_Alloc

func ContentItem_Alloc() ContentItem

func NewContentItem

func NewContentItem() ContentItem

func NewContentItemWithIdentifier

func NewContentItemWithIdentifier(identifier string) ContentItem

Sets the identifier for a media item. Full Topic

func (ContentItem) Artwork

func (c_ ContentItem) Artwork() MediaItemArtwork

A single image that’s associated with the media item. Full Topic

func (ContentItem) Identifier

func (c_ ContentItem) Identifier() string

The unique identifier for the media item. Full Topic

func (ContentItem) Init

func (c_ ContentItem) Init() ContentItem

func (ContentItem) InitWithIdentifier

func (c_ ContentItem) InitWithIdentifier(identifier string) ContentItem

func (ContentItem) IsContainer

func (c_ ContentItem) IsContainer() bool

A Boolean value that indicates whether a media item is container of other items. Full Topic

func (ContentItem) IsExplicitContent

func (c_ ContentItem) IsExplicitContent() bool

A Boolean value that indicates whether the media item contains explicit content. Full Topic

func (ContentItem) IsPlayable

func (c_ ContentItem) IsPlayable() bool

A Boolean value that indicates whether a media item is able to be played. Full Topic

func (ContentItem) IsStreamingContent

func (c_ ContentItem) IsStreamingContent() bool

A Boolean value that indicates whether the content item is streaming content. Full Topic

func (ContentItem) PlaybackProgress

func (c_ ContentItem) PlaybackProgress() float64

The amount of content played for the media item. Full Topic

func (ContentItem) SetArtwork

func (c_ ContentItem) SetArtwork(value IMediaItemArtwork)

A single image that’s associated with the media item. Full Topic

func (ContentItem) SetContainer

func (c_ ContentItem) SetContainer(value bool)

A Boolean value that indicates whether a media item is container of other items. Full Topic

func (ContentItem) SetExplicitContent

func (c_ ContentItem) SetExplicitContent(value bool)

A Boolean value that indicates whether the media item contains explicit content. Full Topic

func (ContentItem) SetPlayable

func (c_ ContentItem) SetPlayable(value bool)

A Boolean value that indicates whether a media item is able to be played. Full Topic

func (ContentItem) SetPlaybackProgress

func (c_ ContentItem) SetPlaybackProgress(value float64)

The amount of content played for the media item. Full Topic

func (ContentItem) SetStreamingContent

func (c_ ContentItem) SetStreamingContent(value bool)

A Boolean value that indicates whether the content item is streaming content. Full Topic

func (ContentItem) SetSubtitle

func (c_ ContentItem) SetSubtitle(value string)

A secondary designator for the media item. Full Topic

func (ContentItem) SetTitle

func (c_ ContentItem) SetTitle(value string)

The public name of the media item. Full Topic

func (ContentItem) Subtitle

func (c_ ContentItem) Subtitle() string

A secondary designator for the media item. Full Topic

func (ContentItem) Title

func (c_ ContentItem) Title() string

The public name of the media item. Full Topic

type ErrorCode

type ErrorCode int

An enumeration that represents error codes for framework operations. Full Topic

const (
	ErrorCancelled                     ErrorCode = 6
	ErrorCloudServiceCapabilityMissing ErrorCode = 2
	ErrorNetworkConnectionFailed       ErrorCode = 3
	ErrorNotFound                      ErrorCode = 4
	ErrorNotSupported                  ErrorCode = 5
	ErrorPermissionDenied              ErrorCode = 1
	ErrorRequestTimedOut               ErrorCode = 7
	ErrorUnknown                       ErrorCode = 0
)

type FeedbackCommand

type FeedbackCommand struct {
	RemoteCommand
}

An object that reflects the feedback state for the playing item. Full Topic

func FeedbackCommandFrom

func FeedbackCommandFrom(ptr unsafe.Pointer) FeedbackCommand

func FeedbackCommand_Alloc

func FeedbackCommand_Alloc() FeedbackCommand

func NewFeedbackCommand

func NewFeedbackCommand() FeedbackCommand

func (FeedbackCommand) Init

func (f_ FeedbackCommand) Init() FeedbackCommand

func (FeedbackCommand) IsActive

func (f_ FeedbackCommand) IsActive() bool

A Boolean value that indicates whether the feedback’s action is on or off. Full Topic

func (FeedbackCommand) LocalizedShortTitle

func (f_ FeedbackCommand) LocalizedShortTitle() string

A shortened version of the string used to describe the context of a command. Full Topic

func (FeedbackCommand) LocalizedTitle

func (f_ FeedbackCommand) LocalizedTitle() string

A localized string used to describe the context of a command. Full Topic

func (FeedbackCommand) SetActive

func (f_ FeedbackCommand) SetActive(value bool)

A Boolean value that indicates whether the feedback’s action is on or off. Full Topic

func (FeedbackCommand) SetLocalizedShortTitle

func (f_ FeedbackCommand) SetLocalizedShortTitle(value string)

A shortened version of the string used to describe the context of a command. Full Topic

func (FeedbackCommand) SetLocalizedTitle

func (f_ FeedbackCommand) SetLocalizedTitle(value string)

A localized string used to describe the context of a command. Full Topic

type FeedbackCommandEvent

type FeedbackCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the feedback setting. Full Topic

func FeedbackCommandEventFrom

func FeedbackCommandEventFrom(ptr unsafe.Pointer) FeedbackCommandEvent

func FeedbackCommandEvent_Alloc

func FeedbackCommandEvent_Alloc() FeedbackCommandEvent

func NewFeedbackCommandEvent

func NewFeedbackCommandEvent() FeedbackCommandEvent

func (FeedbackCommandEvent) Init

func (FeedbackCommandEvent) IsNegative

func (f_ FeedbackCommandEvent) IsNegative() bool

A Boolean value that indicates whether an app should perform a negative command appropriate to the target. Full Topic

type IChangeLanguageOptionCommandEvent

type IChangeLanguageOptionCommandEvent interface {
	IRemoteCommandEvent
	Setting() ChangeLanguageOptionSetting
}

An interface definition for the ChangeLanguageOptionCommandEvent class.

type IChangePlaybackPositionCommand

type IChangePlaybackPositionCommand interface {
	IRemoteCommand
}

An interface definition for the ChangePlaybackPositionCommand class.

type IChangePlaybackPositionCommandEvent

type IChangePlaybackPositionCommandEvent interface {
	IRemoteCommandEvent
	PositionTime() foundation.TimeInterval
}

An interface definition for the ChangePlaybackPositionCommandEvent class.

type IChangePlaybackRateCommand

type IChangePlaybackRateCommand interface {
	IRemoteCommand
	SupportedPlaybackRates() []foundation.Number
	SetSupportedPlaybackRates(value []foundation.INumber)
}

An interface definition for the ChangePlaybackRateCommand class.

type IChangePlaybackRateCommandEvent

type IChangePlaybackRateCommandEvent interface {
	IRemoteCommandEvent
	PlaybackRate() float64
}

An interface definition for the ChangePlaybackRateCommandEvent class.

type IChangeRepeatModeCommand

type IChangeRepeatModeCommand interface {
	IRemoteCommand
	CurrentRepeatType() RepeatType
	SetCurrentRepeatType(value RepeatType)
}

An interface definition for the ChangeRepeatModeCommand class.

type IChangeRepeatModeCommandEvent

type IChangeRepeatModeCommandEvent interface {
	IRemoteCommandEvent
	RepeatType() RepeatType
	PreservesRepeatMode() bool
}

An interface definition for the ChangeRepeatModeCommandEvent class.

type IChangeShuffleModeCommand

type IChangeShuffleModeCommand interface {
	IRemoteCommand
	CurrentShuffleType() ShuffleType
	SetCurrentShuffleType(value ShuffleType)
}

An interface definition for the ChangeShuffleModeCommand class.

type IChangeShuffleModeCommandEvent

type IChangeShuffleModeCommandEvent interface {
	IRemoteCommandEvent
	PreservesShuffleMode() bool
	ShuffleType() ShuffleType
}

An interface definition for the ChangeShuffleModeCommandEvent class.

type IContentItem

type IContentItem interface {
	objc.IObject
	Subtitle() string
	SetSubtitle(value string)
	PlaybackProgress() float64
	SetPlaybackProgress(value float64)
	Artwork() MediaItemArtwork
	SetArtwork(value IMediaItemArtwork)
	IsStreamingContent() bool
	SetStreamingContent(value bool)
	IsContainer() bool
	SetContainer(value bool)
	Title() string
	SetTitle(value string)
	IsExplicitContent() bool
	SetExplicitContent(value bool)
	Identifier() string
	IsPlayable() bool
	SetPlayable(value bool)
}

An interface definition for the ContentItem class.

type IFeedbackCommand

type IFeedbackCommand interface {
	IRemoteCommand
	IsActive() bool
	SetActive(value bool)
	LocalizedTitle() string
	SetLocalizedTitle(value string)
	LocalizedShortTitle() string
	SetLocalizedShortTitle(value string)
}

An interface definition for the FeedbackCommand class.

type IFeedbackCommandEvent

type IFeedbackCommandEvent interface {
	IRemoteCommandEvent
	IsNegative() bool
}

An interface definition for the FeedbackCommandEvent class.

type IMediaItemArtwork

type IMediaItemArtwork interface {
	objc.IObject
	ImageWithSize(size coregraphics.Size) appkit.Image
	Bounds() coregraphics.Rect
	ImageCropRect() coregraphics.Rect
}

An interface definition for the MediaItemArtwork class.

type INowPlayingInfoCenter

type INowPlayingInfoCenter interface {
	objc.IObject
	PlaybackState() NowPlayingPlaybackState
	SetPlaybackState(value NowPlayingPlaybackState)
	NowPlayingInfo() map[string]objc.Object
	SetNowPlayingInfo(value map[string]objc.IObject)
}

An interface definition for the NowPlayingInfoCenter class.

type INowPlayingInfoLanguageOption

type INowPlayingInfoLanguageOption interface {
	objc.IObject
	IsAutomaticLegibleLanguageOption() bool
	IsAutomaticAudibleLanguageOption() bool
	LanguageOptionType() NowPlayingInfoLanguageOptionType
	LanguageTag() string
	LanguageOptionCharacteristics() []string
	DisplayName() string
	Identifier() string
}

An interface definition for the NowPlayingInfoLanguageOption class.

type INowPlayingInfoLanguageOptionGroup

type INowPlayingInfoLanguageOptionGroup interface {
	objc.IObject
	AllowEmptySelection() bool
}

An interface definition for the NowPlayingInfoLanguageOptionGroup class.

type IRatingCommand

type IRatingCommand interface {
	IRemoteCommand
	MinimumRating() float64
	SetMinimumRating(value float64)
	MaximumRating() float64
	SetMaximumRating(value float64)
}

An interface definition for the RatingCommand class.

type IRatingCommandEvent

type IRatingCommandEvent interface {
	IRemoteCommandEvent
	Rating() float64
}

An interface definition for the RatingCommandEvent class.

type IRemoteCommand

type IRemoteCommand interface {
	objc.IObject
	AddTargetWithHandler(handler func(event RemoteCommandEvent) RemoteCommandHandlerStatus) objc.Object
	RemoveTarget(target objc.IObject)
	AddTargetAction(target objc.IObject, action objc.Selector)
	IsEnabled() bool
	SetEnabled(value bool)
}

An interface definition for the RemoteCommand class.

type IRemoteCommandCenter

type IRemoteCommandCenter interface {
	objc.IObject
	PlayCommand() RemoteCommand
	SkipBackwardCommand() SkipIntervalCommand
	DisableLanguageOptionCommand() RemoteCommand
	SkipForwardCommand() SkipIntervalCommand
	ChangeRepeatModeCommand() ChangeRepeatModeCommand
	LikeCommand() FeedbackCommand
	TogglePlayPauseCommand() RemoteCommand
	NextTrackCommand() RemoteCommand
	ChangePlaybackPositionCommand() ChangePlaybackPositionCommand
	BookmarkCommand() FeedbackCommand
	ChangePlaybackRateCommand() ChangePlaybackRateCommand
	PreviousTrackCommand() RemoteCommand
	EnableLanguageOptionCommand() RemoteCommand
	ChangeShuffleModeCommand() ChangeShuffleModeCommand
	PauseCommand() RemoteCommand
	DislikeCommand() FeedbackCommand
	StopCommand() RemoteCommand
	SeekBackwardCommand() RemoteCommand
	SeekForwardCommand() RemoteCommand
	RatingCommand() RatingCommand
}

An interface definition for the RemoteCommandCenter class.

type IRemoteCommandEvent

type IRemoteCommandEvent interface {
	objc.IObject
	Command() RemoteCommand
	Timestamp() foundation.TimeInterval
}

An interface definition for the RemoteCommandEvent class.

type ISeekCommandEvent

type ISeekCommandEvent interface {
	IRemoteCommandEvent
	Type() SeekCommandEventType
}

An interface definition for the SeekCommandEvent class.

type ISkipIntervalCommand

type ISkipIntervalCommand interface {
	IRemoteCommand
	PreferredIntervals() []foundation.Number
	SetPreferredIntervals(value []foundation.INumber)
}

An interface definition for the SkipIntervalCommand class.

type ISkipIntervalCommandEvent

type ISkipIntervalCommandEvent interface {
	IRemoteCommandEvent
	Interval() foundation.TimeInterval
}

An interface definition for the SkipIntervalCommandEvent class.

type MediaEntityPersistentID

type MediaEntityPersistentID uint64

Defines the type for storing a persistent identifier to a particular entity. Full Topic

type MediaItemArtwork

type MediaItemArtwork struct {
	objc.Object
}

A graphical image, such as music album cover art, associated with a media item. Full Topic

func MediaItemArtworkFrom

func MediaItemArtworkFrom(ptr unsafe.Pointer) MediaItemArtwork

func MediaItemArtwork_Alloc

func MediaItemArtwork_Alloc() MediaItemArtwork

func NewMediaItemArtwork

func NewMediaItemArtwork() MediaItemArtwork

func NewMediaItemArtworkWithBoundsSizeRequestHandler

func NewMediaItemArtworkWithBoundsSizeRequestHandler(boundsSize coregraphics.Size, requestHandler func(size coregraphics.Size) appkit.Image) MediaItemArtwork

Creates a new image from existing artwork with the specified bounds. Full Topic

func (MediaItemArtwork) Bounds

func (m_ MediaItemArtwork) Bounds() coregraphics.Rect

The maximum size, in points, of the image associated with the media item artwork. Full Topic

func (MediaItemArtwork) ImageCropRect

func (m_ MediaItemArtwork) ImageCropRect() coregraphics.Rect

The bounds, in points, of the content area for the full size image associated with the media item artwork. Full Topic

func (MediaItemArtwork) ImageWithSize

func (m_ MediaItemArtwork) ImageWithSize(size coregraphics.Size) appkit.Image

Returns the artwork image for an item at the given size. Full Topic

func (MediaItemArtwork) Init

func (MediaItemArtwork) InitWithBoundsSizeRequestHandler

func (m_ MediaItemArtwork) InitWithBoundsSizeRequestHandler(boundsSize coregraphics.Size, requestHandler func(size coregraphics.Size) appkit.Image) MediaItemArtwork

type MediaType

type MediaType uint

The properties for defining the type for a media item. Full Topic

const (
	MediaTypeAny          MediaType = math.MaxUint
	MediaTypeAnyAudio     MediaType = 255
	MediaTypeAnyVideo     MediaType = 65280
	MediaTypeAudioBook    MediaType = 4
	MediaTypeAudioITunesU MediaType = 8
	MediaTypeHomeVideo    MediaType = 8192
	MediaTypeMovie        MediaType = 256
	MediaTypeMusic        MediaType = 1
	MediaTypeMusicVideo   MediaType = 2048
	MediaTypePodcast      MediaType = 2
	MediaTypeTVShow       MediaType = 512
	MediaTypeVideoITunesU MediaType = 4096
	MediaTypeVideoPodcast MediaType = 1024
)

type NowPlayingInfoCenter

type NowPlayingInfoCenter struct {
	objc.Object
}

An object for setting the Now Playing information for media that your app plays. Full Topic

func NewNowPlayingInfoCenter

func NewNowPlayingInfoCenter() NowPlayingInfoCenter

func NowPlayingInfoCenterFrom

func NowPlayingInfoCenterFrom(ptr unsafe.Pointer) NowPlayingInfoCenter

func NowPlayingInfoCenter_Alloc

func NowPlayingInfoCenter_Alloc() NowPlayingInfoCenter

func NowPlayingInfoCenter_DefaultCenter

func NowPlayingInfoCenter_DefaultCenter() NowPlayingInfoCenter

Returns the singleton Now Playing info center. Full Topic

func (NowPlayingInfoCenter) Init

func (NowPlayingInfoCenter) NowPlayingInfo

func (n_ NowPlayingInfoCenter) NowPlayingInfo() map[string]objc.Object

The current Now Playing information for the default Now Playing info center. Full Topic

func (NowPlayingInfoCenter) PlaybackState

func (n_ NowPlayingInfoCenter) PlaybackState() NowPlayingPlaybackState

The current playback state of the app. Full Topic

func (NowPlayingInfoCenter) SetNowPlayingInfo

func (n_ NowPlayingInfoCenter) SetNowPlayingInfo(value map[string]objc.IObject)

The current Now Playing information for the default Now Playing info center. Full Topic

func (NowPlayingInfoCenter) SetPlaybackState

func (n_ NowPlayingInfoCenter) SetPlaybackState(value NowPlayingPlaybackState)

The current playback state of the app. Full Topic

type NowPlayingInfoLanguageOption

type NowPlayingInfoLanguageOption struct {
	objc.Object
}

A set of interfaces for setting the language option for the Now Playing item. Full Topic

func NewNowPlayingInfoLanguageOption

func NewNowPlayingInfoLanguageOption() NowPlayingInfoLanguageOption

func NewNowPlayingInfoLanguageOptionWithTypeLanguageTagCharacteristicsDisplayNameIdentifier

func NewNowPlayingInfoLanguageOptionWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(languageOptionType NowPlayingInfoLanguageOptionType, languageTag string, languageOptionCharacteristics []string, displayName string, identifier string) NowPlayingInfoLanguageOption

Creates a single language option. Full Topic

func NowPlayingInfoLanguageOptionFrom

func NowPlayingInfoLanguageOptionFrom(ptr unsafe.Pointer) NowPlayingInfoLanguageOption

func NowPlayingInfoLanguageOption_Alloc

func NowPlayingInfoLanguageOption_Alloc() NowPlayingInfoLanguageOption

func (NowPlayingInfoLanguageOption) DisplayName

func (n_ NowPlayingInfoLanguageOption) DisplayName() string

The display name for a language option. Full Topic

func (NowPlayingInfoLanguageOption) Identifier

func (n_ NowPlayingInfoLanguageOption) Identifier() string

The unique identifier for the language option. Full Topic

func (NowPlayingInfoLanguageOption) Init

func (NowPlayingInfoLanguageOption) InitWithTypeLanguageTagCharacteristicsDisplayNameIdentifier

func (n_ NowPlayingInfoLanguageOption) InitWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(languageOptionType NowPlayingInfoLanguageOptionType, languageTag string, languageOptionCharacteristics []string, displayName string, identifier string) NowPlayingInfoLanguageOption

func (NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption

func (n_ NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool

Returns a Boolean value that determines whether to use the best audible language option based on the system preferences. Full Topic

func (NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption

func (n_ NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool

Returns a Boolean value that determines whether to use the best legible language option based on the system preferences. Full Topic

func (NowPlayingInfoLanguageOption) LanguageOptionCharacteristics

func (n_ NowPlayingInfoLanguageOption) LanguageOptionCharacteristics() []string

The characteristics that describe the content of the language option. Full Topic

func (NowPlayingInfoLanguageOption) LanguageOptionType

The type of language option. Full Topic

func (NowPlayingInfoLanguageOption) LanguageTag

func (n_ NowPlayingInfoLanguageOption) LanguageTag() string

The abbreviated language code for the language option. Full Topic

type NowPlayingInfoLanguageOptionGroup

type NowPlayingInfoLanguageOptionGroup struct {
	objc.Object
}

A grouped set of language options where only a single language option can be active at a time. Full Topic

func NewNowPlayingInfoLanguageOptionGroup

func NewNowPlayingInfoLanguageOptionGroup() NowPlayingInfoLanguageOptionGroup

func NowPlayingInfoLanguageOptionGroupFrom

func NowPlayingInfoLanguageOptionGroupFrom(ptr unsafe.Pointer) NowPlayingInfoLanguageOptionGroup

func NowPlayingInfoLanguageOptionGroup_Alloc

func NowPlayingInfoLanguageOptionGroup_Alloc() NowPlayingInfoLanguageOptionGroup

func (NowPlayingInfoLanguageOptionGroup) AllowEmptySelection

func (n_ NowPlayingInfoLanguageOptionGroup) AllowEmptySelection() bool

A Boolean that indicates whether the system requires a selection for the language option group. Full Topic

func (NowPlayingInfoLanguageOptionGroup) Init

type NowPlayingInfoLanguageOptionType

type NowPlayingInfoLanguageOptionType uint

The language option type to use for the Now Playing item. Full Topic

const (
	NowPlayingInfoLanguageOptionTypeAudible NowPlayingInfoLanguageOptionType = 0
	NowPlayingInfoLanguageOptionTypeLegible NowPlayingInfoLanguageOptionType = 1
)

type NowPlayingInfoMediaType

type NowPlayingInfoMediaType uint

The type of media currently playing. Full Topic

const (
	NowPlayingInfoMediaTypeAudio NowPlayingInfoMediaType = 1
	NowPlayingInfoMediaTypeNone  NowPlayingInfoMediaType = 0
	NowPlayingInfoMediaTypeVideo NowPlayingInfoMediaType = 2
)

type NowPlayingPlaybackState

type NowPlayingPlaybackState uint

The playback state of the app. Full Topic

const (
	NowPlayingPlaybackStateInterrupted NowPlayingPlaybackState = 4
	NowPlayingPlaybackStatePaused      NowPlayingPlaybackState = 2
	NowPlayingPlaybackStatePlaying     NowPlayingPlaybackState = 1
	NowPlayingPlaybackStateStopped     NowPlayingPlaybackState = 3
	NowPlayingPlaybackStateUnknown     NowPlayingPlaybackState = 0
)

type PSystemMusicPlayerController

type PSystemMusicPlayerController interface {
}

A protocol for playing videos in the Music app. Full Topic

type RatingCommand

type RatingCommand struct {
	RemoteCommand
}

An object that provides a detailed rating for the playing item. Full Topic

func NewRatingCommand

func NewRatingCommand() RatingCommand

func RatingCommandFrom

func RatingCommandFrom(ptr unsafe.Pointer) RatingCommand

func RatingCommand_Alloc

func RatingCommand_Alloc() RatingCommand

func (RatingCommand) Init

func (r_ RatingCommand) Init() RatingCommand

func (RatingCommand) MaximumRating

func (r_ RatingCommand) MaximumRating() float64

The maximum rating for a command. Full Topic

func (RatingCommand) MinimumRating

func (r_ RatingCommand) MinimumRating() float64

The minimum rating for a command. Full Topic

func (RatingCommand) SetMaximumRating

func (r_ RatingCommand) SetMaximumRating(value float64)

The maximum rating for a command. Full Topic

func (RatingCommand) SetMinimumRating

func (r_ RatingCommand) SetMinimumRating(value float64)

The minimum rating for a command. Full Topic

type RatingCommandEvent

type RatingCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the rating. Full Topic

func NewRatingCommandEvent

func NewRatingCommandEvent() RatingCommandEvent

func RatingCommandEventFrom

func RatingCommandEventFrom(ptr unsafe.Pointer) RatingCommandEvent

func RatingCommandEvent_Alloc

func RatingCommandEvent_Alloc() RatingCommandEvent

func (RatingCommandEvent) Init

func (RatingCommandEvent) Rating

func (r_ RatingCommandEvent) Rating() float64

The rating for the command event. Full Topic

type RemoteCommand

type RemoteCommand struct {
	objc.Object
}

An object that responds to remote command events. Full Topic

func NewRemoteCommand

func NewRemoteCommand() RemoteCommand

func RemoteCommandFrom

func RemoteCommandFrom(ptr unsafe.Pointer) RemoteCommand

func RemoteCommand_Alloc

func RemoteCommand_Alloc() RemoteCommand

func (RemoteCommand) AddTargetAction

func (r_ RemoteCommand) AddTargetAction(target objc.IObject, action objc.Selector)

Adds a target object to be called when an event is received. Full Topic

func (RemoteCommand) AddTargetWithHandler

func (r_ RemoteCommand) AddTargetWithHandler(handler func(event RemoteCommandEvent) RemoteCommandHandlerStatus) objc.Object

Adds a block to be called when an event is received. Full Topic

func (RemoteCommand) Init

func (r_ RemoteCommand) Init() RemoteCommand

func (RemoteCommand) IsEnabled

func (r_ RemoteCommand) IsEnabled() bool

A Boolean value that indicates whether a user can interact with the displayed element. Full Topic

func (RemoteCommand) RemoveTarget

func (r_ RemoteCommand) RemoveTarget(target objc.IObject)

Removes a target from the remote command object. Full Topic

func (RemoteCommand) SetEnabled

func (r_ RemoteCommand) SetEnabled(value bool)

A Boolean value that indicates whether a user can interact with the displayed element. Full Topic

type RemoteCommandCenter

type RemoteCommandCenter struct {
	objc.Object
}

An object that responds to remote control events sent by external accessories and system controls. Full Topic

func NewRemoteCommandCenter

func NewRemoteCommandCenter() RemoteCommandCenter

func RemoteCommandCenterFrom

func RemoteCommandCenterFrom(ptr unsafe.Pointer) RemoteCommandCenter

func RemoteCommandCenter_Alloc

func RemoteCommandCenter_Alloc() RemoteCommandCenter

func RemoteCommandCenter_SharedCommandCenter

func RemoteCommandCenter_SharedCommandCenter() RemoteCommandCenter

Returns the shared object you use to access the system’s remote command objects. Full Topic

func (RemoteCommandCenter) BookmarkCommand

func (r_ RemoteCommandCenter) BookmarkCommand() FeedbackCommand

The command object for indicating that a user wants to remember a media item. Full Topic

func (RemoteCommandCenter) ChangePlaybackPositionCommand

func (r_ RemoteCommandCenter) ChangePlaybackPositionCommand() ChangePlaybackPositionCommand

The command object for changing the playback position in a media item. Full Topic

func (RemoteCommandCenter) ChangePlaybackRateCommand

func (r_ RemoteCommandCenter) ChangePlaybackRateCommand() ChangePlaybackRateCommand

The command object for changing the playback rate of the current media item. Full Topic

func (RemoteCommandCenter) ChangeRepeatModeCommand

func (r_ RemoteCommandCenter) ChangeRepeatModeCommand() ChangeRepeatModeCommand

The command object for changing the repeat mode. Full Topic

func (RemoteCommandCenter) ChangeShuffleModeCommand

func (r_ RemoteCommandCenter) ChangeShuffleModeCommand() ChangeShuffleModeCommand

The command object for changing the shuffle mode. Full Topic

func (RemoteCommandCenter) DisableLanguageOptionCommand

func (r_ RemoteCommandCenter) DisableLanguageOptionCommand() RemoteCommand

The command object for disabling a language option Full Topic

func (RemoteCommandCenter) DislikeCommand

func (r_ RemoteCommandCenter) DislikeCommand() FeedbackCommand

The command object for indicating that a user dislikes what is currently playing. Full Topic

func (RemoteCommandCenter) EnableLanguageOptionCommand

func (r_ RemoteCommandCenter) EnableLanguageOptionCommand() RemoteCommand

The command object for enabling a language option. Full Topic

func (RemoteCommandCenter) Init

func (RemoteCommandCenter) LikeCommand

func (r_ RemoteCommandCenter) LikeCommand() FeedbackCommand

The command object for indicating that a user likes what is currently playing. Full Topic

func (RemoteCommandCenter) NextTrackCommand

func (r_ RemoteCommandCenter) NextTrackCommand() RemoteCommand

The command object for selecting the next track. Full Topic

func (RemoteCommandCenter) PauseCommand

func (r_ RemoteCommandCenter) PauseCommand() RemoteCommand

The command object for pausing playback of the current item. Full Topic

func (RemoteCommandCenter) PlayCommand

func (r_ RemoteCommandCenter) PlayCommand() RemoteCommand

The command object for starting playback of the current item. Full Topic

func (RemoteCommandCenter) PreviousTrackCommand

func (r_ RemoteCommandCenter) PreviousTrackCommand() RemoteCommand

The command object for selecting the previous track. Full Topic

func (RemoteCommandCenter) RatingCommand

func (r_ RemoteCommandCenter) RatingCommand() RatingCommand

The command object for rating a media item. Full Topic

func (RemoteCommandCenter) SeekBackwardCommand

func (r_ RemoteCommandCenter) SeekBackwardCommand() RemoteCommand

The command object for seeking backward through a single media item. Full Topic

func (RemoteCommandCenter) SeekForwardCommand

func (r_ RemoteCommandCenter) SeekForwardCommand() RemoteCommand

The command object for seeking forward through a single media item. Full Topic

func (RemoteCommandCenter) SkipBackwardCommand

func (r_ RemoteCommandCenter) SkipBackwardCommand() SkipIntervalCommand

The command object for playing a previous point in a media item. Full Topic

func (RemoteCommandCenter) SkipForwardCommand

func (r_ RemoteCommandCenter) SkipForwardCommand() SkipIntervalCommand

The command object for playing a future point in a media item. Full Topic

func (RemoteCommandCenter) StopCommand

func (r_ RemoteCommandCenter) StopCommand() RemoteCommand

The command object for stopping playback of the current item. Full Topic

func (RemoteCommandCenter) TogglePlayPauseCommand

func (r_ RemoteCommandCenter) TogglePlayPauseCommand() RemoteCommand

The command object for toggling between playing and pausing the current item. Full Topic

type RemoteCommandEvent

type RemoteCommandEvent struct {
	objc.Object
}

A description of a command sent by an external media player. Full Topic

func NewRemoteCommandEvent

func NewRemoteCommandEvent() RemoteCommandEvent

func RemoteCommandEventFrom

func RemoteCommandEventFrom(ptr unsafe.Pointer) RemoteCommandEvent

func RemoteCommandEvent_Alloc

func RemoteCommandEvent_Alloc() RemoteCommandEvent

func (RemoteCommandEvent) Command

func (r_ RemoteCommandEvent) Command() RemoteCommand

The command that sent the event. Full Topic

func (RemoteCommandEvent) Init

func (RemoteCommandEvent) Timestamp

The time the event occurred. Full Topic

type RemoteCommandHandlerStatus

type RemoteCommandHandlerStatus int

Constants indicating the status of a command. Full Topic

const (
	RemoteCommandHandlerStatusCommandFailed              RemoteCommandHandlerStatus = 200
	RemoteCommandHandlerStatusDeviceNotFound             RemoteCommandHandlerStatus = 120
	RemoteCommandHandlerStatusNoActionableNowPlayingItem RemoteCommandHandlerStatus = 110
	RemoteCommandHandlerStatusNoSuchContent              RemoteCommandHandlerStatus = 100
	RemoteCommandHandlerStatusSuccess                    RemoteCommandHandlerStatus = 0
)

type RepeatType

type RepeatType int

Indicates which items to play repeatedly. Full Topic

const (
	RepeatTypeAll RepeatType = 2
	RepeatTypeOff RepeatType = 0
	RepeatTypeOne RepeatType = 1
)

type SeekCommandEvent

type SeekCommandEvent struct {
	RemoteCommandEvent
}

An event requesting that the player seek to a new position. Full Topic

func NewSeekCommandEvent

func NewSeekCommandEvent() SeekCommandEvent

func SeekCommandEventFrom

func SeekCommandEventFrom(ptr unsafe.Pointer) SeekCommandEvent

func SeekCommandEvent_Alloc

func SeekCommandEvent_Alloc() SeekCommandEvent

func (SeekCommandEvent) Init

func (SeekCommandEvent) Type

The type of seek command event. Full Topic

type SeekCommandEventType

type SeekCommandEventType uint

Defines the beginning and ending of seek events. Full Topic

const (
	SeekCommandEventTypeBeginSeeking SeekCommandEventType = 0
	SeekCommandEventTypeEndSeeking   SeekCommandEventType = 1
)

type ShuffleType

type ShuffleType int

Indicates which item types to shuffle. Full Topic

const (
	ShuffleTypeCollections ShuffleType = 2
	ShuffleTypeItems       ShuffleType = 1
	ShuffleTypeOff         ShuffleType = 0
)

type SkipIntervalCommand

type SkipIntervalCommand struct {
	RemoteCommand
}

An object that defines the skip intervals for the player. Full Topic

func NewSkipIntervalCommand

func NewSkipIntervalCommand() SkipIntervalCommand

func SkipIntervalCommandFrom

func SkipIntervalCommandFrom(ptr unsafe.Pointer) SkipIntervalCommand

func SkipIntervalCommand_Alloc

func SkipIntervalCommand_Alloc() SkipIntervalCommand

func (SkipIntervalCommand) Init

func (SkipIntervalCommand) PreferredIntervals

func (s_ SkipIntervalCommand) PreferredIntervals() []foundation.Number

The available skip intervals, in seconds, for a media item. Full Topic

func (SkipIntervalCommand) SetPreferredIntervals

func (s_ SkipIntervalCommand) SetPreferredIntervals(value []foundation.INumber)

The available skip intervals, in seconds, for a media item. Full Topic

type SkipIntervalCommandEvent

type SkipIntervalCommandEvent struct {
	RemoteCommandEvent
}

An event requesting a change in the current skip interval. Full Topic

func NewSkipIntervalCommandEvent

func NewSkipIntervalCommandEvent() SkipIntervalCommandEvent

func SkipIntervalCommandEventFrom

func SkipIntervalCommandEventFrom(ptr unsafe.Pointer) SkipIntervalCommandEvent

func SkipIntervalCommandEvent_Alloc

func SkipIntervalCommandEvent_Alloc() SkipIntervalCommandEvent

func (SkipIntervalCommandEvent) Init

func (SkipIntervalCommandEvent) Interval

The chosen interval, in seconds, for the skip command event. Full Topic

type SystemMusicPlayerControllerWrapper

type SystemMusicPlayerControllerWrapper struct {
	objc.Object
}

A concrete type wrapper for the PSystemMusicPlayerController protocol.

Jump to

Keyboard shortcuts

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