Documentation ¶
Rendered for darwin/amd64
Index ¶
- Constants
- type MPChangePlaybackPositionCommand
- type MPChangePlaybackRateCommand
- type MPChangeRepeatModeCommand
- type MPChangeShuffleModeCommand
- type MPFeedbackCommand
- func (cmd MPFeedbackCommand) IsActive() bool
- func (cmd MPFeedbackCommand) LocalizedShortTitle() (str core.NSString)
- func (cmd MPFeedbackCommand) LocalizedTitle() (str core.NSString)
- func (cmd MPFeedbackCommand) SetActive(active bool)
- func (cmd MPFeedbackCommand) SetLocalizedShortTitle(title core.NSString)
- func (cmd MPFeedbackCommand) SetLocalizedTitle(title core.NSString)
- type MPMediaItemArtwork
- type MPMediaType
- type MPNowPlayingInfoCenter
- type MPNowPlayingInfoMediaType
- type MPNowPlayingPlaybackState
- type MPRatingCommand
- type MPRemoteCommand
- type MPRemoteCommandCenter
- func (c MPRemoteCommandCenter) BookmarkCommand() (cmd MPFeedbackCommand)
- func (c MPRemoteCommandCenter) ChangePlaybackPositionCommand() (cmd MPChangePlaybackPositionCommand)
- func (c MPRemoteCommandCenter) ChangePlaybackRateCommand() (cmd MPChangePlaybackRateCommand)
- func (c MPRemoteCommandCenter) ChangeRepeatModeCommand() (cmd MPChangeRepeatModeCommand)
- func (c MPRemoteCommandCenter) ChangeShuffleModeCommand() (cmd MPChangeShuffleModeCommand)
- func (c MPRemoteCommandCenter) DisableLanguageOptionCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) DislikeCommand() (cmd MPFeedbackCommand)
- func (c MPRemoteCommandCenter) EnableLanguageOptionCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) LikeCommand() (cmd MPFeedbackCommand)
- func (c MPRemoteCommandCenter) NextTrackCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) PauseCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) PlayCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) PreviousTrackCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) RatingCommand() (cmd MPRatingCommand)
- func (c MPRemoteCommandCenter) SeekBackwardCommand() (cmd MPChangePlaybackRateCommand)
- func (c MPRemoteCommandCenter) SeekForwardCommand() (cmd MPChangePlaybackRateCommand)
- func (c MPRemoteCommandCenter) SkipBackwardCommand() (cmd MPSkipIntervalCommand)
- func (c MPRemoteCommandCenter) SkipForwardCommand() (cmd MPSkipIntervalCommand)
- func (c MPRemoteCommandCenter) StopCommand() (cmd MPRemoteCommand)
- func (c MPRemoteCommandCenter) TogglePlayPauseCommand() (cmd MPRemoteCommand)
- type MPRemoteCommandHandlerStatus
- type MPRepeatType
- type MPShuffleType
- type MPSkipIntervalCommand
Constants ¶
View Source
const ( MPNowPlayingInfoPropertyElapsedPlaybackTime = "MPNowPlayingInfoPropertyElapsedPlaybackTime" MPNowPlayingInfoPropertyPlaybackRate = "MPNowPlayingInfoPropertyPlaybackRate" MPNowPlayingInfoPropertyDefaultPlaybackRate = "MPNowPlayingInfoPropertyDefaultPlaybackRate" MPNowPlayingInfoPropertyPlaybackQueueIndex = "MPNowPlayingInfoPropertyPlaybackQueueIndex" MPNowPlayingInfoPropertyPlaybackQueueCount = "MPNowPlayingInfoPropertyPlaybackQueueCount" MPNowPlayingInfoPropertyChapterNumber = "MPNowPlayingInfoPropertyChapterNumber" MPNowPlayingInfoPropertyChapterCount = "MPNowPlayingInfoPropertyChapterCount" MPNowPlayingInfoPropertyIsLiveStream = "MPNowPlayingInfoPropertyIsLiveStream" MPNowPlayingInfoPropertyAvailableLanguageOptions = "MPNowPlayingInfoPropertyAvailableLanguageOptions" MPNowPlayingInfoPropertyCurrentLanguageOptions = "MPNowPlayingInfoPropertyCurrentLanguageOptions" MPNowPlayingInfoCollectionIdentifier = "MPNowPlayingInfoCollectionIdentifier" MPNowPlayingInfoPropertyExternalContentIdentifier = "MPNowPlayingInfoPropertyExternalContentIdentifier" MPNowPlayingInfoPropertyExternalUserProfileIdentifier = "MPNowPlayingInfoPropertyExternalUserProfileIdentifier" MPNowPlayingInfoPropertyServiceIdentifier = "MPNowPlayingInfoPropertyServiceIdentifier" MPNowPlayingInfoPropertyPlaybackProgress = "MPNowPlayingInfoPropertyPlaybackProgress" MPNowPlayingInfoPropertyMediaType = "MPNowPlayingInfoPropertyMediaType" MPNowPlayingInfoPropertyAssetURL = "MPNowPlayingInfoPropertyAssetURL" MPNowPlayingInfoPropertyCurrentPlaybackDate = "MPNowPlayingInfoPropertyCurrentPlaybackDate" )
View Source
const ( MPMediaItemPropertyPersistentID = "persistentID" MPMediaItemPropertyMediaType = "mediaType" MPMediaItemPropertyTitle = "title" MPMediaItemPropertyAlbumTitle = "albumTitle" MPMediaItemPropertyAlbumPersistentID = "albumPersistentID" MPMediaItemPropertyArtist = "artist" MPMediaItemPropertyArtistPersistentID = "artistPersistentID" MPMediaItemPropertyAlbumArtist = "albumArtist" MPMediaItemPropertyAlbumArtistPersistentID = "albumArtistPersistentID" MPMediaItemPropertyGenre = "genre" MPMediaItemPropertyGenrePersistentID = "genrePersistentID" MPMediaItemPropertyComposer = "composer" MPMediaItemPropertyComposerPersistentID = "composerPersistentID" MPMediaItemPropertyPlaybackDuration = "playbackDuration" MPMediaItemPropertyAlbumTrackNumber = "albumTrackNumber" MPMediaItemPropertyAlbumTrackCount = "albumTrackCount" MPMediaItemPropertyDiscNumber = "discNumber" MPMediaItemPropertyDiscCount = "discCount" MPMediaItemPropertyArtwork = "artwork" MPMediaItemPropertyIsExplicit = "explicitItem" MPMediaItemPropertyLyrics = "lyrics" MPMediaItemPropertyIsCompilation = "compilation" MPMediaItemPropertyReleaseDate = "releaseDate" MPMediaItemPropertyBeatsPerMinute = "beatsPerMinute" MPMediaItemPropertyComments = "comments" MPMediaItemPropertyAssetURL = "assetURL" MPMediaItemPropertyIsCloudItem = "cloudItem" MPMediaItemPropertyHasProtectedAsset = "protectedAsset" MPMediaItemPropertyPodcastTitle = "podcastTitle" MPMediaItemPropertyPodcastPersistentID = "podcastPersistentID" MPMediaItemPropertyPlayCount = "playCount" MPMediaItemPropertySkipCount = "skipCount" MPMediaItemPropertyRating = "rating" MPMediaItemPropertyLastPlayedDate = "lastPlayedDate" MPMediaItemPropertyUserGrouping = "userGrouping" MPMediaItemPropertyBookmarkTime = "bookmarkTime" MPMediaItemPropertyDateAdded = "dateAdded" MPMediaItemPropertyPlaybackStoreID = "playbackStoreID" MPMediaItemPropertyIsPreorder = "preorder" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MPChangePlaybackPositionCommand ¶
type MPChangePlaybackPositionCommand struct {
MPRemoteCommand
}
type MPChangePlaybackRateCommand ¶
type MPChangePlaybackRateCommand struct {
MPRemoteCommand
}
func (MPChangePlaybackRateCommand) SupportedPlaybackRates ¶
func (cmd MPChangePlaybackRateCommand) SupportedPlaybackRates() objc.ID
type MPChangeRepeatModeCommand ¶
type MPChangeRepeatModeCommand struct {
MPRemoteCommand
}
func (MPChangeRepeatModeCommand) CurrentRepeatType ¶
func (cmd MPChangeRepeatModeCommand) CurrentRepeatType() MPRepeatType
type MPChangeShuffleModeCommand ¶
type MPChangeShuffleModeCommand struct {
MPRemoteCommand
}
func (MPChangeShuffleModeCommand) CurrentShuffleType ¶
func (cmd MPChangeShuffleModeCommand) CurrentShuffleType() MPShuffleType
type MPFeedbackCommand ¶
type MPFeedbackCommand struct {
MPRemoteCommand
}
func (MPFeedbackCommand) IsActive ¶
func (cmd MPFeedbackCommand) IsActive() bool
func (MPFeedbackCommand) LocalizedShortTitle ¶
func (cmd MPFeedbackCommand) LocalizedShortTitle() (str core.NSString)
func (MPFeedbackCommand) LocalizedTitle ¶
func (cmd MPFeedbackCommand) LocalizedTitle() (str core.NSString)
func (MPFeedbackCommand) SetActive ¶
func (cmd MPFeedbackCommand) SetActive(active bool)
func (MPFeedbackCommand) SetLocalizedShortTitle ¶
func (cmd MPFeedbackCommand) SetLocalizedShortTitle(title core.NSString)
func (MPFeedbackCommand) SetLocalizedTitle ¶
func (cmd MPFeedbackCommand) SetLocalizedTitle(title core.NSString)
type MPMediaItemArtwork ¶
func MPMediaItemArtwork_alloc ¶
func MPMediaItemArtwork_alloc() MPMediaItemArtwork
func (MPMediaItemArtwork) InitWithImage ¶
func (art MPMediaItemArtwork) InitWithImage(image cocoa.NSImage) MPMediaItemArtwork
type MPMediaType ¶
type MPMediaType core.NSUInteger
const ( MPMediaTypeMusic MPMediaType = 1 << 0 MPMediaTypePodcast MPMediaType = 1 << 1 MPMediaTypeAudioBook MPMediaType = 1 << 2 MPMediaTypeAudioITunesU MPMediaType = 1 << 3 MPMediaTypeAnyAudio MPMediaType = 0x00ff MPMediaTypeMovie MPMediaType = 1 << 8 MPMediaTypeTVShow MPMediaType = 1 << 9 MPMediaTypeVideoPodcast MPMediaType = 1 << 10 MPMediaTypeMusicVideo MPMediaType = 1 << 11 MPMediaTypeVideoITunesU MPMediaType = 1 << 12 MPMediaTypeHomeVideo MPMediaType = 1 << 13 MPMediaTypeAnyVideo MPMediaType = 0xff00 MPMediaTypeAny = MPMediaTypeAnyAudio | MPMediaTypeAnyVideo )
type MPNowPlayingInfoCenter ¶
func MPNowPlayingInfoCenter_defaultCenter ¶
func MPNowPlayingInfoCenter_defaultCenter() MPNowPlayingInfoCenter
func (MPNowPlayingInfoCenter) NowPlayingInfo ¶
func (c MPNowPlayingInfoCenter) NowPlayingInfo() core.NSDictionary
func (MPNowPlayingInfoCenter) PlaybackState ¶
func (c MPNowPlayingInfoCenter) PlaybackState() MPNowPlayingPlaybackState
func (MPNowPlayingInfoCenter) SetNowPlayingInfo ¶
func (c MPNowPlayingInfoCenter) SetNowPlayingInfo(info core.NSDictionary)
func (MPNowPlayingInfoCenter) SetPlaybackState ¶
func (c MPNowPlayingInfoCenter) SetPlaybackState(state MPNowPlayingPlaybackState)
type MPNowPlayingInfoMediaType ¶
type MPNowPlayingInfoMediaType core.NSUInteger
const ( MPNowPlayingInfoMediaTypeNone MPNowPlayingInfoMediaType = iota MPNowPlayingInfoMediaTypeAudio MPNowPlayingInfoMediaTypeVideo )
type MPNowPlayingPlaybackState ¶
type MPNowPlayingPlaybackState core.NSUInteger
const ( MPNowPlayingPlaybackStateUnknown MPNowPlayingPlaybackState = iota MPNowPlayingPlaybackStatePlaying MPNowPlayingPlaybackStatePaused MPNowPlayingPlaybackStateStopped MPNowPlayingPlaybackStateInterrupted )
type MPRatingCommand ¶
type MPRatingCommand struct {
MPRemoteCommand
}
func (MPRatingCommand) MaximumRating ¶
func (cmd MPRatingCommand) MaximumRating() float32
func (MPRatingCommand) MinimumRating ¶
func (cmd MPRatingCommand) MinimumRating() float32
type MPRemoteCommand ¶
func (MPRemoteCommand) AddTargetAction ¶
func (c MPRemoteCommand) AddTargetAction(target objc.ID, action objc.SEL)
type MPRemoteCommandCenter ¶
func MPRemoteCommandCenter_sharedCommandCenter ¶
func MPRemoteCommandCenter_sharedCommandCenter() MPRemoteCommandCenter
func (MPRemoteCommandCenter) BookmarkCommand ¶
func (c MPRemoteCommandCenter) BookmarkCommand() (cmd MPFeedbackCommand)
func (MPRemoteCommandCenter) ChangePlaybackPositionCommand ¶
func (c MPRemoteCommandCenter) ChangePlaybackPositionCommand() (cmd MPChangePlaybackPositionCommand)
func (MPRemoteCommandCenter) ChangePlaybackRateCommand ¶
func (c MPRemoteCommandCenter) ChangePlaybackRateCommand() (cmd MPChangePlaybackRateCommand)
func (MPRemoteCommandCenter) ChangeRepeatModeCommand ¶
func (c MPRemoteCommandCenter) ChangeRepeatModeCommand() (cmd MPChangeRepeatModeCommand)
func (MPRemoteCommandCenter) ChangeShuffleModeCommand ¶
func (c MPRemoteCommandCenter) ChangeShuffleModeCommand() (cmd MPChangeShuffleModeCommand)
func (MPRemoteCommandCenter) DisableLanguageOptionCommand ¶
func (c MPRemoteCommandCenter) DisableLanguageOptionCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) DislikeCommand ¶
func (c MPRemoteCommandCenter) DislikeCommand() (cmd MPFeedbackCommand)
func (MPRemoteCommandCenter) EnableLanguageOptionCommand ¶
func (c MPRemoteCommandCenter) EnableLanguageOptionCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) LikeCommand ¶
func (c MPRemoteCommandCenter) LikeCommand() (cmd MPFeedbackCommand)
func (MPRemoteCommandCenter) NextTrackCommand ¶
func (c MPRemoteCommandCenter) NextTrackCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) PauseCommand ¶
func (c MPRemoteCommandCenter) PauseCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) PlayCommand ¶
func (c MPRemoteCommandCenter) PlayCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) PreviousTrackCommand ¶
func (c MPRemoteCommandCenter) PreviousTrackCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) RatingCommand ¶
func (c MPRemoteCommandCenter) RatingCommand() (cmd MPRatingCommand)
func (MPRemoteCommandCenter) SeekBackwardCommand ¶
func (c MPRemoteCommandCenter) SeekBackwardCommand() (cmd MPChangePlaybackRateCommand)
func (MPRemoteCommandCenter) SeekForwardCommand ¶
func (c MPRemoteCommandCenter) SeekForwardCommand() (cmd MPChangePlaybackRateCommand)
func (MPRemoteCommandCenter) SkipBackwardCommand ¶
func (c MPRemoteCommandCenter) SkipBackwardCommand() (cmd MPSkipIntervalCommand)
func (MPRemoteCommandCenter) SkipForwardCommand ¶
func (c MPRemoteCommandCenter) SkipForwardCommand() (cmd MPSkipIntervalCommand)
func (MPRemoteCommandCenter) StopCommand ¶
func (c MPRemoteCommandCenter) StopCommand() (cmd MPRemoteCommand)
func (MPRemoteCommandCenter) TogglePlayPauseCommand ¶
func (c MPRemoteCommandCenter) TogglePlayPauseCommand() (cmd MPRemoteCommand)
type MPRemoteCommandHandlerStatus ¶
const ( MPRemoteCommandHandlerStatusSuccess MPRemoteCommandHandlerStatus = 0 MPRemoteCommandHandlerStatusNoSuchContent MPRemoteCommandHandlerStatus = 100 MPRemoteCommandHandlerStatusNoActionableNowPlayingItem MPRemoteCommandHandlerStatus = 110 MPRemoteCommandHandlerStatusDeviceNotFound MPRemoteCommandHandlerStatus = 120 MPRemoteCommandHandlerStatusCommandFailed MPRemoteCommandHandlerStatus = 200 )
type MPRepeatType ¶
const ( MPRepeatTypeOff MPRepeatType = iota MPRepeatTypeOne MPRepeatTypeAll )
type MPShuffleType ¶
const ( MPShuffleTypeOff MPShuffleType = iota MPShuffleTypeItems MPShuffleTypeCollections )
type MPSkipIntervalCommand ¶
type MPSkipIntervalCommand struct {
MPRemoteCommand
}
func (MPSkipIntervalCommand) PreferredIntervals ¶
func (cmd MPSkipIntervalCommand) PreferredIntervals() objc.ID
func (MPSkipIntervalCommand) SetPreferredIntervals ¶
func (cmd MPSkipIntervalCommand) SetPreferredIntervals(arr core.NSArray)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.