mediaplayer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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
}

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
const (
	MPChangeLanguageOptionSettingNone               MPChangeLanguageOptionSetting = 0
	MPChangeLanguageOptionSettingNowPlayingItemOnly MPChangeLanguageOptionSetting = 1
	MPChangeLanguageOptionSettingPermanent          MPChangeLanguageOptionSetting = 2
)

func (MPChangeLanguageOptionSetting) String

type MPChangePlaybackPositionCommandEvent

type MPChangePlaybackPositionCommandEvent struct {
	MPRemoteCommandEvent
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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

Designated initializer. A unique identifier is required to identify the item for later use.

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
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
}

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
}

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
}

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. - Parameters: - artworkID: A unique identifier for this animated artwork. This identifier should encapsulate the identity of both the preview frame and video asset. If you change either, you should provide an “MPMediaItemAnimatedArtwork“ with an updated `artworkID`. - previewImageRequestHandler: A handler to return a preview image for this artwork, for the requested `CGSize` in pixels. Once requested, you should pass the preview image to the provided completion handler, or you can pass `nil` if the preview image cannot be resolved for any reason. You can call the completion handler on an arbitrary queue, however it must only be called once. The `NSImage` you provide should ideally have a size equal to the requested `CGSize`, however an image of the same aspect ratio is acceptable. Images that diverge significantly from the requested aspect ratio may be rejected by the system. Aim to provide preview images quickly and ideally synchronously, and if possible you should preload these images in order to reduce perceived latency when displaying animated artwork to the user. - videoAssetFileURLRequestHandler: A handler to return a file `URL` for the artwork video asset for this artwork, for the requested `CGSize` in pixels. Once requested, you should pass the `URL` to the provided completion handler, or you can pass `nil` if the artwork video asset cannot be resolved for any reason. You can call the completion handler on an arbitrary queue, however it must only be called once. The `URL` you provide must reference a local asset, ideally with a size equal to the requested `CGSize`, however an asset with the same aspect ratio is acceptable. Assets that diverge significantly from the requested aspect ratio may be rejected by the system. The video assets you provide should loop cleanly, and should be available relatively quickly from this handler (particularly when re-fetched). It’s advised that assets are cached for subsequent fetches.

type MPMediaItemArtwork

type MPMediaItemArtwork struct {
	foundation.NSObject
}

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

func (*MPMediaItemArtwork) InitWithBoundsSizeRequestHandler

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

type MPMediaType

type MPMediaType uint64
const (
	MPMediaTypeMusic        MPMediaType = 1
	MPMediaTypePodcast      MPMediaType = 2
	MPMediaTypeAudioBook    MPMediaType = 4
	MPMediaTypeAudioITunesU MPMediaType = 8
	MPMediaTypeAnyAudio     MPMediaType = 255
	MPMediaTypeMovie        MPMediaType = 256
	MPMediaTypeTVShow       MPMediaType = 512
	MPMediaTypeVideoPodcast MPMediaType = 1024
	MPMediaTypeMusicVideo   MPMediaType = 2048
	MPMediaTypeVideoITunesU MPMediaType = 4096
	MPMediaTypeHomeVideo    MPMediaType = 8192
	MPMediaTypeAnyVideo     MPMediaType = 65280
	MPMediaTypeAny          MPMediaType = 18446744073709551615
)

func (MPMediaType) String

func (e MPMediaType) String() string

type MPNowPlayingInfoCenter

type MPNowPlayingInfoCenter struct {
	foundation.NSObject
}

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

func MPNowPlayingInfoCenterDefaultCenter

func MPNowPlayingInfoCenterDefaultCenter() *MPNowPlayingInfoCenter

Returns the default now playing info center. The default center holds now playing info about the current application.

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
}

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

func (*MPNowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption

func (o *MPNowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool

Represents a special case that is used to represent the best audible language option based on system preferences. See AVPlayerItem-selectMediaOptionAutomaticallyInMediaSelectionGroup

func (*MPNowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption

func (o *MPNowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool

Represents a special case that is used to represent the best legible language option based on system preferences. See AVPlayerItem-selectMediaOptionAutomaticallyInMediaSelectionGroup

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
}

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

func (*MPNowPlayingInfoLanguageOptionGroup) LanguageOptions

The available language options within this group.

type MPNowPlayingInfoLanguageOptionType

type MPNowPlayingInfoLanguageOptionType uint64
const (
	MPNowPlayingInfoLanguageOptionTypeAudible MPNowPlayingInfoLanguageOptionType = 0
	MPNowPlayingInfoLanguageOptionTypeLegible MPNowPlayingInfoLanguageOptionType = 1
)

func (MPNowPlayingInfoLanguageOptionType) String

type MPNowPlayingInfoMediaType

type MPNowPlayingInfoMediaType uint64
const (
	MPNowPlayingInfoMediaTypeNone  MPNowPlayingInfoMediaType = 0
	MPNowPlayingInfoMediaTypeAudio MPNowPlayingInfoMediaType = 1
	MPNowPlayingInfoMediaTypeVideo MPNowPlayingInfoMediaType = 2
)

func (MPNowPlayingInfoMediaType) String

func (e MPNowPlayingInfoMediaType) String() string

type MPNowPlayingPlaybackState

type MPNowPlayingPlaybackState uint64
const (
	MPNowPlayingPlaybackStateUnknown     MPNowPlayingPlaybackState = 0
	MPNowPlayingPlaybackStatePlaying     MPNowPlayingPlaybackState = 1
	MPNowPlayingPlaybackStatePaused      MPNowPlayingPlaybackState = 2
	MPNowPlayingPlaybackStateStopped     MPNowPlayingPlaybackState = 3
	MPNowPlayingPlaybackStateInterrupted MPNowPlayingPlaybackState = 4
)

func (MPNowPlayingPlaybackState) String

func (e MPNowPlayingPlaybackState) String() string

type MPRatingCommand

type MPRatingCommand struct {
	MPRemoteCommand
}

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
}

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
}

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)

func (*MPRemoteCommand) AddTargetWithHandler

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

Returns an opaque object to act as the target.

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)

func (*MPRemoteCommand) RemoveTargetAction

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

func (*MPRemoteCommand) SetEnabled

func (o *MPRemoteCommand) SetEnabled(enabled bool)

type MPRemoteCommandCenter

type MPRemoteCommandCenter struct {
	foundation.NSObject
}

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

func MPRemoteCommandCenterFromID

func MPRemoteCommandCenterFromID(id objc.ID) *MPRemoteCommandCenter

func MPRemoteCommandCenterSharedCommandCenter

func MPRemoteCommandCenterSharedCommandCenter() *MPRemoteCommandCenter

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
}

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
const (
	// There was no error executing the requested command.
	MPRemoteCommandHandlerStatusSuccess MPRemoteCommandHandlerStatus = 0
	// The command could not be executed because the requested content does not exist in the current application state.
	MPRemoteCommandHandlerStatusNoSuchContent MPRemoteCommandHandlerStatus = 100
	// The command could not be executed because there is no now playing item available that is required for this command. As an example, an application would return this error code if an "enable language option" command is received, but nothing is currently playing.
	MPRemoteCommandHandlerStatusNoActionableNowPlayingItem MPRemoteCommandHandlerStatus = 110
	// The command could not be executed because a device required is not available. For instance, if headphones are required, or if a watch app realizes that it needs the companion to fulfull a request.
	MPRemoteCommandHandlerStatusDeviceNotFound MPRemoteCommandHandlerStatus = 120
	// The command could not be executed for another reason.
	MPRemoteCommandHandlerStatusCommandFailed MPRemoteCommandHandlerStatus = 200
)

func (MPRemoteCommandHandlerStatus) String

type MPRepeatType

type MPRepeatType int64
const (
	MPRepeatTypeOff MPRepeatType = 0
	MPRepeatTypeOne MPRepeatType = 1
	MPRepeatTypeAll MPRepeatType = 2
)

func (MPRepeatType) String

func (e MPRepeatType) String() string

type MPSeekCommandEvent

type MPSeekCommandEvent struct {
	MPRemoteCommandEvent
}

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
const (
	MPSeekCommandEventTypeBeginSeeking MPSeekCommandEventType = 0
	MPSeekCommandEventTypeEndSeeking   MPSeekCommandEventType = 1
)

func (MPSeekCommandEventType) String

func (e MPSeekCommandEventType) String() string

type MPShuffleType

type MPShuffleType int64
const (
	MPShuffleTypeOff         MPShuffleType = 0
	MPShuffleTypeItems       MPShuffleType = 1
	MPShuffleTypeCollections MPShuffleType = 2
)

func (MPShuffleType) String

func (e MPShuffleType) String() string

type MPSkipIntervalCommand

type MPSkipIntervalCommand struct {
	MPRemoteCommand
}

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
}

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