mediaplayer

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package mediaplayer provides purego-based Go bindings for the macOS MediaPlayer framework.

Apple documentation: https://developer.apple.com/documentation/mediaplayer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MPErrorDomain

func MPErrorDomain() uintptr

func MPLanguageOptionCharacteristicContainsOnlyForcedSubtitles

func MPLanguageOptionCharacteristicContainsOnlyForcedSubtitles() uintptr

func MPLanguageOptionCharacteristicDescribesMusicAndSound

func MPLanguageOptionCharacteristicDescribesMusicAndSound() uintptr

func MPLanguageOptionCharacteristicDescribesVideo

func MPLanguageOptionCharacteristicDescribesVideo() uintptr

func MPLanguageOptionCharacteristicDubbedTranslation

func MPLanguageOptionCharacteristicDubbedTranslation() uintptr

func MPLanguageOptionCharacteristicEasyToRead

func MPLanguageOptionCharacteristicEasyToRead() uintptr

func MPLanguageOptionCharacteristicIsAuxiliaryContent

func MPLanguageOptionCharacteristicIsAuxiliaryContent() uintptr

func MPLanguageOptionCharacteristicIsMainProgramContent

func MPLanguageOptionCharacteristicIsMainProgramContent() uintptr

func MPLanguageOptionCharacteristicLanguageTranslation

func MPLanguageOptionCharacteristicLanguageTranslation() uintptr

func MPLanguageOptionCharacteristicTranscribesSpokenDialog

func MPLanguageOptionCharacteristicTranscribesSpokenDialog() uintptr

func MPLanguageOptionCharacteristicVoiceOverTranslation

func MPLanguageOptionCharacteristicVoiceOverTranslation() uintptr

func MPMediaEntityPropertyPersistentID

func MPMediaEntityPropertyPersistentID() uintptr

func MPMediaItemPropertyAlbumArtist

func MPMediaItemPropertyAlbumArtist() uintptr

func MPMediaItemPropertyAlbumArtistPersistentID

func MPMediaItemPropertyAlbumArtistPersistentID() uintptr

func MPMediaItemPropertyAlbumPersistentID

func MPMediaItemPropertyAlbumPersistentID() uintptr

func MPMediaItemPropertyAlbumTitle

func MPMediaItemPropertyAlbumTitle() uintptr

func MPMediaItemPropertyAlbumTrackCount

func MPMediaItemPropertyAlbumTrackCount() uintptr

func MPMediaItemPropertyAlbumTrackNumber

func MPMediaItemPropertyAlbumTrackNumber() uintptr

func MPMediaItemPropertyArtist

func MPMediaItemPropertyArtist() uintptr

func MPMediaItemPropertyArtistPersistentID

func MPMediaItemPropertyArtistPersistentID() uintptr

func MPMediaItemPropertyArtwork

func MPMediaItemPropertyArtwork() uintptr

func MPMediaItemPropertyAssetURL

func MPMediaItemPropertyAssetURL() uintptr

func MPMediaItemPropertyBeatsPerMinute

func MPMediaItemPropertyBeatsPerMinute() uintptr

func MPMediaItemPropertyBookmarkTime

func MPMediaItemPropertyBookmarkTime() uintptr

func MPMediaItemPropertyComments

func MPMediaItemPropertyComments() uintptr

func MPMediaItemPropertyComposer

func MPMediaItemPropertyComposer() uintptr

func MPMediaItemPropertyComposerPersistentID

func MPMediaItemPropertyComposerPersistentID() uintptr

func MPMediaItemPropertyDateAdded

func MPMediaItemPropertyDateAdded() uintptr

func MPMediaItemPropertyDiscCount

func MPMediaItemPropertyDiscCount() uintptr

func MPMediaItemPropertyDiscNumber

func MPMediaItemPropertyDiscNumber() uintptr

func MPMediaItemPropertyGenre

func MPMediaItemPropertyGenre() uintptr

func MPMediaItemPropertyGenrePersistentID

func MPMediaItemPropertyGenrePersistentID() uintptr

func MPMediaItemPropertyHasProtectedAsset

func MPMediaItemPropertyHasProtectedAsset() uintptr

func MPMediaItemPropertyIsCloudItem

func MPMediaItemPropertyIsCloudItem() uintptr

func MPMediaItemPropertyIsCompilation

func MPMediaItemPropertyIsCompilation() uintptr

func MPMediaItemPropertyIsExplicit

func MPMediaItemPropertyIsExplicit() uintptr

func MPMediaItemPropertyIsPreorder

func MPMediaItemPropertyIsPreorder() uintptr

func MPMediaItemPropertyLastPlayedDate

func MPMediaItemPropertyLastPlayedDate() uintptr

func MPMediaItemPropertyLyrics

func MPMediaItemPropertyLyrics() uintptr

func MPMediaItemPropertyMediaType

func MPMediaItemPropertyMediaType() uintptr

func MPMediaItemPropertyPersistentID

func MPMediaItemPropertyPersistentID() uintptr

func MPMediaItemPropertyPlayCount

func MPMediaItemPropertyPlayCount() uintptr

func MPMediaItemPropertyPlaybackDuration

func MPMediaItemPropertyPlaybackDuration() uintptr

func MPMediaItemPropertyPlaybackStoreID

func MPMediaItemPropertyPlaybackStoreID() uintptr

func MPMediaItemPropertyPodcastPersistentID

func MPMediaItemPropertyPodcastPersistentID() uintptr

func MPMediaItemPropertyPodcastTitle

func MPMediaItemPropertyPodcastTitle() uintptr

func MPMediaItemPropertyRating

func MPMediaItemPropertyRating() uintptr

func MPMediaItemPropertyReleaseDate

func MPMediaItemPropertyReleaseDate() uintptr

func MPMediaItemPropertySkipCount

func MPMediaItemPropertySkipCount() uintptr

func MPMediaItemPropertyTitle

func MPMediaItemPropertyTitle() uintptr

func MPMediaItemPropertyUserGrouping

func MPMediaItemPropertyUserGrouping() uintptr

func MPMediaPlaybackIsPreparedToPlayDidChangeNotification

func MPMediaPlaybackIsPreparedToPlayDidChangeNotification() uintptr

func MPMediaPlaylistPropertyAuthorDisplayName

func MPMediaPlaylistPropertyAuthorDisplayName() uintptr

func MPMediaPlaylistPropertyCloudGlobalID

func MPMediaPlaylistPropertyCloudGlobalID() uintptr

func MPMediaPlaylistPropertyDescriptionText

func MPMediaPlaylistPropertyDescriptionText() uintptr

func MPMediaPlaylistPropertyName

func MPMediaPlaylistPropertyName() uintptr

func MPMediaPlaylistPropertyPersistentID

func MPMediaPlaylistPropertyPersistentID() uintptr

func MPMediaPlaylistPropertyPlaylistAttributes

func MPMediaPlaylistPropertyPlaylistAttributes() uintptr

func MPMediaPlaylistPropertySeedItems

func MPMediaPlaylistPropertySeedItems() uintptr

func MPNowPlayingInfoCenterSupportedAnimatedArtworkKeys

func MPNowPlayingInfoCenterSupportedAnimatedArtworkKeys() *foundation.NSArray[*foundation.NSString]

Keys related to animated artwork that are supported by the current platform. If you specify an instance of animated artwork (an `MPMediaItemAnimatedArtwork`) to `nowPlayingInfo` using any key not in this collection it will be ignored.

func MPNowPlayingInfoCollectionIdentifier

func MPNowPlayingInfoCollectionIdentifier() uintptr

func MPNowPlayingInfoProperty1x1AnimatedArtwork

func MPNowPlayingInfoProperty1x1AnimatedArtwork() uintptr

1:1 (square) animated artwork for the current media item.

func MPNowPlayingInfoProperty3x4AnimatedArtwork

func MPNowPlayingInfoProperty3x4AnimatedArtwork() uintptr

3:4 (tall) animated artwork for the current media item.

func MPNowPlayingInfoPropertyAdTimeRanges

func MPNowPlayingInfoPropertyAdTimeRanges() uintptr

func MPNowPlayingInfoPropertyAssetURL

func MPNowPlayingInfoPropertyAssetURL() uintptr

func MPNowPlayingInfoPropertyAvailableLanguageOptions

func MPNowPlayingInfoPropertyAvailableLanguageOptions() uintptr

func MPNowPlayingInfoPropertyChapterCount

func MPNowPlayingInfoPropertyChapterCount() uintptr

func MPNowPlayingInfoPropertyChapterNumber

func MPNowPlayingInfoPropertyChapterNumber() uintptr

func MPNowPlayingInfoPropertyCreditsStartTime

func MPNowPlayingInfoPropertyCreditsStartTime() uintptr

func MPNowPlayingInfoPropertyCurrentLanguageOptions

func MPNowPlayingInfoPropertyCurrentLanguageOptions() uintptr

func MPNowPlayingInfoPropertyCurrentPlaybackDate

func MPNowPlayingInfoPropertyCurrentPlaybackDate() uintptr

func MPNowPlayingInfoPropertyDefaultPlaybackRate

func MPNowPlayingInfoPropertyDefaultPlaybackRate() uintptr

func MPNowPlayingInfoPropertyElapsedPlaybackTime

func MPNowPlayingInfoPropertyElapsedPlaybackTime() uintptr

func MPNowPlayingInfoPropertyExcludeFromSuggestions

func MPNowPlayingInfoPropertyExcludeFromSuggestions() uintptr

func MPNowPlayingInfoPropertyExternalContentIdentifier

func MPNowPlayingInfoPropertyExternalContentIdentifier() uintptr

func MPNowPlayingInfoPropertyExternalUserProfileIdentifier

func MPNowPlayingInfoPropertyExternalUserProfileIdentifier() uintptr

func MPNowPlayingInfoPropertyInternationalStandardRecordingCode

func MPNowPlayingInfoPropertyInternationalStandardRecordingCode() uintptr

func MPNowPlayingInfoPropertyIsLiveStream

func MPNowPlayingInfoPropertyIsLiveStream() uintptr

func MPNowPlayingInfoPropertyMediaType

func MPNowPlayingInfoPropertyMediaType() uintptr

func MPNowPlayingInfoPropertyPlaybackProgress

func MPNowPlayingInfoPropertyPlaybackProgress() uintptr

func MPNowPlayingInfoPropertyPlaybackQueueCount

func MPNowPlayingInfoPropertyPlaybackQueueCount() uintptr

func MPNowPlayingInfoPropertyPlaybackQueueIndex

func MPNowPlayingInfoPropertyPlaybackQueueIndex() uintptr

func MPNowPlayingInfoPropertyPlaybackRate

func MPNowPlayingInfoPropertyPlaybackRate() uintptr

func MPNowPlayingInfoPropertyServiceIdentifier

func MPNowPlayingInfoPropertyServiceIdentifier() uintptr

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type MPChangeLanguageOptionCommandEvent

type MPChangeLanguageOptionCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the language option.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangelanguageoptioncommandevent

func MPChangeLanguageOptionCommandEventFromID

func MPChangeLanguageOptionCommandEventFromID(id objc.ID) *MPChangeLanguageOptionCommandEvent

func (*MPChangeLanguageOptionCommandEvent) LanguageOption

The requested language option to change. The supplied language option may be the Automatic Legible Language Option which would mean that best legible language option based on user preferences is being requested. See MPNowPlayingInfoLanguageOption isAutomaticLegibleLanguageOption

func (*MPChangeLanguageOptionCommandEvent) Setting

Describes the extent of the changed language option

type MPChangeLanguageOptionSetting

type MPChangeLanguageOptionSetting int64

The states that determine when language option changes take effect.

const (
	// No language option change is to be made.
	MPChangeLanguageOptionSettingNone MPChangeLanguageOptionSetting = 0
	// The language option change is applied to the now playing item only.
	MPChangeLanguageOptionSettingNowPlayingItemOnly MPChangeLanguageOptionSetting = 1
	// The language option change is applied to all future playback items.
	MPChangeLanguageOptionSettingPermanent MPChangeLanguageOptionSetting = 2
)

func (MPChangeLanguageOptionSetting) String

type MPChangePlaybackPositionCommand

type MPChangePlaybackPositionCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeplaybackpositioncommand

func MPChangePlaybackPositionCommandFromID

func MPChangePlaybackPositionCommandFromID(id objc.ID) *MPChangePlaybackPositionCommand

type MPChangePlaybackPositionCommandEvent

type MPChangePlaybackPositionCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the playback position.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeplaybackpositioncommandevent

func MPChangePlaybackPositionCommandEventFromID

func MPChangePlaybackPositionCommandEventFromID(id objc.ID) *MPChangePlaybackPositionCommandEvent

func (*MPChangePlaybackPositionCommandEvent) PositionTime

type MPChangePlaybackRateCommand

type MPChangePlaybackRateCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeplaybackratecommand

func MPChangePlaybackRateCommandFromID

func MPChangePlaybackRateCommandFromID(id objc.ID) *MPChangePlaybackRateCommand

func (*MPChangePlaybackRateCommand) SetSupportedPlaybackRates

func (o *MPChangePlaybackRateCommand) SetSupportedPlaybackRates(supportedPlaybackRates *foundation.NSArray[*foundation.NSNumber])

func (*MPChangePlaybackRateCommand) SupportedPlaybackRates

func (o *MPChangePlaybackRateCommand) SupportedPlaybackRates() *foundation.NSArray[*foundation.NSNumber]

type MPChangePlaybackRateCommandEvent

type MPChangePlaybackRateCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the playback rate.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeplaybackratecommandevent

func MPChangePlaybackRateCommandEventFromID

func MPChangePlaybackRateCommandEventFromID(id objc.ID) *MPChangePlaybackRateCommandEvent

func (*MPChangePlaybackRateCommandEvent) PlaybackRate

func (o *MPChangePlaybackRateCommandEvent) PlaybackRate() float32

type MPChangeRepeatModeCommand

type MPChangeRepeatModeCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangerepeatmodecommand

func MPChangeRepeatModeCommandFromID

func MPChangeRepeatModeCommandFromID(id objc.ID) *MPChangeRepeatModeCommand

func (*MPChangeRepeatModeCommand) CurrentRepeatType

func (o *MPChangeRepeatModeCommand) CurrentRepeatType() MPRepeatType

func (*MPChangeRepeatModeCommand) SetCurrentRepeatType

func (o *MPChangeRepeatModeCommand) SetCurrentRepeatType(currentRepeatType MPRepeatType)

type MPChangeRepeatModeCommandEvent

type MPChangeRepeatModeCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the repeat mode.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangerepeatmodecommandevent

func MPChangeRepeatModeCommandEventFromID

func MPChangeRepeatModeCommandEventFromID(id objc.ID) *MPChangeRepeatModeCommandEvent

func (*MPChangeRepeatModeCommandEvent) PreservesRepeatMode

func (o *MPChangeRepeatModeCommandEvent) PreservesRepeatMode() bool

Whether or not the selection should be preserved between playback sessions

func (*MPChangeRepeatModeCommandEvent) RepeatType

The desired repeat type to use when fulfilling the request.

type MPChangeShuffleModeCommand

type MPChangeShuffleModeCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeshufflemodecommand

func MPChangeShuffleModeCommandFromID

func MPChangeShuffleModeCommandFromID(id objc.ID) *MPChangeShuffleModeCommand

func (*MPChangeShuffleModeCommand) CurrentShuffleType

func (o *MPChangeShuffleModeCommand) CurrentShuffleType() MPShuffleType

func (*MPChangeShuffleModeCommand) SetCurrentShuffleType

func (o *MPChangeShuffleModeCommand) SetCurrentShuffleType(currentShuffleType MPShuffleType)

type MPChangeShuffleModeCommandEvent

type MPChangeShuffleModeCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the shuffle mode.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpchangeshufflemodecommandevent

func MPChangeShuffleModeCommandEventFromID

func MPChangeShuffleModeCommandEventFromID(id objc.ID) *MPChangeShuffleModeCommandEvent

func (*MPChangeShuffleModeCommandEvent) PreservesShuffleMode

func (o *MPChangeShuffleModeCommandEvent) PreservesShuffleMode() bool

Whether or not the selection should be preserved between playback sessions

func (*MPChangeShuffleModeCommandEvent) ShuffleType

The desired shuffle type to use when fulfilling the request.

type MPContentItem

type MPContentItem struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpcontentitem

func MPContentItemFromID

func MPContentItemFromID(id objc.ID) *MPContentItem

func (*MPContentItem) Artwork

func (o *MPContentItem) Artwork() *MPMediaItemArtwork

Artwork for this item. Examples of artwork for a content item are the album cover for a song, or a movie poster for a movie.

func (*MPContentItem) Identifier

func (o *MPContentItem) Identifier() *foundation.NSString

A unique identifier for this content item. (Required)

func (*MPContentItem) InitWithIdentifier

func (o *MPContentItem) InitWithIdentifier(identifier *foundation.NSString) *MPContentItem

Sets the identifier for a media item.

func (*MPContentItem) IsContainer

func (o *MPContentItem) IsContainer() bool

Represents whether the content item is a container that may contain other content items, e.g. an album or a playlist.

func (*MPContentItem) IsExplicitContent

func (o *MPContentItem) IsExplicitContent() bool

Represents whether this content item is explicit content

func (*MPContentItem) IsPlayable

func (o *MPContentItem) IsPlayable() bool

Represents whether the content item is actionable from a playback perspective. Albums are playable, for example, because selecting an album for playback means the app should play each song in the album in order. An example of a content item that may not be playable is a genre, since an app experience typically doesn't involve selecting an entire genre for playback.

func (*MPContentItem) IsStreamingContent

func (o *MPContentItem) IsStreamingContent() bool

Represents whether this content item is streaming content, i.e. from the cloud where the content is not stored locally.

func (*MPContentItem) PlaybackProgress

func (o *MPContentItem) PlaybackProgress() float32

Represents the current playback progress of the item. 0.0 = not watched/listened/viewed, 1.0 = fully watched/listened/viewed Default is -1.0 (no progress indicator shown)

func (*MPContentItem) SetArtwork

func (o *MPContentItem) SetArtwork(artwork *MPMediaItemArtwork)

func (*MPContentItem) SetContainer

func (o *MPContentItem) SetContainer(container bool)

func (*MPContentItem) SetExplicitContent

func (o *MPContentItem) SetExplicitContent(explicitContent bool)

func (*MPContentItem) SetPlayable

func (o *MPContentItem) SetPlayable(playable bool)

func (*MPContentItem) SetPlaybackProgress

func (o *MPContentItem) SetPlaybackProgress(playbackProgress float32)

func (*MPContentItem) SetStreamingContent

func (o *MPContentItem) SetStreamingContent(streamingContent bool)

func (*MPContentItem) SetSubtitle

func (o *MPContentItem) SetSubtitle(subtitle *foundation.NSString)

func (*MPContentItem) SetTitle

func (o *MPContentItem) SetTitle(title *foundation.NSString)

func (*MPContentItem) Subtitle

func (o *MPContentItem) Subtitle() *foundation.NSString

A subtitle for this item. If this were representing a song, this would usually be the artist or composer.

func (*MPContentItem) Title

func (o *MPContentItem) Title() *foundation.NSString

A title for this item. Usually this would be the track name, if representing a song, the episode name of a podcast, etc.

type MPErrorCode

type MPErrorCode int64

An enumeration that represents error codes for framework operations.

const (
	MPErrorUnknown                       MPErrorCode = 0
	MPErrorPermissionDenied              MPErrorCode = 1
	MPErrorCloudServiceCapabilityMissing MPErrorCode = 2
	MPErrorNetworkConnectionFailed       MPErrorCode = 3
	MPErrorNotFound                      MPErrorCode = 4
	MPErrorNotSupported                  MPErrorCode = 5
	MPErrorCancelled                     MPErrorCode = 6
	MPErrorRequestTimedOut               MPErrorCode = 7
)

func (MPErrorCode) String

func (e MPErrorCode) String() string

type MPFeedbackCommand

type MPFeedbackCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommand

func MPFeedbackCommandFromID

func MPFeedbackCommandFromID(id objc.ID) *MPFeedbackCommand

func (*MPFeedbackCommand) IsActive

func (o *MPFeedbackCommand) IsActive() bool

Whether the feedback command is in an "active" state. An example of when a feedback command would be active is if the user already "liked" a particular content item.

func (*MPFeedbackCommand) LocalizedShortTitle

func (o *MPFeedbackCommand) LocalizedShortTitle() *foundation.NSString

An optional shorter version of the localized title for this feedback command. MediaPlayer uses this property to display this command's title on remote control interfaces with little screen space.

func (*MPFeedbackCommand) LocalizedTitle

func (o *MPFeedbackCommand) LocalizedTitle() *foundation.NSString

A localized string briefly describing the context of the command.

func (*MPFeedbackCommand) SetActive

func (o *MPFeedbackCommand) SetActive(active bool)

func (*MPFeedbackCommand) SetLocalizedShortTitle

func (o *MPFeedbackCommand) SetLocalizedShortTitle(localizedShortTitle *foundation.NSString)

func (*MPFeedbackCommand) SetLocalizedTitle

func (o *MPFeedbackCommand) SetLocalizedTitle(localizedTitle *foundation.NSString)

type MPFeedbackCommandEvent

type MPFeedbackCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the feedback setting.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpfeedbackcommandevent

func MPFeedbackCommandEventFromID

func MPFeedbackCommandEventFromID(id objc.ID) *MPFeedbackCommandEvent

func (*MPFeedbackCommandEvent) IsNegative

func (o *MPFeedbackCommandEvent) IsNegative() bool

type MPMediaItemAnimatedArtwork

type MPMediaItemAnimatedArtwork struct {
	foundation.NSObject
}

An animated image, such as an animated music album cover art, for a media item.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpmediaitemanimatedartwork

func MPMediaItemAnimatedArtworkFromID

func MPMediaItemAnimatedArtworkFromID(id objc.ID) *MPMediaItemAnimatedArtwork

func (*MPMediaItemAnimatedArtwork) InitWithArtworkIDPreviewImageRequestHandlerVideoAssetFileURLRequestHandler

func (o *MPMediaItemAnimatedArtwork) InitWithArtworkIDPreviewImageRequestHandlerVideoAssetFileURLRequestHandler(artworkID *foundation.NSString, previewImageRequestHandler objc.Block, videoAssetFileURLRequestHandler objc.Block) *MPMediaItemAnimatedArtwork

Creates an animated artwork.

type MPMediaItemArtwork

type MPMediaItemArtwork struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpmediaitemartwork

func MPMediaItemArtworkFromID

func MPMediaItemArtworkFromID(id objc.ID) *MPMediaItemArtwork

func (*MPMediaItemArtwork) Bounds

func (*MPMediaItemArtwork) ImageCropRect

func (o *MPMediaItemArtwork) ImageCropRect() corefoundation.CGRect

func (*MPMediaItemArtwork) ImageWithSize

func (o *MPMediaItemArtwork) ImageWithSize(size corefoundation.CGSize) *appkit.NSImage

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

func (*MPMediaItemArtwork) InitWithBoundsSizeRequestHandler

func (o *MPMediaItemArtwork) InitWithBoundsSizeRequestHandler(boundsSize corefoundation.CGSize, requestHandler objc.Block) *MPMediaItemArtwork

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

type MPMediaType

type MPMediaType uint64

The properties for defining the type for a media item.

const (
	// The media item contains music.
	MPMediaTypeMusic MPMediaType = 1
	// The media item contains a podcast.
	MPMediaTypePodcast MPMediaType = 2
	// The media item contains an audio book.
	MPMediaTypeAudioBook MPMediaType = 4
	// The media item contains an iTunes U audio lesson.
	MPMediaTypeAudioITunesU MPMediaType = 8
	// The media item contains an unspecified type of audio content.
	MPMediaTypeAnyAudio MPMediaType = 255
	// The media item contains a movie.
	MPMediaTypeMovie MPMediaType = 256
	// The media item contains a TV show.
	MPMediaTypeTVShow MPMediaType = 512
	// The media item contains a video podcast.
	MPMediaTypeVideoPodcast MPMediaType = 1024
	// The media item contains a music video.
	MPMediaTypeMusicVideo MPMediaType = 2048
	// The media item contains an iTunes U video.
	MPMediaTypeVideoITunesU MPMediaType = 4096
	// The media item contains a home video.
	MPMediaTypeHomeVideo MPMediaType = 8192
	// The media item contains an unspecified type of video content.
	MPMediaTypeAnyVideo MPMediaType = 65280
	// The media item contains an unspecified type of media content.
	MPMediaTypeAny MPMediaType = 18446744073709551615
)

func (MPMediaType) String

func (e MPMediaType) String() string

type MPNowPlayingInfoCenter

type MPNowPlayingInfoCenter struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfocenter

func MPNowPlayingInfoCenterDefaultCenter

func MPNowPlayingInfoCenterDefaultCenter() *MPNowPlayingInfoCenter

Returns the singleton Now Playing info center.

func MPNowPlayingInfoCenterFromID

func MPNowPlayingInfoCenterFromID(id objc.ID) *MPNowPlayingInfoCenter

func (*MPNowPlayingInfoCenter) NowPlayingInfo

The current now playing info for the center. Setting the info to nil will clear it.

func (*MPNowPlayingInfoCenter) PlaybackState

The current playback state of the app. This only applies on macOS, where playback state cannot be determined by the application's audio session. This property must be set every time the app begins or halts playback, otherwise remote control functionality may not work as expected.

func (*MPNowPlayingInfoCenter) SetNowPlayingInfo

func (o *MPNowPlayingInfoCenter) SetNowPlayingInfo(nowPlayingInfo *foundation.NSDictionary[*foundation.NSString, objc.ID])

func (*MPNowPlayingInfoCenter) SetPlaybackState

func (o *MPNowPlayingInfoCenter) SetPlaybackState(playbackState MPNowPlayingPlaybackState)

type MPNowPlayingInfoLanguageOption

type MPNowPlayingInfoLanguageOption struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption

func MPNowPlayingInfoLanguageOptionFromID

func MPNowPlayingInfoLanguageOptionFromID(id objc.ID) *MPNowPlayingInfoLanguageOption

func (*MPNowPlayingInfoLanguageOption) DisplayName

A user presentable display name for this option.

func (*MPNowPlayingInfoLanguageOption) Identifier

A unique identifier representing this option.

func (*MPNowPlayingInfoLanguageOption) InitWithTypeLanguageTagCharacteristicsDisplayNameIdentifier

func (o *MPNowPlayingInfoLanguageOption) InitWithTypeLanguageTagCharacteristicsDisplayNameIdentifier(languageOptionType MPNowPlayingInfoLanguageOptionType, languageTag *foundation.NSString, languageOptionCharacteristics *foundation.NSArray[*foundation.NSString], displayName *foundation.NSString, identifier *foundation.NSString) *MPNowPlayingInfoLanguageOption

Creates a single language option.

func (*MPNowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption

func (o *MPNowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool

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

func (*MPNowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption

func (o *MPNowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool

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

func (*MPNowPlayingInfoLanguageOption) LanguageOptionCharacteristics

func (o *MPNowPlayingInfoLanguageOption) LanguageOptionCharacteristics() *foundation.NSArray[*foundation.NSString]

Characteristics describing the content of the language options. See the LanguageOptionCharacteristics for the most commonly used values.

func (*MPNowPlayingInfoLanguageOption) LanguageOptionType

The type of language option.

func (*MPNowPlayingInfoLanguageOption) LanguageTag

The IETF BCP 47 language tag. A nil languageTag reprsents that this option should be disabled. A languageTag with the value of MPLangaugeOptionAutoLangaugeTag represents that the best langauge based on the system preferences should be used.

type MPNowPlayingInfoLanguageOptionGroup

type MPNowPlayingInfoLanguageOptionGroup struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoptiongroup

func MPNowPlayingInfoLanguageOptionGroupFromID

func MPNowPlayingInfoLanguageOptionGroupFromID(id objc.ID) *MPNowPlayingInfoLanguageOptionGroup

func (*MPNowPlayingInfoLanguageOptionGroup) AllowEmptySelection

func (o *MPNowPlayingInfoLanguageOptionGroup) AllowEmptySelection() bool

Indicates whether a selection in this group is required at all times.

func (*MPNowPlayingInfoLanguageOptionGroup) DefaultLanguageOption

The default language option, if any, within this group.

func (*MPNowPlayingInfoLanguageOptionGroup) InitWithLanguageOptionsDefaultLanguageOptionAllowEmptySelection

func (o *MPNowPlayingInfoLanguageOptionGroup) InitWithLanguageOptionsDefaultLanguageOptionAllowEmptySelection(languageOptions *foundation.NSArray[*MPNowPlayingInfoLanguageOption], defaultLanguageOption *MPNowPlayingInfoLanguageOption, allowEmptySelection bool) *MPNowPlayingInfoLanguageOptionGroup

Creates a new language option group with the supplied language options.

func (*MPNowPlayingInfoLanguageOptionGroup) LanguageOptions

The available language options within this group.

type MPNowPlayingInfoLanguageOptionType

type MPNowPlayingInfoLanguageOptionType uint64

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

const (
	// Indicates an audible language option is used.
	MPNowPlayingInfoLanguageOptionTypeAudible MPNowPlayingInfoLanguageOptionType = 0
	// Indicates a written language option is used.
	MPNowPlayingInfoLanguageOptionTypeLegible MPNowPlayingInfoLanguageOptionType = 1
)

func (MPNowPlayingInfoLanguageOptionType) String

type MPNowPlayingInfoMediaType

type MPNowPlayingInfoMediaType uint64

The type of media currently playing.

const (
	// There is no now playing media item.
	MPNowPlayingInfoMediaTypeNone MPNowPlayingInfoMediaType = 0
	// The now playing media item is an audio item.
	MPNowPlayingInfoMediaTypeAudio MPNowPlayingInfoMediaType = 1
	// The now playing media item is a video item.
	MPNowPlayingInfoMediaTypeVideo MPNowPlayingInfoMediaType = 2
)

func (MPNowPlayingInfoMediaType) String

func (e MPNowPlayingInfoMediaType) String() string

type MPNowPlayingPlaybackState

type MPNowPlayingPlaybackState uint64

The playback state of the app.

const (
	// The current state of the app is unknown.
	MPNowPlayingPlaybackStateUnknown MPNowPlayingPlaybackState = 0
	// The app is currently playing a media item.
	MPNowPlayingPlaybackStatePlaying MPNowPlayingPlaybackState = 1
	// The app is currently paused.
	MPNowPlayingPlaybackStatePaused MPNowPlayingPlaybackState = 2
	// The app has stopped playing.
	MPNowPlayingPlaybackStateStopped MPNowPlayingPlaybackState = 3
	// The app has been interrupted during playback.
	MPNowPlayingPlaybackStateInterrupted MPNowPlayingPlaybackState = 4
)

func (MPNowPlayingPlaybackState) String

func (e MPNowPlayingPlaybackState) String() string

type MPRatingCommand

type MPRatingCommand struct {
	MPRemoteCommand
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpratingcommand

func MPRatingCommandFromID

func MPRatingCommandFromID(id objc.ID) *MPRatingCommand

func (*MPRatingCommand) MaximumRating

func (o *MPRatingCommand) MaximumRating() float32

Maximum rating for the command.

func (*MPRatingCommand) MinimumRating

func (o *MPRatingCommand) MinimumRating() float32

Minimum rating for the command.

func (*MPRatingCommand) SetMaximumRating

func (o *MPRatingCommand) SetMaximumRating(maximumRating float32)

func (*MPRatingCommand) SetMinimumRating

func (o *MPRatingCommand) SetMinimumRating(minimumRating float32)

type MPRatingCommandEvent

type MPRatingCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the rating.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpratingcommandevent

func MPRatingCommandEventFromID

func MPRatingCommandEventFromID(id objc.ID) *MPRatingCommandEvent

func (*MPRatingCommandEvent) Rating

func (o *MPRatingCommandEvent) Rating() float32

type MPRemoteCommand

type MPRemoteCommand struct {
	foundation.NSObject
}

An object that responds to remote command events.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpremotecommand

func MPRemoteCommandFromID

func MPRemoteCommandFromID(id objc.ID) *MPRemoteCommand

func (*MPRemoteCommand) AddTargetAction

func (o *MPRemoteCommand) AddTargetAction(target objc.ID, action objc.SEL)

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

func (*MPRemoteCommand) AddTargetWithHandler

func (o *MPRemoteCommand) AddTargetWithHandler(handler func(*MPRemoteCommandEvent) MPRemoteCommandHandlerStatus) objc.ID

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

func (*MPRemoteCommand) IsEnabled

func (o *MPRemoteCommand) IsEnabled() bool

Whether a button (for example) should be enabled and tappable for this particular command.

func (*MPRemoteCommand) RemoveTarget

func (o *MPRemoteCommand) RemoveTarget(target objc.ID)

Removes a target from the remote command object.

func (*MPRemoteCommand) RemoveTargetAction

func (o *MPRemoteCommand) RemoveTargetAction(target objc.ID, action objc.SEL)

Removes a target and action from a remote command object.

func (*MPRemoteCommand) SetEnabled

func (o *MPRemoteCommand) SetEnabled(enabled bool)

type MPRemoteCommandCenter

type MPRemoteCommandCenter struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter

func MPRemoteCommandCenterFromID

func MPRemoteCommandCenterFromID(id objc.ID) *MPRemoteCommandCenter

func MPRemoteCommandCenterSharedCommandCenter

func MPRemoteCommandCenterSharedCommandCenter() *MPRemoteCommandCenter

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

func (*MPRemoteCommandCenter) BookmarkCommand

func (o *MPRemoteCommandCenter) BookmarkCommand() *MPFeedbackCommand

func (*MPRemoteCommandCenter) ChangePlaybackPositionCommand

func (o *MPRemoteCommandCenter) ChangePlaybackPositionCommand() *MPChangePlaybackPositionCommand

func (*MPRemoteCommandCenter) ChangePlaybackRateCommand

func (o *MPRemoteCommandCenter) ChangePlaybackRateCommand() *MPChangePlaybackRateCommand

func (*MPRemoteCommandCenter) ChangeRepeatModeCommand

func (o *MPRemoteCommandCenter) ChangeRepeatModeCommand() *MPChangeRepeatModeCommand

func (*MPRemoteCommandCenter) ChangeShuffleModeCommand

func (o *MPRemoteCommandCenter) ChangeShuffleModeCommand() *MPChangeShuffleModeCommand

func (*MPRemoteCommandCenter) DisableLanguageOptionCommand

func (o *MPRemoteCommandCenter) DisableLanguageOptionCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) DislikeCommand

func (o *MPRemoteCommandCenter) DislikeCommand() *MPFeedbackCommand

func (*MPRemoteCommandCenter) EnableLanguageOptionCommand

func (o *MPRemoteCommandCenter) EnableLanguageOptionCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) LikeCommand

func (o *MPRemoteCommandCenter) LikeCommand() *MPFeedbackCommand

func (*MPRemoteCommandCenter) NextTrackCommand

func (o *MPRemoteCommandCenter) NextTrackCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) PauseCommand

func (o *MPRemoteCommandCenter) PauseCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) PlayCommand

func (o *MPRemoteCommandCenter) PlayCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) PreviousTrackCommand

func (o *MPRemoteCommandCenter) PreviousTrackCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) RatingCommand

func (o *MPRemoteCommandCenter) RatingCommand() *MPRatingCommand

func (*MPRemoteCommandCenter) SeekBackwardCommand

func (o *MPRemoteCommandCenter) SeekBackwardCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) SeekForwardCommand

func (o *MPRemoteCommandCenter) SeekForwardCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) SkipBackwardCommand

func (o *MPRemoteCommandCenter) SkipBackwardCommand() *MPSkipIntervalCommand

func (*MPRemoteCommandCenter) SkipForwardCommand

func (o *MPRemoteCommandCenter) SkipForwardCommand() *MPSkipIntervalCommand

func (*MPRemoteCommandCenter) StopCommand

func (o *MPRemoteCommandCenter) StopCommand() *MPRemoteCommand

func (*MPRemoteCommandCenter) TogglePlayPauseCommand

func (o *MPRemoteCommandCenter) TogglePlayPauseCommand() *MPRemoteCommand

type MPRemoteCommandEvent

type MPRemoteCommandEvent struct {
	foundation.NSObject
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpremotecommandevent

func MPRemoteCommandEventFromID

func MPRemoteCommandEventFromID(id objc.ID) *MPRemoteCommandEvent

func (*MPRemoteCommandEvent) Command

func (o *MPRemoteCommandEvent) Command() *MPRemoteCommand

The command that sent the event.

func (*MPRemoteCommandEvent) Timestamp

func (o *MPRemoteCommandEvent) Timestamp() float64

The time when the event occurred.

type MPRemoteCommandHandlerStatus

type MPRemoteCommandHandlerStatus int64

Constants indicating the status of a command.

const (
	// The requested command executed successfully.
	MPRemoteCommandHandlerStatusSuccess MPRemoteCommandHandlerStatus = 0
	// The requested command couldn’t execute because its required content isn’t available.
	MPRemoteCommandHandlerStatusNoSuchContent MPRemoteCommandHandlerStatus = 100
	// The requested command couldn’t execute because no Now Playing item is available.
	MPRemoteCommandHandlerStatusNoActionableNowPlayingItem MPRemoteCommandHandlerStatus = 110
	// The requested command couldn’t execute because a required device isn’t available.
	MPRemoteCommandHandlerStatusDeviceNotFound MPRemoteCommandHandlerStatus = 120
	// The requested command failed to execute.
	MPRemoteCommandHandlerStatusCommandFailed MPRemoteCommandHandlerStatus = 200
)

func (MPRemoteCommandHandlerStatus) String

type MPRepeatType

type MPRepeatType int64

Indicates which items to play repeatedly.

const (
	// Nothing is repeated during playback.
	MPRepeatTypeOff MPRepeatType = 0
	// A single item is repeated indefinitely.
	MPRepeatTypeOne MPRepeatType = 1
	// The current container or playlist is repeated indefinitely.
	MPRepeatTypeAll MPRepeatType = 2
)

func (MPRepeatType) String

func (e MPRepeatType) String() string

type MPSeekCommandEvent

type MPSeekCommandEvent struct {
	MPRemoteCommandEvent
}

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

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpseekcommandevent

func MPSeekCommandEventFromID

func MPSeekCommandEventFromID(id objc.ID) *MPSeekCommandEvent

func (*MPSeekCommandEvent) Type

type MPSeekCommandEventType

type MPSeekCommandEventType uint64

Defines the beginning and ending of seek events.

const (
	// Indicates the external media player began seeking.
	MPSeekCommandEventTypeBeginSeeking MPSeekCommandEventType = 0
	// Indicates the external media player stopped seeking.
	MPSeekCommandEventTypeEndSeeking MPSeekCommandEventType = 1
)

func (MPSeekCommandEventType) String

func (e MPSeekCommandEventType) String() string

type MPShuffleType

type MPShuffleType int64

Indicates which item types to shuffle.

const (
	// Nothing is shuffled during playback.
	MPShuffleTypeOff MPShuffleType = 0
	// Individual items are shuffled during playback.
	MPShuffleTypeItems MPShuffleType = 1
	// Collections of items are shuffled during playback.
	MPShuffleTypeCollections MPShuffleType = 2
)

func (MPShuffleType) String

func (e MPShuffleType) String() string

type MPSkipIntervalCommand

type MPSkipIntervalCommand struct {
	MPRemoteCommand
}

An object that defines the skip intervals for the player.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpskipintervalcommand

func MPSkipIntervalCommandFromID

func MPSkipIntervalCommandFromID(id objc.ID) *MPSkipIntervalCommand

func (*MPSkipIntervalCommand) PreferredIntervals

func (o *MPSkipIntervalCommand) PreferredIntervals() *foundation.NSArray[*foundation.NSNumber]

func (*MPSkipIntervalCommand) SetPreferredIntervals

func (o *MPSkipIntervalCommand) SetPreferredIntervals(preferredIntervals *foundation.NSArray[*foundation.NSNumber])

type MPSkipIntervalCommandEvent

type MPSkipIntervalCommandEvent struct {
	MPRemoteCommandEvent
}

An event requesting a change in the current skip interval.

Apple documentation: https://developer.apple.com/documentation/mediaplayer/mpskipintervalcommandevent

func MPSkipIntervalCommandEventFromID

func MPSkipIntervalCommandEventFromID(id objc.ID) *MPSkipIntervalCommandEvent

func (*MPSkipIntervalCommandEvent) Interval

func (o *MPSkipIntervalCommandEvent) Interval() float64

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

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