Documentation
¶
Overview ¶
Package avkit provides a fluent Go API over the macOS AVKit framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Main-thread requirements ¶
Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.
Delegates ¶
A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.
Index ¶
- func IsPictureInPictureSupported() bool
- func PictureInPictureButtonStartImage() obj.Object
- func PictureInPictureButtonStopImage() obj.Object
- type AVLegibleMediaOptionsMenuState
- type CGLCPContextPriorityRequest
- type CaptureView
- func (cv *CaptureView) ControlsStyle() CaptureViewControlsStyle
- func (cv *CaptureView) Description() string
- func (cv *CaptureView) FileOutput() obj.Object
- func (cv *CaptureView) IsEqual(other obj.Object) bool
- func (cv *CaptureView) IsKind(className string) bool
- func (cv *CaptureView) Session() obj.Object
- func (cv *CaptureView) SetSessionShowVideoPreviewShowAudioPreview(session obj.Object, showVideoPreview bool, showAudioPreview bool)
- func (cv *CaptureView) String() string
- func (cv *CaptureView) VideoGravity() *foundation.String
- func (cv *CaptureView) WithControlsStyle(controlsStyle CaptureViewControlsStyle) *CaptureView
- func (cv *CaptureView) WithDelegate(delegate CaptureViewDelegate) *CaptureView
- func (cv *CaptureView) WithVideoGravity(videoGravity obj.Object) *CaptureView
- type CaptureViewControlsStyle
- type CaptureViewDelegate
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type DisplayDynamicRange
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type LegibleMediaOptionsMenuContents
- type LegibleMediaOptionsMenuController
- func (lmomc *LegibleMediaOptionsMenuController) Description() string
- func (lmomc *LegibleMediaOptionsMenuController) IsEqual(other obj.Object) bool
- func (lmomc *LegibleMediaOptionsMenuController) IsKind(className string) bool
- func (lmomc *LegibleMediaOptionsMenuController) MenuState() AVLegibleMediaOptionsMenuState
- func (lmomc *LegibleMediaOptionsMenuController) MenuWithContents(contents LegibleMediaOptionsMenuContents) obj.Object
- func (lmomc *LegibleMediaOptionsMenuController) Player() obj.Object
- func (lmomc *LegibleMediaOptionsMenuController) String() string
- func (lmomc *LegibleMediaOptionsMenuController) WithDelegate(delegate LegibleMediaOptionsMenuControllerDelegate) *LegibleMediaOptionsMenuController
- func (lmomc *LegibleMediaOptionsMenuController) WithPlayer(player obj.Object) *LegibleMediaOptionsMenuController
- type LegibleMediaOptionsMenuControllerDelegate
- type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestCaptionPreviewForProfileIDHandler
- type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestStoppingSubtitleCaptionPreviewHandler
- type LegibleMediaOptionsMenuStateChangeReason
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MediaOptionsControllerDelegate
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type Perm
- type PictureInPictureController
- func NewPictureInPictureControllerWithContentSource(contentSource *PictureInPictureControllerContentSource) *PictureInPictureController
- func NewPictureInPictureControllerWithPlayerLayer(playerLayer obj.Object) *PictureInPictureController
- func PictureInPictureControllerFromID(id objc.ID) *PictureInPictureController
- func (pipc *PictureInPictureController) ContentSource() *PictureInPictureControllerContentSource
- func (pipc *PictureInPictureController) Description() string
- func (pipc *PictureInPictureController) InvalidatePlaybackState()
- func (pipc *PictureInPictureController) IsEqual(other obj.Object) bool
- func (pipc *PictureInPictureController) IsKind(className string) bool
- func (pipc *PictureInPictureController) IsPictureInPictureActive() bool
- func (pipc *PictureInPictureController) IsPictureInPicturePossible() bool
- func (pipc *PictureInPictureController) IsPictureInPictureSuspended() bool
- func (pipc *PictureInPictureController) PlayerLayer() obj.Object
- func (pipc *PictureInPictureController) RequiresLinearPlayback() bool
- func (pipc *PictureInPictureController) StartPictureInPicture()
- func (pipc *PictureInPictureController) StopPictureInPicture()
- func (pipc *PictureInPictureController) String() string
- func (pipc *PictureInPictureController) WithContentSource(contentSource *PictureInPictureControllerContentSource) *PictureInPictureController
- func (pipc *PictureInPictureController) WithDelegate(delegate PictureInPictureControllerDelegate) *PictureInPictureController
- func (pipc *PictureInPictureController) WithRequiresLinearPlayback(requiresLinearPlayback bool) *PictureInPictureController
- type PictureInPictureControllerContentSource
- func (pipccs *PictureInPictureControllerContentSource) Description() string
- func (pipccs *PictureInPictureControllerContentSource) IsEqual(other obj.Object) bool
- func (pipccs *PictureInPictureControllerContentSource) IsKind(className string) bool
- func (pipccs *PictureInPictureControllerContentSource) PlayerLayer() obj.Object
- func (pipccs *PictureInPictureControllerContentSource) SampleBufferDisplayLayer() obj.Object
- func (pipccs *PictureInPictureControllerContentSource) String() string
- type PictureInPictureControllerDelegate
- type PictureInPictureControllerDelegatePictureInPictureControllerDidStartPictureInPictureHandler
- type PictureInPictureControllerDelegatePictureInPictureControllerDidStopPictureInPictureHandler
- type PictureInPictureControllerDelegatePictureInPictureControllerFailedToStartPictureInPictureWithErrorHandler
- type PictureInPictureControllerDelegatePictureInPictureControllerWillStartPictureInPictureHandler
- type PictureInPictureControllerDelegatePictureInPictureControllerWillStopPictureInPictureHandler
- type PictureInPictureSampleBufferPlaybackDelegate
- type PlaybackSpeed
- func (ps *PlaybackSpeed) Description() string
- func (ps *PlaybackSpeed) IsEqual(other obj.Object) bool
- func (ps *PlaybackSpeed) IsKind(className string) bool
- func (ps *PlaybackSpeed) LocalizedName() string
- func (ps *PlaybackSpeed) LocalizedNumericName() string
- func (ps *PlaybackSpeed) Rate() float32
- func (ps *PlaybackSpeed) String() string
- type PlayerView
- func (pv *PlayerView) ActionPopUpButtonMenu() obj.Object
- func (pv *PlayerView) AllowsMagnification() bool
- func (pv *PlayerView) AllowsPictureInPicturePlayback() bool
- func (pv *PlayerView) AllowsVideoFrameAnalysis() bool
- func (pv *PlayerView) BeginTrimmingWithCompletionHandler(handler func(PlayerViewTrimResult))
- func (pv *PlayerView) CanBeginTrimming() bool
- func (pv *PlayerView) ContentOverlayView() obj.Object
- func (pv *PlayerView) ControlsStyle() PlayerViewControlsStyle
- func (pv *PlayerView) Description() string
- func (pv *PlayerView) FlashChapterNumberChapterTitle(chapterNumber int, chapterTitle string)
- func (pv *PlayerView) IsEqual(other obj.Object) bool
- func (pv *PlayerView) IsKind(className string) bool
- func (pv *PlayerView) IsReadyForDisplay() bool
- func (pv *PlayerView) Magnification() float64
- func (pv *PlayerView) Player() obj.Object
- func (pv *PlayerView) PreferredDisplayDynamicRange() DisplayDynamicRange
- func (pv *PlayerView) SelectSpeed(speed *PlaybackSpeed)
- func (pv *PlayerView) SelectedSpeed() *PlaybackSpeed
- func (pv *PlayerView) SetMagnificationCenteredAtPoint(magnification float64, point corefoundation.CGPoint)
- func (pv *PlayerView) ShowsFrameSteppingButtons() bool
- func (pv *PlayerView) ShowsFullScreenToggleButton() bool
- func (pv *PlayerView) ShowsSharingServiceButton() bool
- func (pv *PlayerView) ShowsTimecodes() bool
- func (pv *PlayerView) Speeds() []*PlaybackSpeed
- func (pv *PlayerView) String() string
- func (pv *PlayerView) UpdatesNowPlayingInfoCenter() bool
- func (pv *PlayerView) VideoBounds() corefoundation.CGRect
- func (pv *PlayerView) VideoFrameAnalysisTypes() VideoFrameAnalysisType
- func (pv *PlayerView) VideoGravity() *foundation.String
- func (pv *PlayerView) WithActionPopUpButtonMenu(actionPopUpButtonMenu obj.Object) *PlayerView
- func (pv *PlayerView) WithAllowsMagnification(allowsMagnification bool) *PlayerView
- func (pv *PlayerView) WithAllowsPictureInPicturePlayback(allowsPictureInPicturePlayback bool) *PlayerView
- func (pv *PlayerView) WithAllowsVideoFrameAnalysis(allowsVideoFrameAnalysis bool) *PlayerView
- func (pv *PlayerView) WithControlsStyle(controlsStyle PlayerViewControlsStyle) *PlayerView
- func (pv *PlayerView) WithDelegate(delegate PlayerViewDelegate) *PlayerView
- func (pv *PlayerView) WithMagnification(magnification float64) *PlayerView
- func (pv *PlayerView) WithPictureInPictureDelegate(pictureInPictureDelegate PlayerViewPictureInPictureDelegate) *PlayerView
- func (pv *PlayerView) WithPlayer(player obj.Object) *PlayerView
- func (pv *PlayerView) WithPreferredDisplayDynamicRange(preferredDisplayDynamicRange DisplayDynamicRange) *PlayerView
- func (pv *PlayerView) WithShowsFrameSteppingButtons(showsFrameSteppingButtons bool) *PlayerView
- func (pv *PlayerView) WithShowsFullScreenToggleButton(showsFullScreenToggleButton bool) *PlayerView
- func (pv *PlayerView) WithShowsSharingServiceButton(showsSharingServiceButton bool) *PlayerView
- func (pv *PlayerView) WithShowsTimecodes(showsTimecodes bool) *PlayerView
- func (pv *PlayerView) WithSpeeds(items ...*PlaybackSpeed) *PlayerView
- func (pv *PlayerView) WithUpdatesNowPlayingInfoCenter(updatesNowPlayingInfoCenter bool) *PlayerView
- func (pv *PlayerView) WithVideoFrameAnalysisTypes(videoFrameAnalysisTypes VideoFrameAnalysisType) *PlayerView
- func (pv *PlayerView) WithVideoGravity(videoGravity obj.Object) *PlayerView
- type PlayerViewControlsStyle
- type PlayerViewDelegate
- type PlayerViewDelegatePlayerViewDidEnterFullScreenHandler
- type PlayerViewDelegatePlayerViewDidExitFullScreenHandler
- type PlayerViewDelegatePlayerViewWillEnterFullScreenHandler
- type PlayerViewDelegatePlayerViewWillExitFullScreenHandler
- type PlayerViewPictureInPictureDelegate
- type PlayerViewPictureInPictureDelegatePlayerViewDidStartPictureInPictureHandler
- type PlayerViewPictureInPictureDelegatePlayerViewDidStopPictureInPictureHandler
- type PlayerViewPictureInPictureDelegatePlayerViewFailedToStartPictureInPictureWithErrorHandler
- type PlayerViewPictureInPictureDelegatePlayerViewShouldAutomaticallyDismissAtPictureInPictureStartHandler
- type PlayerViewPictureInPictureDelegatePlayerViewWillStartPictureInPictureHandler
- type PlayerViewPictureInPictureDelegatePlayerViewWillStopPictureInPictureHandler
- type PlayerViewTrimResult
- type PtrauthKey
- type QosClass
- type RoutePickerView
- func (rpv *RoutePickerView) Description() string
- func (rpv *RoutePickerView) IsEqual(other obj.Object) bool
- func (rpv *RoutePickerView) IsKind(className string) bool
- func (rpv *RoutePickerView) IsRoutePickerButtonBordered() bool
- func (rpv *RoutePickerView) Player() obj.Object
- func (rpv *RoutePickerView) RoutePickerButtonColorForState(state RoutePickerViewButtonState) obj.Object
- func (rpv *RoutePickerView) SetRoutePickerButtonColorForState(color obj.Object, state RoutePickerViewButtonState)
- func (rpv *RoutePickerView) String() string
- func (rpv *RoutePickerView) WithDelegate(delegate RoutePickerViewDelegate) *RoutePickerView
- func (rpv *RoutePickerView) WithPlayer(player obj.Object) *RoutePickerView
- func (rpv *RoutePickerView) WithRoutePickerButtonBordered(routePickerButtonBordered bool) *RoutePickerView
- type RoutePickerViewButtonState
- type RoutePickerViewDelegate
- type RoutePickerViewDelegateRoutePickerViewDidEndPresentingRoutesHandler
- type RoutePickerViewDelegateRoutePickerViewWillBeginPresentingRoutesHandler
- type Tag
- type Type
- type VideoFrameAnalysisType
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPictureInPictureSupported ¶ added in v0.17.0
func IsPictureInPictureSupported() bool
IsPictureInPictureSupported reports whether returns a Boolean value that indicates whether the current device supports Picture in Picture.
func PictureInPictureButtonStartImage ¶ added in v0.17.0
PictureInPictureButtonStartImage returns system default Picture in Picture start template image for use in client's Picture in Picture button.
func PictureInPictureButtonStopImage ¶ added in v0.17.0
PictureInPictureButtonStopImage returns system default Picture in Picture stop template image for use in client's Picture in Picture button.
Types ¶
type AVLegibleMediaOptionsMenuState ¶
type AVLegibleMediaOptionsMenuState struct {
Enabled bool
Reason LegibleMediaOptionsMenuStateChangeReason
}
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int32
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.
type CaptureView ¶ added in v0.17.0
CaptureView is an idiomatic wrapper over the Objective-C class AVCaptureView.
A view that displays standard user interface controls for capturing media data.
func CaptureViewFromID ¶ added in v0.17.0
func CaptureViewFromID(id objc.ID) *CaptureView
CaptureViewFromID adopts an existing Objective-C object as a CaptureView (nil for 0), retaining it and registering a release finalizer.
func NewCaptureView ¶ added in v0.17.0
func NewCaptureView() *CaptureView
NewCaptureView creates a new CaptureView.
func (*CaptureView) ControlsStyle ¶ added in v0.17.0
func (cv *CaptureView) ControlsStyle() CaptureViewControlsStyle
ControlsStyle returns the style of the capture controls pane associated with the view.
func (*CaptureView) Description ¶ added in v0.17.0
func (cv *CaptureView) Description() string
Description returns the object's -description text.
func (*CaptureView) FileOutput ¶ added in v0.17.0
func (cv *CaptureView) FileOutput() obj.Object
FileOutput returns a capture file output used to record media data. The value of this property is the first instance of AVCaptureFileOutput contained in the session's outputs array or nil if no such instance is found. In the latter case the capture view's start recording button will be disabled. However, the controls for choosing input sources may still be enabled.
func (*CaptureView) IsEqual ¶ added in v0.17.0
func (cv *CaptureView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CaptureView) IsKind ¶ added in v0.17.0
func (cv *CaptureView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CaptureView) Session ¶ added in v0.17.0
func (cv *CaptureView) Session() obj.Object
Session returns a capture session represented by this view. Modifying the capture session will impact its visual representation in the view. The default value is a session configured for movie file recordings of audio and video media data. Use -setSession:showVideoPreview:showAudioPreview: to change the value of this property.
func (*CaptureView) SetSessionShowVideoPreviewShowAudioPreview ¶ added in v0.17.0
func (cv *CaptureView) SetSessionShowVideoPreviewShowAudioPreview(session obj.Object, showVideoPreview bool, showAudioPreview bool)
SetSessionShowVideoPreviewShowAudioPreview sets the view’s capture session.
func (*CaptureView) String ¶ added in v0.17.0
func (cv *CaptureView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*CaptureView) VideoGravity ¶ added in v0.17.0
func (cv *CaptureView) VideoGravity() *foundation.String
VideoGravity returns a string defining how the video is displayed within the views bounds rect. Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default.
func (*CaptureView) WithControlsStyle ¶ added in v0.17.0
func (cv *CaptureView) WithControlsStyle(controlsStyle CaptureViewControlsStyle) *CaptureView
WithControlsStyle sets the style of the capture controls presented by the view.
func (*CaptureView) WithDelegate ¶ added in v0.17.0
func (cv *CaptureView) WithDelegate(delegate CaptureViewDelegate) *CaptureView
WithDelegate sets the capture view’s delegate object.
func (*CaptureView) WithVideoGravity ¶ added in v0.17.0
func (cv *CaptureView) WithVideoGravity(videoGravity obj.Object) *CaptureView
WithVideoGravity sets a string value that defines how the capture view displays video within its bounds.
type CaptureViewControlsStyle ¶ added in v0.17.0
type CaptureViewControlsStyle int64
Constants that describe the capture view’s supported controls styles.
const ( // The view’s inline controls style. CaptureViewControlsStyleInline CaptureViewControlsStyle = 0 // The view’s floating controls style, which matches the user interface of QuickTime Player. CaptureViewControlsStyleFloating CaptureViewControlsStyle = 1 // The view’s inline device selection style. CaptureViewControlsStyleInlineDeviceSelection CaptureViewControlsStyle = 2 // The view’s default controls style. CaptureViewControlsStyleDefault CaptureViewControlsStyle = 0 )
func (CaptureViewControlsStyle) String ¶ added in v0.17.0
func (e CaptureViewControlsStyle) String() string
String returns the CaptureViewControlsStyle constant's name, or its numeric form when the value is not a known constant.
type CaptureViewDelegate ¶ added in v0.17.0
type CaptureViewDelegate interface {
// CaptureViewStartRecordingToFileOutput informs the delegate that a new media recording should be started. If captureFileOutput is an instance of AVCaptureMovieFileOutput this can be achieved by calling startRecordingToOutputFileURL:recordingDelegate: on the captureFileOutput.
CaptureViewStartRecordingToFileOutput(captureView *CaptureView, fileOutput obj.Object)
}
CaptureViewDelegate receives the callbacks of the Objective-C protocol AVCaptureViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (CaptureViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type DisplayDynamicRange ¶ added in v0.17.0
type DisplayDynamicRange int64
Describes how High Dynamic Range (HDR) video content renders.
const ( // Defines an automatic dynamic range. Indicates that the dynamic range will be set automatically. DisplayDynamicRangeAutomatic DisplayDynamicRange = 0 // Defines a standard dynamic range. Restricts the video content dynamic range to the standard range regardless of the actual range of the video content. DisplayDynamicRangeStandard DisplayDynamicRange = 1 // Defines a constrained high dynamic range. Allows for constrained High Dynamic Range (HDR) video content which is useful for mixing HDR and Standard Dynamic Range (SDR) content. DisplayDynamicRangeConstrainedHigh DisplayDynamicRange = 2 // Defines a high dynamic range. Allows video content to use extended dynamic range if it has dynamic range content. DisplayDynamicRangeHigh DisplayDynamicRange = 3 )
func (DisplayDynamicRange) String ¶ added in v0.17.0
func (e DisplayDynamicRange) String() string
String returns the DisplayDynamicRange constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type LegibleMediaOptionsMenuContents ¶ added in v0.17.0
type LegibleMediaOptionsMenuContents int64
Bitmask — values may be combined with |.
const ( LegibleMediaOptionsMenuContentsLegible LegibleMediaOptionsMenuContents = 1 LegibleMediaOptionsMenuContentsCaptionAppearance LegibleMediaOptionsMenuContents = 2 LegibleMediaOptionsMenuContentsAll LegibleMediaOptionsMenuContents = 3 )
func (LegibleMediaOptionsMenuContents) String ¶ added in v0.17.0
func (e LegibleMediaOptionsMenuContents) String() string
String returns the LegibleMediaOptionsMenuContents constant's name, or its numeric form when the value is not a known constant.
type LegibleMediaOptionsMenuController ¶ added in v0.17.0
LegibleMediaOptionsMenuController is an idiomatic wrapper over the Objective-C class AVLegibleMediaOptionsMenuController.
func LegibleMediaOptionsMenuControllerFromID ¶ added in v0.17.0
func LegibleMediaOptionsMenuControllerFromID(id objc.ID) *LegibleMediaOptionsMenuController
LegibleMediaOptionsMenuControllerFromID adopts an existing Objective-C object as a LegibleMediaOptionsMenuController (nil for 0), retaining it and registering a release finalizer.
func NewLegibleMediaOptionsMenuControllerWithPlayer ¶ added in v0.17.0
func NewLegibleMediaOptionsMenuControllerWithPlayer(player obj.Object) *LegibleMediaOptionsMenuController
NewLegibleMediaOptionsMenuControllerWithPlayer creates an AVLegibleMediaOptionsMenuController with an optional player When player is non-nil, both media tracks and caption appearance options will be included, otherwise, only caption appearance options.
func (*LegibleMediaOptionsMenuController) Description ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) Description() string
Description returns the object's -description text.
func (*LegibleMediaOptionsMenuController) IsEqual ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*LegibleMediaOptionsMenuController) IsKind ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*LegibleMediaOptionsMenuController) MenuState ¶ added in v0.18.1
func (lmomc *LegibleMediaOptionsMenuController) MenuState() AVLegibleMediaOptionsMenuState
MenuState returns the current of the legible media options menu. Use this to check the legible options menu state.
func (*LegibleMediaOptionsMenuController) MenuWithContents ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) MenuWithContents(contents LegibleMediaOptionsMenuContents) obj.Object
MenuWithContents builds a legible options menu using the specified contents. Returns nil if the requested menu type cannot be built due to missing content (e.g., requesting track selection without a player).
func (*LegibleMediaOptionsMenuController) Player ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) Player() obj.Object
Player returns the player associated with the menu controller.
func (*LegibleMediaOptionsMenuController) String ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*LegibleMediaOptionsMenuController) WithDelegate ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) WithDelegate(delegate LegibleMediaOptionsMenuControllerDelegate) *LegibleMediaOptionsMenuController
WithDelegate sets the delegate for receiving caption preview and state change notifications.
func (*LegibleMediaOptionsMenuController) WithPlayer ¶ added in v0.17.0
func (lmomc *LegibleMediaOptionsMenuController) WithPlayer(player obj.Object) *LegibleMediaOptionsMenuController
WithPlayer sets the player associated with the menu controller.
type LegibleMediaOptionsMenuControllerDelegate ¶ added in v0.17.0
type LegibleMediaOptionsMenuControllerDelegate interface {
}
LegibleMediaOptionsMenuControllerDelegate receives the callbacks of the Objective-C protocol AVLegibleMediaOptionsMenuControllerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (LegibleMediaOptionsMenuControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestCaptionPreviewForProfileIDHandler ¶ added in v0.17.0
type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestCaptionPreviewForProfileIDHandler interface {
LegibleMenuControllerDidRequestCaptionPreviewForProfileID(menuController *LegibleMediaOptionsMenuController, profileID string)
}
LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestCaptionPreviewForProfileIDHandler is the optional AVLegibleMediaOptionsMenuControllerDelegate method legibleMenuController:didRequestCaptionPreviewForProfileID:. Implement it on a LegibleMediaOptionsMenuControllerDelegate value to receive that callback; a value without it is simply never sent one.
type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestStoppingSubtitleCaptionPreviewHandler ¶ added in v0.17.0
type LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestStoppingSubtitleCaptionPreviewHandler interface {
LegibleMenuControllerDidRequestStoppingSubtitleCaptionPreview(menuController *LegibleMediaOptionsMenuController)
}
LegibleMediaOptionsMenuControllerDelegateLegibleMenuControllerDidRequestStoppingSubtitleCaptionPreviewHandler is the optional AVLegibleMediaOptionsMenuControllerDelegate method legibleMenuControllerDidRequestStoppingSubtitleCaptionPreview:. Implement it on a LegibleMediaOptionsMenuControllerDelegate value to receive that callback; a value without it is simply never sent one.
type LegibleMediaOptionsMenuStateChangeReason ¶ added in v0.17.0
type LegibleMediaOptionsMenuStateChangeReason int64
const ( LegibleMediaOptionsMenuStateChangeReasonNone LegibleMediaOptionsMenuStateChangeReason = 0 LegibleMediaOptionsMenuStateChangeReasonLanguageMismatch LegibleMediaOptionsMenuStateChangeReason = 1 )
func (LegibleMediaOptionsMenuStateChangeReason) String ¶ added in v0.17.0
func (e LegibleMediaOptionsMenuStateChangeReason) String() string
String returns the LegibleMediaOptionsMenuStateChangeReason constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
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
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MediaOptionsControllerDelegate ¶ added in v0.17.0
type MediaOptionsControllerDelegate interface {
}
MediaOptionsControllerDelegate is the Go form of the Objective-C protocol AVMediaOptionsControllerDelegate.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type OSUnfairLockFlags ¶ added in v0.17.0
type OSUnfairLockFlags uint32
Bitmask — values may be combined with |.
const ( OSUnfairLockFlagsNone OSUnfairLockFlags = 0 OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144 )
func (OSUnfairLockFlags) String ¶ added in v0.17.0
func (e OSUnfairLockFlags) String() string
String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PictureInPictureController ¶ added in v0.17.0
PictureInPictureController is an idiomatic wrapper over the Objective-C class AVPictureInPictureController.
A controller that responds to user-initiated Picture in Picture playback of video in a floating, resizable window.
func NewPictureInPictureControllerWithContentSource ¶ added in v0.17.0
func NewPictureInPictureControllerWithContentSource(contentSource *PictureInPictureControllerContentSource) *PictureInPictureController
NewPictureInPictureControllerWithContentSource creates a Picture in Picture controller with a content source.
func NewPictureInPictureControllerWithPlayerLayer ¶ added in v0.17.0
func NewPictureInPictureControllerWithPlayerLayer(playerLayer obj.Object) *PictureInPictureController
NewPictureInPictureControllerWithPlayerLayer creates a Picture in Picture controller with a player layer.
func PictureInPictureControllerFromID ¶ added in v0.17.0
func PictureInPictureControllerFromID(id objc.ID) *PictureInPictureController
PictureInPictureControllerFromID adopts an existing Objective-C object as a PictureInPictureController (nil for 0), retaining it and registering a release finalizer.
func (*PictureInPictureController) ContentSource ¶ added in v0.17.0
func (pipc *PictureInPictureController) ContentSource() *PictureInPictureControllerContentSource
ContentSource returns the receiver's content source. Can be changed while Picture in Picture is active, but the new content source must be ready for display (in the case of AVPlayerLayer, that means AVPlayerLayer.isReadyForDisplay must return YES), otherwise Picture in Picture will stop.
func (*PictureInPictureController) Description ¶ added in v0.17.0
func (pipc *PictureInPictureController) Description() string
Description returns the object's -description text.
func (*PictureInPictureController) InvalidatePlaybackState ¶ added in v0.17.0
func (pipc *PictureInPictureController) InvalidatePlaybackState()
InvalidatePlaybackState invalidates the controller’s current playback state and fetches the updated state from the sample buffer playback delegate object.
func (*PictureInPictureController) IsEqual ¶ added in v0.17.0
func (pipc *PictureInPictureController) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PictureInPictureController) IsKind ¶ added in v0.17.0
func (pipc *PictureInPictureController) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PictureInPictureController) IsPictureInPictureActive ¶ added in v0.17.0
func (pipc *PictureInPictureController) IsPictureInPictureActive() bool
IsPictureInPictureActive reports whether picture in Picture is currently active.
func (*PictureInPictureController) IsPictureInPicturePossible ¶ added in v0.17.0
func (pipc *PictureInPictureController) IsPictureInPicturePossible() bool
IsPictureInPicturePossible reports whether picture in Picture is currently possible.
func (*PictureInPictureController) IsPictureInPictureSuspended ¶ added in v0.17.0
func (pipc *PictureInPictureController) IsPictureInPictureSuspended() bool
IsPictureInPictureSuspended reports whether picture in Picture is currently suspended.
func (*PictureInPictureController) PlayerLayer ¶ added in v0.17.0
func (pipc *PictureInPictureController) PlayerLayer() obj.Object
PlayerLayer returns the receiver's player layer.
func (*PictureInPictureController) RequiresLinearPlayback ¶ added in v0.17.0
func (pipc *PictureInPictureController) RequiresLinearPlayback() bool
RequiresLinearPlayback reports whether disables certain user operations (fast forward, forward skip, and scrubbing). This can be used to temporarily enforce playback of mandatory content (such as legalese or advertisements).
func (*PictureInPictureController) StartPictureInPicture ¶ added in v0.17.0
func (pipc *PictureInPictureController) StartPictureInPicture()
StartPictureInPicture starts Picture in Picture, if possible.
func (*PictureInPictureController) StopPictureInPicture ¶ added in v0.17.0
func (pipc *PictureInPictureController) StopPictureInPicture()
StopPictureInPicture stops Picture in Picture, if active.
func (*PictureInPictureController) String ¶ added in v0.17.0
func (pipc *PictureInPictureController) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PictureInPictureController) WithContentSource ¶ added in v0.17.0
func (pipc *PictureInPictureController) WithContentSource(contentSource *PictureInPictureControllerContentSource) *PictureInPictureController
WithContentSource sets the source of the controller’s content.
func (*PictureInPictureController) WithDelegate ¶ added in v0.17.0
func (pipc *PictureInPictureController) WithDelegate(delegate PictureInPictureControllerDelegate) *PictureInPictureController
WithDelegate sets a delegate object for a Picture in Picture controller.
func (*PictureInPictureController) WithRequiresLinearPlayback ¶ added in v0.17.0
func (pipc *PictureInPictureController) WithRequiresLinearPlayback(requiresLinearPlayback bool) *PictureInPictureController
WithRequiresLinearPlayback sets a Boolean value that determines whether the controller allows the user to skip media content.
type PictureInPictureControllerContentSource ¶ added in v0.17.0
PictureInPictureControllerContentSource is an idiomatic wrapper over the Objective-C class AVPictureInPictureControllerContentSource.
An object that represents the source of the content to present in Picture in Picture.
func NewPictureInPictureControllerContentSourceWithPlayerLayer ¶ added in v0.17.0
func NewPictureInPictureControllerContentSourceWithPlayerLayer(playerLayer obj.Object) *PictureInPictureControllerContentSource
NewPictureInPictureControllerContentSourceWithPlayerLayer use this initializer for a content source with a player layer.
func PictureInPictureControllerContentSourceFromID ¶ added in v0.17.0
func PictureInPictureControllerContentSourceFromID(id objc.ID) *PictureInPictureControllerContentSource
PictureInPictureControllerContentSourceFromID adopts an existing Objective-C object as a PictureInPictureControllerContentSource (nil for 0), retaining it and registering a release finalizer.
func (*PictureInPictureControllerContentSource) Description ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) Description() string
Description returns the object's -description text.
func (*PictureInPictureControllerContentSource) IsEqual ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PictureInPictureControllerContentSource) IsKind ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PictureInPictureControllerContentSource) PlayerLayer ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) PlayerLayer() obj.Object
PlayerLayer returns the player layer.
func (*PictureInPictureControllerContentSource) SampleBufferDisplayLayer ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) SampleBufferDisplayLayer() obj.Object
SampleBufferDisplayLayer returns the receiver's sample buffer display layer.
func (*PictureInPictureControllerContentSource) String ¶ added in v0.17.0
func (pipccs *PictureInPictureControllerContentSource) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type PictureInPictureControllerDelegate ¶ added in v0.17.0
type PictureInPictureControllerDelegate interface {
}
PictureInPictureControllerDelegate receives the callbacks of the Objective-C protocol AVPictureInPictureControllerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (PictureInPictureControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type PictureInPictureControllerDelegatePictureInPictureControllerDidStartPictureInPictureHandler ¶ added in v0.17.0
type PictureInPictureControllerDelegatePictureInPictureControllerDidStartPictureInPictureHandler interface {
PictureInPictureControllerDidStartPictureInPicture(pictureInPictureController *PictureInPictureController)
}
PictureInPictureControllerDelegatePictureInPictureControllerDidStartPictureInPictureHandler is the optional AVPictureInPictureControllerDelegate method pictureInPictureControllerDidStartPictureInPicture:. Implement it on a PictureInPictureControllerDelegate value to receive that callback; a value without it is simply never sent one.
type PictureInPictureControllerDelegatePictureInPictureControllerDidStopPictureInPictureHandler ¶ added in v0.17.0
type PictureInPictureControllerDelegatePictureInPictureControllerDidStopPictureInPictureHandler interface {
PictureInPictureControllerDidStopPictureInPicture(pictureInPictureController *PictureInPictureController)
}
PictureInPictureControllerDelegatePictureInPictureControllerDidStopPictureInPictureHandler is the optional AVPictureInPictureControllerDelegate method pictureInPictureControllerDidStopPictureInPicture:. Implement it on a PictureInPictureControllerDelegate value to receive that callback; a value without it is simply never sent one.
type PictureInPictureControllerDelegatePictureInPictureControllerFailedToStartPictureInPictureWithErrorHandler ¶ added in v0.17.0
type PictureInPictureControllerDelegatePictureInPictureControllerFailedToStartPictureInPictureWithErrorHandler interface {
PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController *PictureInPictureController, err error)
}
PictureInPictureControllerDelegatePictureInPictureControllerFailedToStartPictureInPictureWithErrorHandler is the optional AVPictureInPictureControllerDelegate method pictureInPictureController:failedToStartPictureInPictureWithError:. Implement it on a PictureInPictureControllerDelegate value to receive that callback; a value without it is simply never sent one.
type PictureInPictureControllerDelegatePictureInPictureControllerWillStartPictureInPictureHandler ¶ added in v0.17.0
type PictureInPictureControllerDelegatePictureInPictureControllerWillStartPictureInPictureHandler interface {
PictureInPictureControllerWillStartPictureInPicture(pictureInPictureController *PictureInPictureController)
}
PictureInPictureControllerDelegatePictureInPictureControllerWillStartPictureInPictureHandler is the optional AVPictureInPictureControllerDelegate method pictureInPictureControllerWillStartPictureInPicture:. Implement it on a PictureInPictureControllerDelegate value to receive that callback; a value without it is simply never sent one.
type PictureInPictureControllerDelegatePictureInPictureControllerWillStopPictureInPictureHandler ¶ added in v0.17.0
type PictureInPictureControllerDelegatePictureInPictureControllerWillStopPictureInPictureHandler interface {
PictureInPictureControllerWillStopPictureInPicture(pictureInPictureController *PictureInPictureController)
}
PictureInPictureControllerDelegatePictureInPictureControllerWillStopPictureInPictureHandler is the optional AVPictureInPictureControllerDelegate method pictureInPictureControllerWillStopPictureInPicture:. Implement it on a PictureInPictureControllerDelegate value to receive that callback; a value without it is simply never sent one.
type PictureInPictureSampleBufferPlaybackDelegate ¶ added in v0.17.0
type PictureInPictureSampleBufferPlaybackDelegate interface {
PictureInPictureControllerSetPlaying(pictureInPictureController *PictureInPictureController, playing bool)
PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController *PictureInPictureController) coremedia.CMTimeRange
PictureInPictureControllerIsPlaybackPaused(pictureInPictureController *PictureInPictureController) bool
PictureInPictureControllerDidTransitionToRenderSize(pictureInPictureController *PictureInPictureController, newRenderSize avfoundation.CMVideoDimensions)
PictureInPictureControllerSkipByIntervalCompletionHandler(pictureInPictureController *PictureInPictureController, skipInterval coremedia.CMTime, completionHandler func())
}
PictureInPictureSampleBufferPlaybackDelegate is the Go form of the Objective-C protocol AVPictureInPictureSampleBufferPlaybackDelegate.
type PlaybackSpeed ¶ added in v0.17.0
PlaybackSpeed is an idiomatic wrapper over the Objective-C class AVPlaybackSpeed.
An object that represents a user-selectable playback speed in a playback user interface.
func NewPlaybackSpeedWithRateLocalizedName ¶ added in v0.17.0
func NewPlaybackSpeedWithRateLocalizedName(rate float32, localizedName string) *PlaybackSpeed
NewPlaybackSpeedWithRateLocalizedName creates a playback speed with a rate and localized name.
func PlaybackSpeedFromID ¶ added in v0.17.0
func PlaybackSpeedFromID(id objc.ID) *PlaybackSpeed
PlaybackSpeedFromID adopts an existing Objective-C object as a PlaybackSpeed (nil for 0), retaining it and registering a release finalizer.
func SystemDefaultSpeeds ¶ added in v0.17.0
func SystemDefaultSpeeds() []*PlaybackSpeed
SystemDefaultSpeeds returns a list of playback speeds to be used by default across the system.
SystemDefaultSpeeds returns the collection as a Go slice.
func (*PlaybackSpeed) Description ¶ added in v0.17.0
func (ps *PlaybackSpeed) Description() string
Description returns the object's -description text.
func (*PlaybackSpeed) IsEqual ¶ added in v0.17.0
func (ps *PlaybackSpeed) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PlaybackSpeed) IsKind ¶ added in v0.17.0
func (ps *PlaybackSpeed) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PlaybackSpeed) LocalizedName ¶ added in v0.17.0
func (ps *PlaybackSpeed) LocalizedName() string
LocalizedName returns a localized name for this playback speed. This name will be used to represent this playback speed in playback UIs where more space is available.
func (*PlaybackSpeed) LocalizedNumericName ¶ added in v0.17.0
func (ps *PlaybackSpeed) LocalizedNumericName() string
LocalizedNumericName returns a localized name for this playback speed used when space is limited. This name will be used to represent this playback speed in playback UIs where limited space is available.
func (*PlaybackSpeed) Rate ¶ added in v0.17.0
func (ps *PlaybackSpeed) Rate() float32
Rate returns the rate associated with this object. When this playback speed is selected this rate will be set in response to the play button being pressed.
func (*PlaybackSpeed) String ¶ added in v0.17.0
func (ps *PlaybackSpeed) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type PlayerView ¶ added in v0.17.0
PlayerView is an idiomatic wrapper over the Objective-C class AVPlayerView.
A view that displays content from a player and presents a native user interface to control playback.
func NewPlayerView ¶ added in v0.17.0
func NewPlayerView() *PlayerView
NewPlayerView creates a new PlayerView.
func PlayerViewFromID ¶ added in v0.17.0
func PlayerViewFromID(id objc.ID) *PlayerView
PlayerViewFromID adopts an existing Objective-C object as a PlayerView (nil for 0), retaining it and registering a release finalizer.
func (*PlayerView) ActionPopUpButtonMenu ¶ added in v0.17.0
func (pv *PlayerView) ActionPopUpButtonMenu() obj.Object
ActionPopUpButtonMenu returns clients can set this property in order to show an action pop up button. Default is nil.
func (*PlayerView) AllowsMagnification ¶ added in v0.17.0
func (pv *PlayerView) AllowsMagnification() bool
AllowsMagnification reports whether the magnify gesture will change the video's view magnification. The default value is false. This property only effects whether the magnify gesture triggers magnification. A client can still programmatically change magnification even when the value of this is false. This behavior matches the behavior of NSScrollView.
func (*PlayerView) AllowsPictureInPicturePlayback ¶ added in v0.17.0
func (pv *PlayerView) AllowsPictureInPicturePlayback() bool
AllowsPictureInPicturePlayback reports whether the receiver allows Picture in Picture playback. Default is false.
func (*PlayerView) AllowsVideoFrameAnalysis ¶ added in v0.17.0
func (pv *PlayerView) AllowsVideoFrameAnalysis() bool
AllowsVideoFrameAnalysis reports whether when set to true, the AVPlayerView will try to find objects, text and people while the media is paused. When an object is found, the user will be able to interact with it selecting and right clicking to present a context menu. Default is true.
func (*PlayerView) BeginTrimmingWithCompletionHandler ¶ added in v0.18.0
func (pv *PlayerView) BeginTrimmingWithCompletionHandler(handler func(PlayerViewTrimResult))
BeginTrimmingWithCompletionHandler puts the player view into trimming mode.
func (*PlayerView) CanBeginTrimming ¶ added in v0.17.0
func (pv *PlayerView) CanBeginTrimming() bool
CanBeginTrimming reports whether the current media can be trimmed.
func (*PlayerView) ContentOverlayView ¶ added in v0.17.0
func (pv *PlayerView) ContentOverlayView() obj.Object
ContentOverlayView returns use the content overlay view to add additional custom views between the video content and the controls.
func (*PlayerView) ControlsStyle ¶ added in v0.17.0
func (pv *PlayerView) ControlsStyle() PlayerViewControlsStyle
ControlsStyle returns the style of the playback controls pane currently associated with the view. After macOS 11, the floating style controls will always be used when presenting in fullscreen and AVPlayerViewControlsStyleNone is not specified.
func (*PlayerView) Description ¶ added in v0.17.0
func (pv *PlayerView) Description() string
Description returns the object's -description text.
func (*PlayerView) FlashChapterNumberChapterTitle ¶ added in v0.17.0
func (pv *PlayerView) FlashChapterNumberChapterTitle(chapterNumber int, chapterTitle string)
FlashChapterNumberChapterTitle displays the chapter number and title in the player view for a brief moment.
func (*PlayerView) IsEqual ¶ added in v0.17.0
func (pv *PlayerView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PlayerView) IsKind ¶ added in v0.17.0
func (pv *PlayerView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PlayerView) IsReadyForDisplay ¶ added in v0.17.0
func (pv *PlayerView) IsReadyForDisplay() bool
IsReadyForDisplay reports whether boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.
func (*PlayerView) Magnification ¶ added in v0.17.0
func (pv *PlayerView) Magnification() float64
Magnification returns the factor by which the video's view is currently scaled. The default value is 1.0. The value cannot be smaller than 1.0 or larger 64.0. Nearest neighbor interpolation will be used once the content has been zoomed past a certain factor.
func (*PlayerView) Player ¶ added in v0.17.0
func (pv *PlayerView) Player() obj.Object
Player returns the player from which to source the media content for the view.
func (*PlayerView) PreferredDisplayDynamicRange ¶ added in v0.17.0
func (pv *PlayerView) PreferredDisplayDynamicRange() DisplayDynamicRange
PreferredDisplayDynamicRange describes how High Dynamic Range (HDR) video content renders. Defaults to “AVDisplayDynamicRangeAutomatic“. - Note: This property will only have effect if the video content supports HDR.
func (*PlayerView) SelectSpeed ¶ added in v0.17.0
func (pv *PlayerView) SelectSpeed(speed *PlaybackSpeed)
SelectSpeed selects a specified playback speed.
func (*PlayerView) SelectedSpeed ¶ added in v0.17.0
func (pv *PlayerView) SelectedSpeed() *PlaybackSpeed
SelectedSpeed returns the currently selected playback speed. Changes to the associated AVPlayer's defaultRate will be reflected in this property and vice versa. If the associated AVPlayer's defaultRate is set to a value that does not match a speed in the speeds list property, the selected speed will be nil.
func (*PlayerView) SetMagnificationCenteredAtPoint ¶ added in v0.17.0
func (pv *PlayerView) SetMagnificationCenteredAtPoint(magnification float64, point corefoundation.CGPoint)
SetMagnificationCenteredAtPoint scales the video’s view by a specified factor, and centers the result on a specified point.
func (*PlayerView) ShowsFrameSteppingButtons ¶ added in v0.17.0
func (pv *PlayerView) ShowsFrameSteppingButtons() bool
ShowsFrameSteppingButtons reports whether replace scanning controls in the playback UI with frame stepping buttons. Default is false.
func (*PlayerView) ShowsFullScreenToggleButton ¶ added in v0.17.0
func (pv *PlayerView) ShowsFullScreenToggleButton() bool
ShowsFullScreenToggleButton reports whether the controls pane will show a full screen toggle button. Default is false.
func (*PlayerView) ShowsSharingServiceButton ¶ added in v0.17.0
func (pv *PlayerView) ShowsSharingServiceButton() bool
ShowsSharingServiceButton reports whether the controls pane will show a sharing service button when the current player item can be shared. Default is false.
func (*PlayerView) ShowsTimecodes ¶ added in v0.17.0
func (pv *PlayerView) ShowsTimecodes() bool
ShowsTimecodes reports whether if timecodes are available, allow the AVPlayerView controls to enter timecode mode. Default is false.
func (*PlayerView) Speeds ¶ added in v0.17.0
func (pv *PlayerView) Speeds() []*PlaybackSpeed
Speeds returns a list of user selectable playback speeds to be shown in the playback speed control. By default this property will be set to the systemDefaultSpeeds class property. Setting this property to nil will hide the playback speed selection UI. To set the currently selected playback speed programmatically, either set the defaultRate on the AVPlayer associated with this view controller or use the selectSpeed method on AVPlayerView.
Speeds returns the collection as a Go slice.
func (*PlayerView) String ¶ added in v0.17.0
func (pv *PlayerView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PlayerView) UpdatesNowPlayingInfoCenter ¶ added in v0.17.0
func (pv *PlayerView) UpdatesNowPlayingInfoCenter() bool
UpdatesNowPlayingInfoCenter reports whether the now playing info center should be updated. Default is true.
func (*PlayerView) VideoBounds ¶ added in v0.17.0
func (pv *PlayerView) VideoBounds() corefoundation.CGRect
VideoBounds returns the current size and position of the video image as displayed within the receiver's view's bounds.
func (*PlayerView) VideoFrameAnalysisTypes ¶ added in v0.17.0
func (pv *PlayerView) VideoFrameAnalysisTypes() VideoFrameAnalysisType
VideoFrameAnalysisTypes returns the types of items AVPlayerView looks for in a paused video frame.
func (*PlayerView) VideoGravity ¶ added in v0.17.0
func (pv *PlayerView) VideoGravity() *foundation.String
VideoGravity returns a string defining how the video is displayed within an AVPlayerLayer bounds rect. Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
func (*PlayerView) WithActionPopUpButtonMenu ¶ added in v0.17.0
func (pv *PlayerView) WithActionPopUpButtonMenu(actionPopUpButtonMenu obj.Object) *PlayerView
WithActionPopUpButtonMenu sets an action pop-up button menu that the player view displays.
func (*PlayerView) WithAllowsMagnification ¶ added in v0.17.0
func (pv *PlayerView) WithAllowsMagnification(allowsMagnification bool) *PlayerView
WithAllowsMagnification sets a Boolean value that indicates whether the magnify gesture changes the video’s view magnification.
func (*PlayerView) WithAllowsPictureInPicturePlayback ¶ added in v0.17.0
func (pv *PlayerView) WithAllowsPictureInPicturePlayback(allowsPictureInPicturePlayback bool) *PlayerView
WithAllowsPictureInPicturePlayback sets a Boolean value that determines whether the player view allows Picture in Picture playback.
func (*PlayerView) WithAllowsVideoFrameAnalysis ¶ added in v0.17.0
func (pv *PlayerView) WithAllowsVideoFrameAnalysis(allowsVideoFrameAnalysis bool) *PlayerView
WithAllowsVideoFrameAnalysis sets a Boolean value that indicates whether to perform video frame analysis.
func (*PlayerView) WithControlsStyle ¶ added in v0.17.0
func (pv *PlayerView) WithControlsStyle(controlsStyle PlayerViewControlsStyle) *PlayerView
WithControlsStyle sets the player view’s controls style.
func (*PlayerView) WithDelegate ¶ added in v0.17.0
func (pv *PlayerView) WithDelegate(delegate PlayerViewDelegate) *PlayerView
WithDelegate sets the player view’s delegate object.
func (*PlayerView) WithMagnification ¶ added in v0.17.0
func (pv *PlayerView) WithMagnification(magnification float64) *PlayerView
WithMagnification sets the factor by which the video’s view is currently scaled.
func (*PlayerView) WithPictureInPictureDelegate ¶ added in v0.17.0
func (pv *PlayerView) WithPictureInPictureDelegate(pictureInPictureDelegate PlayerViewPictureInPictureDelegate) *PlayerView
WithPictureInPictureDelegate sets the Picture in Picture delegate object.
func (*PlayerView) WithPlayer ¶ added in v0.17.0
func (pv *PlayerView) WithPlayer(player obj.Object) *PlayerView
WithPlayer sets the player instance that provides the media content for the view.
func (*PlayerView) WithPreferredDisplayDynamicRange ¶ added in v0.17.0
func (pv *PlayerView) WithPreferredDisplayDynamicRange(preferredDisplayDynamicRange DisplayDynamicRange) *PlayerView
WithPreferredDisplayDynamicRange sets describes how High Dynamic Range (HDR) video content renders.
func (*PlayerView) WithShowsFrameSteppingButtons ¶ added in v0.17.0
func (pv *PlayerView) WithShowsFrameSteppingButtons(showsFrameSteppingButtons bool) *PlayerView
WithShowsFrameSteppingButtons sets a Boolean value that determines whether the player view displays frame stepping buttons.
func (*PlayerView) WithShowsFullScreenToggleButton ¶ added in v0.17.0
func (pv *PlayerView) WithShowsFullScreenToggleButton(showsFullScreenToggleButton bool) *PlayerView
WithShowsFullScreenToggleButton sets a Boolean value that determines whether the player view displays a full-screen toggle button.
func (*PlayerView) WithShowsSharingServiceButton ¶ added in v0.17.0
func (pv *PlayerView) WithShowsSharingServiceButton(showsSharingServiceButton bool) *PlayerView
WithShowsSharingServiceButton sets a Boolean value that determines whether the player view displays a sharing service button.
func (*PlayerView) WithShowsTimecodes ¶ added in v0.17.0
func (pv *PlayerView) WithShowsTimecodes(showsTimecodes bool) *PlayerView
WithShowsTimecodes sets a Boolean value that determines whether the player view displays timecodes, if available.
func (*PlayerView) WithSpeeds ¶ added in v0.17.0
func (pv *PlayerView) WithSpeeds(items ...*PlaybackSpeed) *PlayerView
WithSpeeds sets a list of user-selectable playback speeds to show in the playback speed control.
func (*PlayerView) WithUpdatesNowPlayingInfoCenter ¶ added in v0.17.0
func (pv *PlayerView) WithUpdatesNowPlayingInfoCenter(updatesNowPlayingInfoCenter bool) *PlayerView
WithUpdatesNowPlayingInfoCenter sets a Boolean value that indicates whether the player view controller updates the Now Playing info center.
func (*PlayerView) WithVideoFrameAnalysisTypes ¶ added in v0.17.0
func (pv *PlayerView) WithVideoFrameAnalysisTypes(videoFrameAnalysisTypes VideoFrameAnalysisType) *PlayerView
WithVideoFrameAnalysisTypes sets the types of items AVPlayerView looks for in a paused video frame.
func (*PlayerView) WithVideoGravity ¶ added in v0.17.0
func (pv *PlayerView) WithVideoGravity(videoGravity obj.Object) *PlayerView
WithVideoGravity sets a value that determines how the player view displays video content within its bounds.
type PlayerViewControlsStyle ¶ added in v0.17.0
type PlayerViewControlsStyle int64
Constants that indicate which user interface controls the view displays.
const ( // The view displays no playback controls. PlayerViewControlsStyleNone PlayerViewControlsStyle = 0 // The view displays playback controls in a bar along the view’s bottom edge. PlayerViewControlsStyleInline PlayerViewControlsStyle = 1 // The view displays playback controls in a floating window over the video content. PlayerViewControlsStyleFloating PlayerViewControlsStyle = 2 // The view presents basic controls to play and pause playback. PlayerViewControlsStyleMinimal PlayerViewControlsStyle = 3 // The view’s default controls style. PlayerViewControlsStyleDefault PlayerViewControlsStyle = 1 )
func (PlayerViewControlsStyle) String ¶ added in v0.17.0
func (e PlayerViewControlsStyle) String() string
String returns the PlayerViewControlsStyle constant's name, or its numeric form when the value is not a known constant.
type PlayerViewDelegate ¶ added in v0.17.0
type PlayerViewDelegate interface {
}
PlayerViewDelegate receives the callbacks of the Objective-C protocol AVPlayerViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (PlayerViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type PlayerViewDelegatePlayerViewDidEnterFullScreenHandler ¶ added in v0.17.0
type PlayerViewDelegatePlayerViewDidEnterFullScreenHandler interface {
PlayerViewDidEnterFullScreen(playerView *PlayerView)
}
PlayerViewDelegatePlayerViewDidEnterFullScreenHandler is the optional AVPlayerViewDelegate method playerViewDidEnterFullScreen:. Implement it on a PlayerViewDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewDelegatePlayerViewDidExitFullScreenHandler ¶ added in v0.17.0
type PlayerViewDelegatePlayerViewDidExitFullScreenHandler interface {
PlayerViewDidExitFullScreen(playerView *PlayerView)
}
PlayerViewDelegatePlayerViewDidExitFullScreenHandler is the optional AVPlayerViewDelegate method playerViewDidExitFullScreen:. Implement it on a PlayerViewDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewDelegatePlayerViewWillEnterFullScreenHandler ¶ added in v0.17.0
type PlayerViewDelegatePlayerViewWillEnterFullScreenHandler interface {
PlayerViewWillEnterFullScreen(playerView *PlayerView)
}
PlayerViewDelegatePlayerViewWillEnterFullScreenHandler is the optional AVPlayerViewDelegate method playerViewWillEnterFullScreen:. Implement it on a PlayerViewDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewDelegatePlayerViewWillExitFullScreenHandler ¶ added in v0.17.0
type PlayerViewDelegatePlayerViewWillExitFullScreenHandler interface {
PlayerViewWillExitFullScreen(playerView *PlayerView)
}
PlayerViewDelegatePlayerViewWillExitFullScreenHandler is the optional AVPlayerViewDelegate method playerViewWillExitFullScreen:. Implement it on a PlayerViewDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegate ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegate interface {
}
PlayerViewPictureInPictureDelegate receives the callbacks of the Objective-C protocol AVPlayerViewPictureInPictureDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (PlayerViewPictureInPictureDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type PlayerViewPictureInPictureDelegatePlayerViewDidStartPictureInPictureHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewDidStartPictureInPictureHandler interface {
PlayerViewDidStartPictureInPicture(playerView *PlayerView)
}
PlayerViewPictureInPictureDelegatePlayerViewDidStartPictureInPictureHandler is the optional AVPlayerViewPictureInPictureDelegate method playerViewDidStartPictureInPicture:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegatePlayerViewDidStopPictureInPictureHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewDidStopPictureInPictureHandler interface {
PlayerViewDidStopPictureInPicture(playerView *PlayerView)
}
PlayerViewPictureInPictureDelegatePlayerViewDidStopPictureInPictureHandler is the optional AVPlayerViewPictureInPictureDelegate method playerViewDidStopPictureInPicture:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegatePlayerViewFailedToStartPictureInPictureWithErrorHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewFailedToStartPictureInPictureWithErrorHandler interface {
PlayerViewFailedToStartPictureInPictureWithError(playerView *PlayerView, err error)
}
PlayerViewPictureInPictureDelegatePlayerViewFailedToStartPictureInPictureWithErrorHandler is the optional AVPlayerViewPictureInPictureDelegate method playerView:failedToStartPictureInPictureWithError:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegatePlayerViewShouldAutomaticallyDismissAtPictureInPictureStartHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewShouldAutomaticallyDismissAtPictureInPictureStartHandler interface {
PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView *PlayerView) bool
}
PlayerViewPictureInPictureDelegatePlayerViewShouldAutomaticallyDismissAtPictureInPictureStartHandler is the optional AVPlayerViewPictureInPictureDelegate method playerViewShouldAutomaticallyDismissAtPictureInPictureStart:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegatePlayerViewWillStartPictureInPictureHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewWillStartPictureInPictureHandler interface {
PlayerViewWillStartPictureInPicture(playerView *PlayerView)
}
PlayerViewPictureInPictureDelegatePlayerViewWillStartPictureInPictureHandler is the optional AVPlayerViewPictureInPictureDelegate method playerViewWillStartPictureInPicture:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewPictureInPictureDelegatePlayerViewWillStopPictureInPictureHandler ¶ added in v0.17.0
type PlayerViewPictureInPictureDelegatePlayerViewWillStopPictureInPictureHandler interface {
PlayerViewWillStopPictureInPicture(playerView *PlayerView)
}
PlayerViewPictureInPictureDelegatePlayerViewWillStopPictureInPictureHandler is the optional AVPlayerViewPictureInPictureDelegate method playerViewWillStopPictureInPicture:. Implement it on a PlayerViewPictureInPictureDelegate value to receive that callback; a value without it is simply never sent one.
type PlayerViewTrimResult ¶ added in v0.17.0
type PlayerViewTrimResult int64
Constants that specify an action a user takes when trimming media in a player view.
const ( // The user clicked the Trim button. PlayerViewTrimOKButton PlayerViewTrimResult = 0 // The user clicked the Cancel button. PlayerViewTrimCancelButton PlayerViewTrimResult = 1 )
func (PlayerViewTrimResult) String ¶ added in v0.17.0
func (e PlayerViewTrimResult) String() string
String returns the PlayerViewTrimResult constant's name, or its numeric form when the value is not a known constant.
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type RoutePickerView ¶ added in v0.17.0
RoutePickerView is an idiomatic wrapper over the Objective-C class AVRoutePickerView.
A view that presents a list of nearby media receivers.
func NewRoutePickerView ¶ added in v0.17.0
func NewRoutePickerView() *RoutePickerView
NewRoutePickerView creates a new RoutePickerView.
func RoutePickerViewFromID ¶ added in v0.17.0
func RoutePickerViewFromID(id objc.ID) *RoutePickerView
RoutePickerViewFromID adopts an existing Objective-C object as a RoutePickerView (nil for 0), retaining it and registering a release finalizer.
func (*RoutePickerView) Description ¶ added in v0.17.0
func (rpv *RoutePickerView) Description() string
Description returns the object's -description text.
func (*RoutePickerView) IsEqual ¶ added in v0.17.0
func (rpv *RoutePickerView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*RoutePickerView) IsKind ¶ added in v0.17.0
func (rpv *RoutePickerView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*RoutePickerView) IsRoutePickerButtonBordered ¶ added in v0.17.0
func (rpv *RoutePickerView) IsRoutePickerButtonBordered() bool
IsRoutePickerButtonBordered reports whether the picker button has a border. Default is true.
func (*RoutePickerView) Player ¶ added in v0.17.0
func (rpv *RoutePickerView) Player() obj.Object
Player returns the player for which to perform routing operations.
func (*RoutePickerView) RoutePickerButtonColorForState ¶ added in v0.17.0
func (rpv *RoutePickerView) RoutePickerButtonColorForState(state RoutePickerViewButtonState) obj.Object
RoutePickerButtonColorForState returns the color of the picker button for the specified state.
func (*RoutePickerView) SetRoutePickerButtonColorForState ¶ added in v0.17.0
func (rpv *RoutePickerView) SetRoutePickerButtonColorForState(color obj.Object, state RoutePickerViewButtonState)
SetRoutePickerButtonColorForState sets the route picker button color for the specified state.
func (*RoutePickerView) String ¶ added in v0.17.0
func (rpv *RoutePickerView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*RoutePickerView) WithDelegate ¶ added in v0.17.0
func (rpv *RoutePickerView) WithDelegate(delegate RoutePickerViewDelegate) *RoutePickerView
WithDelegate sets the delegate object for the route picker.
func (*RoutePickerView) WithPlayer ¶ added in v0.17.0
func (rpv *RoutePickerView) WithPlayer(player obj.Object) *RoutePickerView
WithPlayer sets the player object to perform routing operations for.
func (*RoutePickerView) WithRoutePickerButtonBordered ¶ added in v0.17.0
func (rpv *RoutePickerView) WithRoutePickerButtonBordered(routePickerButtonBordered bool) *RoutePickerView
WithRoutePickerButtonBordered sets a Boolean value that indicates whether the route picker button has a border.
type RoutePickerViewButtonState ¶ added in v0.17.0
type RoutePickerViewButtonState int64
Constants that describe the available button states.
const ( RoutePickerViewButtonStateNormal RoutePickerViewButtonState = 0 RoutePickerViewButtonStateNormalHighlighted RoutePickerViewButtonState = 1 RoutePickerViewButtonStateActive RoutePickerViewButtonState = 2 RoutePickerViewButtonStateActiveHighlighted RoutePickerViewButtonState = 3 )
func (RoutePickerViewButtonState) String ¶ added in v0.17.0
func (e RoutePickerViewButtonState) String() string
String returns the RoutePickerViewButtonState constant's name, or its numeric form when the value is not a known constant.
type RoutePickerViewDelegate ¶ added in v0.17.0
type RoutePickerViewDelegate interface {
}
RoutePickerViewDelegate receives the callbacks of the Objective-C protocol AVRoutePickerViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (RoutePickerViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type RoutePickerViewDelegateRoutePickerViewDidEndPresentingRoutesHandler ¶ added in v0.17.0
type RoutePickerViewDelegateRoutePickerViewDidEndPresentingRoutesHandler interface {
RoutePickerViewDidEndPresentingRoutes(routePickerView *RoutePickerView)
}
RoutePickerViewDelegateRoutePickerViewDidEndPresentingRoutesHandler is the optional AVRoutePickerViewDelegate method routePickerViewDidEndPresentingRoutes:. Implement it on a RoutePickerViewDelegate value to receive that callback; a value without it is simply never sent one.
type RoutePickerViewDelegateRoutePickerViewWillBeginPresentingRoutesHandler ¶ added in v0.17.0
type RoutePickerViewDelegateRoutePickerViewWillBeginPresentingRoutesHandler interface {
RoutePickerViewWillBeginPresentingRoutes(routePickerView *RoutePickerView)
}
RoutePickerViewDelegateRoutePickerViewWillBeginPresentingRoutesHandler is the optional AVRoutePickerViewDelegate method routePickerViewWillBeginPresentingRoutes:. Implement it on a RoutePickerViewDelegate value to receive that callback; a value without it is simply never sent one.
type VideoFrameAnalysisType ¶ added in v0.17.0
type VideoFrameAnalysisType uint64
Constants that define the types of analysis a player view controller may perform on a paused video frame. Bitmask — values may be combined with |.
const ( // A type that performs no analysis. VideoFrameAnalysisTypeNone VideoFrameAnalysisType = 0 // The default types of analysis to perform. VideoFrameAnalysisTypeDefault VideoFrameAnalysisType = 1 // A type that finds text in a paused video frame. VideoFrameAnalysisTypeText VideoFrameAnalysisType = 2 // A type that finds a subject that a user can copy out of frame. VideoFrameAnalysisTypeSubject VideoFrameAnalysisType = 4 // A type that identifies objects, landmarks, art, and so on. VideoFrameAnalysisTypeVisualSearch VideoFrameAnalysisType = 8 )
func (VideoFrameAnalysisType) String ¶ added in v0.17.0
func (e VideoFrameAnalysisType) String() string
String returns the VideoFrameAnalysisType constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- AVCaptureViewDelegate_delegate_generated.go
- AVCaptureView_generated.go
- AVLegibleMediaOptionsMenuControllerDelegate_delegate_generated.go
- AVLegibleMediaOptionsMenuController_generated.go
- AVPictureInPictureControllerContentSource_generated.go
- AVPictureInPictureControllerDelegate_delegate_generated.go
- AVPictureInPictureController_generated.go
- AVPlaybackSpeed_generated.go
- AVPlayerViewDelegate_delegate_generated.go
- AVPlayerViewPictureInPictureDelegate_delegate_generated.go
- AVPlayerView_generated.go
- AVRoutePickerViewDelegate_delegate_generated.go
- AVRoutePickerView_generated.go
- avkit_classmethods_generated.go
- avkit_enums_generated.go
- avkit_protocols_generated.go
- avkit_runtime_generated.go
- avkit_structs_generated.go
- doc.go