Documentation
¶
Overview ¶
Package hiservices provides Go bindings for the hiservices framework.
Key Types ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- func NewVoidBlock(handler VoidHandler) (objc.ID, func())
- type HIRunLoopSemaphore
- func (h HIRunLoopSemaphore) Autorelease() HIRunLoopSemaphore
- func (h HIRunLoopSemaphore) Init() HIRunLoopSemaphore
- func (h HIRunLoopSemaphore) InitWithMode(mode objectivec.IObject) HIRunLoopSemaphore
- func (h HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlock(duration float64, block VoidHandler)
- func (h HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlockSync(ctx context.Context, duration float64) error
- func (h HIRunLoopSemaphore) Legend() string
- func (h HIRunLoopSemaphore) Mode() objectivec.IObject
- func (h HIRunLoopSemaphore) SetLegacyWake()
- func (h HIRunLoopSemaphore) SetLegend(value string)
- func (h HIRunLoopSemaphore) Signal()
- func (h HIRunLoopSemaphore) Wait()
- func (h HIRunLoopSemaphore) WaitWithWait(wait float64) bool
- type HIRunLoopSemaphoreClass
- func (hc HIRunLoopSemaphoreClass) Alloc() HIRunLoopSemaphore
- func (hc HIRunLoopSemaphoreClass) Class() objc.Class
- func (_HIRunLoopSemaphoreClass HIRunLoopSemaphoreClass) Invocations() objectivec.IObject
- func (_HIRunLoopSemaphoreClass HIRunLoopSemaphoreClass) ObserveWhilePerforming(_observe objectivec.IObject, performing VoidHandler)
- type HIRunLoopUtilities
- type HIRunLoopUtilitiesClass
- func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) AddRunLoopModesForDeferredActions(actions objectivec.IObject)
- func (hc HIRunLoopUtilitiesClass) Alloc() HIRunLoopUtilities
- func (hc HIRunLoopUtilitiesClass) Class() objc.Class
- func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) CurrentRunLoopMode() objectivec.IObject
- func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) DeferActions(actions VoidHandler)
- func (hc HIRunLoopUtilitiesClass) DeferActionsSync(ctx context.Context) error
- type IHIRunLoopSemaphore
- type IHIRunLoopUtilities
- type VoidHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVoidBlock ¶ added in v0.5.0
func NewVoidBlock(handler VoidHandler) (objc.ID, func())
NewVoidBlock wraps a Go VoidHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
- HIRunLoopSemaphore.InvokeLoopInModeForDurationWithBlock
- [HIRunLoopSemaphore._observeWhilePerforming]
- [HIRunLoopUtilities.DeferActions]
Types ¶
type HIRunLoopSemaphore ¶ added in v0.5.0
type HIRunLoopSemaphore struct {
objectivec.Object
}
Methods ¶
- HIRunLoopSemaphore.InvokeLoopInModeForDurationWithBlock
- HIRunLoopSemaphore.Legend
- HIRunLoopSemaphore.SetLegend
- HIRunLoopSemaphore.Mode
- HIRunLoopSemaphore.SetLegacyWake
- HIRunLoopSemaphore.Signal
- HIRunLoopSemaphore.Wait
- HIRunLoopSemaphore.WaitWithWait
- HIRunLoopSemaphore.InitWithMode
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore
func HIRunLoopSemaphoreFromID ¶ added in v0.5.0
func HIRunLoopSemaphoreFromID(id objc.ID) HIRunLoopSemaphore
HIRunLoopSemaphoreFromID constructs a HIRunLoopSemaphore from an objc.ID.
func NewHIRunLoopSemaphore ¶ added in v0.5.0
func NewHIRunLoopSemaphore() HIRunLoopSemaphore
NewHIRunLoopSemaphore creates a new HIRunLoopSemaphore instance.
func NewHIRunLoopSemaphoreWithMode ¶ added in v0.5.0
func NewHIRunLoopSemaphoreWithMode(mode objectivec.IObject) HIRunLoopSemaphore
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/initWithMode:
func (HIRunLoopSemaphore) Autorelease ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Autorelease() HIRunLoopSemaphore
Autorelease adds the receiver to the current autorelease pool.
func (HIRunLoopSemaphore) Init ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Init() HIRunLoopSemaphore
Init initializes the instance.
func (HIRunLoopSemaphore) InitWithMode ¶ added in v0.5.0
func (h HIRunLoopSemaphore) InitWithMode(mode objectivec.IObject) HIRunLoopSemaphore
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/initWithMode:
func (HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlock ¶ added in v0.5.0
func (h HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlock(duration float64, block VoidHandler)
func (HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlockSync ¶ added in v0.5.0
func (h HIRunLoopSemaphore) InvokeLoopInModeForDurationWithBlockSync(ctx context.Context, duration float64) error
InvokeLoopInModeForDurationWithBlockSync is a synchronous wrapper around HIRunLoopSemaphore.InvokeLoopInModeForDurationWithBlock. It blocks until the completion handler fires or the context is cancelled.
func (HIRunLoopSemaphore) Legend ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Legend() string
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/legend
func (HIRunLoopSemaphore) Mode ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Mode() objectivec.IObject
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/mode
func (HIRunLoopSemaphore) SetLegacyWake ¶ added in v0.5.0
func (h HIRunLoopSemaphore) SetLegacyWake()
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/setLegacyWake
func (HIRunLoopSemaphore) SetLegend ¶ added in v0.5.0
func (h HIRunLoopSemaphore) SetLegend(value string)
func (HIRunLoopSemaphore) Signal ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Signal()
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/signal
func (HIRunLoopSemaphore) Wait ¶ added in v0.5.0
func (h HIRunLoopSemaphore) Wait()
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/wait
func (HIRunLoopSemaphore) WaitWithWait ¶ added in v0.5.0
func (h HIRunLoopSemaphore) WaitWithWait(wait float64) bool
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore/wait:
type HIRunLoopSemaphoreClass ¶ added in v0.5.0
type HIRunLoopSemaphoreClass struct {
// contains filtered or unexported fields
}
func GetHIRunLoopSemaphoreClass ¶ added in v0.5.0
func GetHIRunLoopSemaphoreClass() HIRunLoopSemaphoreClass
GetHIRunLoopSemaphoreClass returns the class object for HIRunLoopSemaphore.
func (HIRunLoopSemaphoreClass) Alloc ¶ added in v0.5.0
func (hc HIRunLoopSemaphoreClass) Alloc() HIRunLoopSemaphore
Alloc allocates memory for a new instance of the class.
func (HIRunLoopSemaphoreClass) Class ¶ added in v0.5.0
func (hc HIRunLoopSemaphoreClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (HIRunLoopSemaphoreClass) Invocations ¶ added in v0.5.0
func (_HIRunLoopSemaphoreClass HIRunLoopSemaphoreClass) Invocations() objectivec.IObject
Invocations is an exported wrapper for the private method _invocations.
func (HIRunLoopSemaphoreClass) ObserveWhilePerforming ¶ added in v0.5.0
func (_HIRunLoopSemaphoreClass HIRunLoopSemaphoreClass) ObserveWhilePerforming(_observe objectivec.IObject, performing VoidHandler)
ObserveWhilePerforming is an exported wrapper for the private method _observeWhilePerforming.
type HIRunLoopUtilities ¶ added in v0.5.0
type HIRunLoopUtilities struct {
objectivec.Object
}
Methods ¶
- [HIRunLoopUtilities._blockQueueDepth]
See: https://developer.apple.com/documentation/HIServices/HIRunLoopUtilities
func HIRunLoopUtilitiesFromID ¶ added in v0.5.0
func HIRunLoopUtilitiesFromID(id objc.ID) HIRunLoopUtilities
HIRunLoopUtilitiesFromID constructs a HIRunLoopUtilities from an objc.ID.
func NewHIRunLoopUtilities ¶ added in v0.5.0
func NewHIRunLoopUtilities() HIRunLoopUtilities
NewHIRunLoopUtilities creates a new HIRunLoopUtilities instance.
func (HIRunLoopUtilities) Autorelease ¶ added in v0.5.0
func (h HIRunLoopUtilities) Autorelease() HIRunLoopUtilities
Autorelease adds the receiver to the current autorelease pool.
func (HIRunLoopUtilities) BlockQueueDepth ¶ added in v0.5.0
func (h HIRunLoopUtilities) BlockQueueDepth() uint32
BlockQueueDepth is an exported wrapper for the private method _blockQueueDepth.
func (HIRunLoopUtilities) Init ¶ added in v0.5.0
func (h HIRunLoopUtilities) Init() HIRunLoopUtilities
Init initializes the instance.
type HIRunLoopUtilitiesClass ¶ added in v0.5.0
type HIRunLoopUtilitiesClass struct {
// contains filtered or unexported fields
}
func GetHIRunLoopUtilitiesClass ¶ added in v0.5.0
func GetHIRunLoopUtilitiesClass() HIRunLoopUtilitiesClass
GetHIRunLoopUtilitiesClass returns the class object for HIRunLoopUtilities.
func (HIRunLoopUtilitiesClass) AddRunLoopModesForDeferredActions ¶ added in v0.5.0
func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) AddRunLoopModesForDeferredActions(actions objectivec.IObject)
func (HIRunLoopUtilitiesClass) Alloc ¶ added in v0.5.0
func (hc HIRunLoopUtilitiesClass) Alloc() HIRunLoopUtilities
Alloc allocates memory for a new instance of the class.
func (HIRunLoopUtilitiesClass) Class ¶ added in v0.5.0
func (hc HIRunLoopUtilitiesClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (HIRunLoopUtilitiesClass) CurrentRunLoopMode ¶ added in v0.5.0
func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) CurrentRunLoopMode() objectivec.IObject
CurrentRunLoopMode is an exported wrapper for the private method _currentRunLoopMode.
func (HIRunLoopUtilitiesClass) DeferActions ¶ added in v0.5.0
func (_HIRunLoopUtilitiesClass HIRunLoopUtilitiesClass) DeferActions(actions VoidHandler)
See: https://developer.apple.com/documentation/HIServices/HIRunLoopUtilities/deferActions:
func (HIRunLoopUtilitiesClass) DeferActionsSync ¶ added in v0.5.0
func (hc HIRunLoopUtilitiesClass) DeferActionsSync(ctx context.Context) error
DeferActionsSync is a synchronous wrapper around [HIRunLoopUtilities.DeferActions]. It blocks until the completion handler fires or the context is cancelled.
type IHIRunLoopSemaphore ¶ added in v0.5.0
type IHIRunLoopSemaphore interface {
objectivec.IObject
InvokeLoopInModeForDurationWithBlock(duration float64, block VoidHandler)
Legend() string
SetLegend(value string)
Mode() objectivec.IObject
SetLegacyWake()
Signal()
Wait()
WaitWithWait(wait float64) bool
InitWithMode(mode objectivec.IObject) HIRunLoopSemaphore
}
An interface definition for the HIRunLoopSemaphore class.
Methods ¶
- [IHIRunLoopSemaphore.InvokeLoopInModeForDurationWithBlock]
- [IHIRunLoopSemaphore.Legend]
- [IHIRunLoopSemaphore.SetLegend]
- [IHIRunLoopSemaphore.Mode]
- [IHIRunLoopSemaphore.SetLegacyWake]
- [IHIRunLoopSemaphore.Signal]
- [IHIRunLoopSemaphore.Wait]
- [IHIRunLoopSemaphore.WaitWithWait]
- [IHIRunLoopSemaphore.InitWithMode]
See: https://developer.apple.com/documentation/HIServices/HIRunLoopSemaphore
type IHIRunLoopUtilities ¶ added in v0.5.0
type IHIRunLoopUtilities interface {
objectivec.IObject
// contains filtered or unexported methods
}
An interface definition for the HIRunLoopUtilities class.
Methods ¶
- [IHIRunLoopUtilities._blockQueueDepth]
See: https://developer.apple.com/documentation/HIServices/HIRunLoopUtilities
type VoidHandler ¶ added in v0.5.0
type VoidHandler = func()
VoidHandler is the signature for a completion handler block.
Used by:
- HIRunLoopSemaphore.InvokeLoopInModeForDurationWithBlock
- [HIRunLoopSemaphore._observeWhilePerforming]
- [HIRunLoopUtilities.DeferActions]