hiservices

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package hiservices provides Go bindings for the hiservices framework.

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

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:

Types

type HIRunLoopSemaphore added in v0.5.0

type HIRunLoopSemaphore struct {
	objectivec.Object
}

Methods

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

Init initializes the instance.

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

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

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)

See: https://developer.apple.com/documentation/HIServices/HIRunLoopUtilities/addRunLoopModesForDeferredActions:

func (HIRunLoopUtilitiesClass) Alloc added in v0.5.0

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:

Jump to

Keyboard shortcuts

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