Skip to main content

accessibility

type Service

Service manages the accessibility system, coordinating between the semantics tree, platform channels, and action handling.

type Service struct {
// contains filtered or unexported fields
}

func NewService

func NewService() *Service

NewService creates a new accessibility service.

func (*Service) Binding

func (s *Service) Binding() *semantics.SemanticsBinding

Binding returns the semantics binding.

func (*Service) FlushSemantics

func (s *Service) FlushSemantics(rootRender layout.RenderObject, dirtyBoundaries []layout.RenderObject)

FlushSemantics rebuilds and sends the semantics tree. If dirtyBoundaries is nil or empty on first frame, does a full rebuild. Otherwise, only rebuilds the dirty portions.

func (*Service) Initialize

func (s *Service) Initialize()

Initialize sets up the accessibility system. This should be called once when the engine starts.

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

IsEnabled returns whether accessibility is enabled.

func (*Service) Owner

func (s *Service) Owner() *semantics.SemanticsOwner

Owner returns the semantics owner.

func (*Service) SetDeviceScale

func (s *Service) SetDeviceScale(scale float64)

SetDeviceScale sets the device pixel scale for coordinate conversion.

func (*Service) SetEnabled

func (s *Service) SetEnabled(enabled bool)

SetEnabled enables or disables accessibility.

Generated by gomarkdoc