Documentation
¶
Overview ¶
Find and play songs, audio podcasts, audio books, and more from within your app.
Index ¶
- Variables
- type ChangeLanguageOptionCommandEvent
- type ChangeLanguageOptionSetting
- type ChangePlaybackPositionCommand
- type ChangePlaybackPositionCommandEvent
- type ChangePlaybackRateCommand
- type ChangePlaybackRateCommandEvent
- type ChangeRepeatModeCommand
- type ChangeRepeatModeCommandEvent
- type ChangeShuffleModeCommand
- type ChangeShuffleModeCommandEvent
- type ContentItem
- func (c_ ContentItem) Artwork() MediaItemArtwork
- func (c_ ContentItem) Identifier() string
- func (c_ ContentItem) Init() ContentItem
- func (c_ ContentItem) InitWithIdentifier(identifier string) ContentItem
- func (c_ ContentItem) IsContainer() bool
- func (c_ ContentItem) IsExplicitContent() bool
- func (c_ ContentItem) IsPlayable() bool
- func (c_ ContentItem) IsStreamingContent() bool
- func (c_ ContentItem) PlaybackProgress() float64
- func (c_ ContentItem) SetArtwork(value IMediaItemArtwork)
- func (c_ ContentItem) SetContainer(value bool)
- func (c_ ContentItem) SetExplicitContent(value bool)
- func (c_ ContentItem) SetPlayable(value bool)
- func (c_ ContentItem) SetPlaybackProgress(value float64)
- func (c_ ContentItem) SetStreamingContent(value bool)
- func (c_ ContentItem) SetSubtitle(value string)
- func (c_ ContentItem) SetTitle(value string)
- func (c_ ContentItem) Subtitle() string
- func (c_ ContentItem) Title() string
- type ErrorCode
- type FeedbackCommand
- func (f_ FeedbackCommand) Init() FeedbackCommand
- func (f_ FeedbackCommand) IsActive() bool
- func (f_ FeedbackCommand) LocalizedShortTitle() string
- func (f_ FeedbackCommand) LocalizedTitle() string
- func (f_ FeedbackCommand) SetActive(value bool)
- func (f_ FeedbackCommand) SetLocalizedShortTitle(value string)
- func (f_ FeedbackCommand) SetLocalizedTitle(value string)
- type FeedbackCommandEvent
- type IChangeLanguageOptionCommandEvent
- type IChangePlaybackPositionCommand
- type IChangePlaybackPositionCommandEvent
- type IChangePlaybackRateCommand
- type IChangePlaybackRateCommandEvent
- type IChangeRepeatModeCommand
- type IChangeRepeatModeCommandEvent
- type IChangeShuffleModeCommand
- type IChangeShuffleModeCommandEvent
- type IContentItem
- type IFeedbackCommand
- type IFeedbackCommandEvent
- type IMediaItemArtwork
- type INowPlayingInfoCenter
- type INowPlayingInfoLanguageOption
- type INowPlayingInfoLanguageOptionGroup
- type IRatingCommand
- type IRatingCommandEvent
- type IRemoteCommand
- type IRemoteCommandCenter
- type IRemoteCommandEvent
- type ISeekCommandEvent
- type ISkipIntervalCommand
- type ISkipIntervalCommandEvent
- type MediaEntityPersistentID
- type MediaItemArtwork
- func (m_ MediaItemArtwork) Bounds() coregraphics.Rect
- func (m_ MediaItemArtwork) ImageCropRect() coregraphics.Rect
- func (m_ MediaItemArtwork) ImageWithSize(size coregraphics.Size) appkit.Image
- func (m_ MediaItemArtwork) Init() MediaItemArtwork
- func (m_ MediaItemArtwork) InitWithBoundsSizeRequestHandler(boundsSize coregraphics.Size, ...) MediaItemArtwork
- type MediaType
- type NowPlayingInfoCenter
- func (n_ NowPlayingInfoCenter) Init() NowPlayingInfoCenter
- func (n_ NowPlayingInfoCenter) NowPlayingInfo() map[string]objc.Object
- func (n_ NowPlayingInfoCenter) PlaybackState() NowPlayingPlaybackState
- func (n_ NowPlayingInfoCenter) SetNowPlayingInfo(value map[string]objc.IObject)
- func (n_ NowPlayingInfoCenter) SetPlaybackState(value NowPlayingPlaybackState)
- type NowPlayingInfoLanguageOption
- func NewNowPlayingInfoLanguageOption() NowPlayingInfoLanguageOption
- func NewNowPlayingInfoLanguageOptionWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(languageOptionType NowPlayingInfoLanguageOptionType, languageTag string, ...) NowPlayingInfoLanguageOption
- func NowPlayingInfoLanguageOptionFrom(ptr unsafe.Pointer) NowPlayingInfoLanguageOption
- func NowPlayingInfoLanguageOption_Alloc() NowPlayingInfoLanguageOption
- func (n_ NowPlayingInfoLanguageOption) DisplayName() string
- func (n_ NowPlayingInfoLanguageOption) Identifier() string
- func (n_ NowPlayingInfoLanguageOption) Init() NowPlayingInfoLanguageOption
- func (n_ NowPlayingInfoLanguageOption) InitWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(languageOptionType NowPlayingInfoLanguageOptionType, languageTag string, ...) NowPlayingInfoLanguageOption
- func (n_ NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool
- func (n_ NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool
- func (n_ NowPlayingInfoLanguageOption) LanguageOptionCharacteristics() []string
- func (n_ NowPlayingInfoLanguageOption) LanguageOptionType() NowPlayingInfoLanguageOptionType
- func (n_ NowPlayingInfoLanguageOption) LanguageTag() string
- type NowPlayingInfoLanguageOptionGroup
- type NowPlayingInfoLanguageOptionType
- type NowPlayingInfoMediaType
- type NowPlayingPlaybackState
- type PSystemMusicPlayerController
- type RatingCommand
- type RatingCommandEvent
- type RemoteCommand
- func (r_ RemoteCommand) AddTargetAction(target objc.IObject, action objc.Selector)
- func (r_ RemoteCommand) AddTargetWithHandler(handler func(event RemoteCommandEvent) RemoteCommandHandlerStatus) objc.Object
- func (r_ RemoteCommand) Init() RemoteCommand
- func (r_ RemoteCommand) IsEnabled() bool
- func (r_ RemoteCommand) RemoveTarget(target objc.IObject)
- func (r_ RemoteCommand) SetEnabled(value bool)
- type RemoteCommandCenter
- func (r_ RemoteCommandCenter) BookmarkCommand() FeedbackCommand
- func (r_ RemoteCommandCenter) ChangePlaybackPositionCommand() ChangePlaybackPositionCommand
- func (r_ RemoteCommandCenter) ChangePlaybackRateCommand() ChangePlaybackRateCommand
- func (r_ RemoteCommandCenter) ChangeRepeatModeCommand() ChangeRepeatModeCommand
- func (r_ RemoteCommandCenter) ChangeShuffleModeCommand() ChangeShuffleModeCommand
- func (r_ RemoteCommandCenter) DisableLanguageOptionCommand() RemoteCommand
- func (r_ RemoteCommandCenter) DislikeCommand() FeedbackCommand
- func (r_ RemoteCommandCenter) EnableLanguageOptionCommand() RemoteCommand
- func (r_ RemoteCommandCenter) Init() RemoteCommandCenter
- func (r_ RemoteCommandCenter) LikeCommand() FeedbackCommand
- func (r_ RemoteCommandCenter) NextTrackCommand() RemoteCommand
- func (r_ RemoteCommandCenter) PauseCommand() RemoteCommand
- func (r_ RemoteCommandCenter) PlayCommand() RemoteCommand
- func (r_ RemoteCommandCenter) PreviousTrackCommand() RemoteCommand
- func (r_ RemoteCommandCenter) RatingCommand() RatingCommand
- func (r_ RemoteCommandCenter) SeekBackwardCommand() RemoteCommand
- func (r_ RemoteCommandCenter) SeekForwardCommand() RemoteCommand
- func (r_ RemoteCommandCenter) SkipBackwardCommand() SkipIntervalCommand
- func (r_ RemoteCommandCenter) SkipForwardCommand() SkipIntervalCommand
- func (r_ RemoteCommandCenter) StopCommand() RemoteCommand
- func (r_ RemoteCommandCenter) TogglePlayPauseCommand() RemoteCommand
- type RemoteCommandEvent
- type RemoteCommandHandlerStatus
- type RepeatType
- type SeekCommandEvent
- type SeekCommandEventType
- type ShuffleType
- type SkipIntervalCommand
- type SkipIntervalCommandEvent
- type SystemMusicPlayerControllerWrapper
Constants ¶
This section is empty.
Variables ¶
var ChangeLanguageOptionCommandEventClass = _ChangeLanguageOptionCommandEventClass{objc.GetClass("MPChangeLanguageOptionCommandEvent")}
The class instance for the ChangeLanguageOptionCommandEvent class.
var ChangePlaybackPositionCommandClass = _ChangePlaybackPositionCommandClass{objc.GetClass("MPChangePlaybackPositionCommand")}
The class instance for the ChangePlaybackPositionCommand class.
var ChangePlaybackPositionCommandEventClass = _ChangePlaybackPositionCommandEventClass{objc.GetClass("MPChangePlaybackPositionCommandEvent")}
The class instance for the ChangePlaybackPositionCommandEvent class.
var ChangePlaybackRateCommandClass = _ChangePlaybackRateCommandClass{objc.GetClass("MPChangePlaybackRateCommand")}
The class instance for the ChangePlaybackRateCommand class.
var ChangePlaybackRateCommandEventClass = _ChangePlaybackRateCommandEventClass{objc.GetClass("MPChangePlaybackRateCommandEvent")}
The class instance for the ChangePlaybackRateCommandEvent class.
var ChangeRepeatModeCommandClass = _ChangeRepeatModeCommandClass{objc.GetClass("MPChangeRepeatModeCommand")}
The class instance for the ChangeRepeatModeCommand class.
var ChangeRepeatModeCommandEventClass = _ChangeRepeatModeCommandEventClass{objc.GetClass("MPChangeRepeatModeCommandEvent")}
The class instance for the ChangeRepeatModeCommandEvent class.
var ChangeShuffleModeCommandClass = _ChangeShuffleModeCommandClass{objc.GetClass("MPChangeShuffleModeCommand")}
The class instance for the ChangeShuffleModeCommand class.
var ChangeShuffleModeCommandEventClass = _ChangeShuffleModeCommandEventClass{objc.GetClass("MPChangeShuffleModeCommandEvent")}
The class instance for the ChangeShuffleModeCommandEvent class.
var ContentItemClass = _ContentItemClass{objc.GetClass("MPContentItem")}
The class instance for the ContentItem class.
var FeedbackCommandClass = _FeedbackCommandClass{objc.GetClass("MPFeedbackCommand")}
The class instance for the FeedbackCommand class.
var FeedbackCommandEventClass = _FeedbackCommandEventClass{objc.GetClass("MPFeedbackCommandEvent")}
The class instance for the FeedbackCommandEvent class.
var MediaItemArtworkClass = _MediaItemArtworkClass{objc.GetClass("MPMediaItemArtwork")}
The class instance for the MediaItemArtwork class.
var NowPlayingInfoCenterClass = _NowPlayingInfoCenterClass{objc.GetClass("MPNowPlayingInfoCenter")}
The class instance for the NowPlayingInfoCenter class.
var NowPlayingInfoLanguageOptionClass = _NowPlayingInfoLanguageOptionClass{objc.GetClass("MPNowPlayingInfoLanguageOption")}
The class instance for the NowPlayingInfoLanguageOption class.
var NowPlayingInfoLanguageOptionGroupClass = _NowPlayingInfoLanguageOptionGroupClass{objc.GetClass("MPNowPlayingInfoLanguageOptionGroup")}
The class instance for the NowPlayingInfoLanguageOptionGroup class.
var RatingCommandClass = _RatingCommandClass{objc.GetClass("MPRatingCommand")}
The class instance for the RatingCommand class.
var RatingCommandEventClass = _RatingCommandEventClass{objc.GetClass("MPRatingCommandEvent")}
The class instance for the RatingCommandEvent class.
var RemoteCommandCenterClass = _RemoteCommandCenterClass{objc.GetClass("MPRemoteCommandCenter")}
The class instance for the RemoteCommandCenter class.
var RemoteCommandClass = _RemoteCommandClass{objc.GetClass("MPRemoteCommand")}
The class instance for the RemoteCommand class.
var RemoteCommandEventClass = _RemoteCommandEventClass{objc.GetClass("MPRemoteCommandEvent")}
The class instance for the RemoteCommandEvent class.
var SeekCommandEventClass = _SeekCommandEventClass{objc.GetClass("MPSeekCommandEvent")}
The class instance for the SeekCommandEvent class.
var SkipIntervalCommandClass = _SkipIntervalCommandClass{objc.GetClass("MPSkipIntervalCommand")}
The class instance for the SkipIntervalCommand class.
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 (c_ ChangeLanguageOptionCommandEvent) Init() ChangeLanguageOptionCommandEvent
func (ChangeLanguageOptionCommandEvent) Setting ¶
func (c_ ChangeLanguageOptionCommandEvent) Setting() ChangeLanguageOptionSetting
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 ¶
func (c_ ChangePlaybackPositionCommand) Init() ChangePlaybackPositionCommand
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 (c_ ChangePlaybackPositionCommandEvent) Init() ChangePlaybackPositionCommandEvent
func (ChangePlaybackPositionCommandEvent) PositionTime ¶
func (c_ ChangePlaybackPositionCommandEvent) PositionTime() foundation.TimeInterval
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 (c_ ChangePlaybackRateCommand) Init() ChangePlaybackRateCommand
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 (c_ ChangePlaybackRateCommandEvent) Init() ChangePlaybackRateCommandEvent
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 (c_ ChangeRepeatModeCommand) Init() ChangeRepeatModeCommand
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 (c_ ChangeRepeatModeCommandEvent) Init() ChangeRepeatModeCommandEvent
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 (c_ ChangeShuffleModeCommand) Init() ChangeShuffleModeCommand
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 (c_ ChangeShuffleModeCommandEvent) Init() ChangeShuffleModeCommandEvent
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 ¶
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
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 (f_ FeedbackCommandEvent) Init() FeedbackCommandEvent
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 ¶
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 ¶
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 (m_ MediaItemArtwork) Init() MediaItemArtwork
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 ¶
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 (n_ NowPlayingInfoCenter) Init() NowPlayingInfoCenter
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 ¶
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 (n_ NowPlayingInfoLanguageOption) Init() NowPlayingInfoLanguageOption
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 ¶
func (n_ NowPlayingInfoLanguageOption) LanguageOptionType() NowPlayingInfoLanguageOptionType
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 ¶
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 ¶
func (n_ NowPlayingInfoLanguageOptionGroup) Init() NowPlayingInfoLanguageOptionGroup
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 (r_ RatingCommandEvent) Init() RatingCommandEvent
func (RatingCommandEvent) Rating ¶
func (r_ RatingCommandEvent) Rating() float64
The rating for the command event. Full Topic
type RemoteCommand ¶
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 ¶
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 (r_ RemoteCommandCenter) Init() RemoteCommandCenter
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 ¶
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 (r_ RemoteCommandEvent) Init() RemoteCommandEvent
func (RemoteCommandEvent) Timestamp ¶
func (r_ RemoteCommandEvent) Timestamp() foundation.TimeInterval
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 (s_ SeekCommandEvent) Init() SeekCommandEvent
func (SeekCommandEvent) Type ¶
func (s_ SeekCommandEvent) Type() SeekCommandEventType
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 (s_ SkipIntervalCommand) Init() SkipIntervalCommand
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 (s_ SkipIntervalCommandEvent) Init() SkipIntervalCommandEvent
func (SkipIntervalCommandEvent) Interval ¶
func (s_ SkipIntervalCommandEvent) Interval() foundation.TimeInterval
The chosen interval, in seconds, for the skip command event. Full Topic
type SystemMusicPlayerControllerWrapper ¶
A concrete type wrapper for the PSystemMusicPlayerController protocol.
Source Files
¶
- change_language_option_command_event.gen.go
- change_playback_position_command.gen.go
- change_playback_position_command_event.gen.go
- change_playback_rate_command.gen.go
- change_playback_rate_command_event.gen.go
- change_repeat_mode_command.gen.go
- change_repeat_mode_command_event.gen.go
- change_shuffle_mode_command.gen.go
- change_shuffle_mode_command_event.gen.go
- content_item.gen.go
- doc.gen.go
- enumtypes.gen.go
- feedback_command.gen.go
- feedback_command_event.gen.go
- media_item_artwork.gen.go
- mediaplayer.go
- mediaplayer_custom.go
- now_playing_info_center.gen.go
- now_playing_info_language_option.gen.go
- now_playing_info_language_option_group.gen.go
- rating_command.gen.go
- rating_command_event.gen.go
- remote_command.gen.go
- remote_command_center.gen.go
- remote_command_event.gen.go
- seek_command_event.gen.go
- skip_interval_command.gen.go
- skip_interval_command_event.gen.go
- system_music_player_controller.gen.go