Documentation ¶
Overview ¶
Package accessibility implements the Accessibility service.
Index ¶
- type GSettingsSubset
- type Option
- type Service
- func (s *Service) DisableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableLargeText(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableMouseKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableSlowKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableStickyKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) DisableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableLargeText(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableMouseKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableSlowKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableStickyKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) EnableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Service) GetDesktopZoom(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetHighContrast(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetLargeText(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetMouseKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetReducedMotion(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetScreenReader(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetSlowKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetStickyKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (s *Service) GetVisualAlerts(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GSettingsSubset ¶
type GSettingsSubset interface { IsWritable(key string) bool // contains filtered or unexported methods }
GSettingsSubset is a minimal subset of the GSettings interface to make for easier mocking.
type Service ¶
type Service struct { pb.UnimplementedAccessibilityServiceServer // contains filtered or unexported fields }
Service is the implementation of the Keyboard service.
func (*Service) DisableDesktopZoom ¶
func (s *Service) DisableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableDesktopZoom disables desktop zoom.
func (*Service) DisableHighContrast ¶
func (s *Service) DisableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableHighContrast disables high contrast.
func (*Service) DisableLargeText ¶
DisableLargeText disables large text.
func (*Service) DisableMouseKeys ¶
DisableMouseKeys disables mouse keys.
func (*Service) DisableReducedMotion ¶
func (s *Service) DisableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableReducedMotion disables reduced motion.
func (*Service) DisableScreenKeyboard ¶
func (s *Service) DisableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableScreenKeyboard disables the screen keyboard.
func (*Service) DisableScreenReader ¶
func (s *Service) DisableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableScreenReader disables screen reader.
func (*Service) DisableSlowKeys ¶
DisableSlowKeys disables slow keys.
func (*Service) DisableStickyKeys ¶
func (s *Service) DisableStickyKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableStickyKeys disables sticky keys.
func (*Service) DisableVisualAlerts ¶
func (s *Service) DisableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
DisableVisualAlerts disables visual alerts.
func (*Service) EnableDesktopZoom ¶
func (s *Service) EnableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableDesktopZoom enables desktop zoom.
func (*Service) EnableHighContrast ¶
func (s *Service) EnableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableHighContrast enables high contrast.
func (*Service) EnableLargeText ¶
EnableLargeText enables large text.
func (*Service) EnableMouseKeys ¶
EnableMouseKeys enables mouse keys.
func (*Service) EnableReducedMotion ¶
func (s *Service) EnableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableReducedMotion enables reduced motion.
func (*Service) EnableScreenKeyboard ¶
func (s *Service) EnableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableScreenKeyboard enables the screen keyboard.
func (*Service) EnableScreenReader ¶
func (s *Service) EnableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableScreenReader enables screen reader.
func (*Service) EnableSlowKeys ¶
EnableSlowKeys enables slow keys.
func (*Service) EnableStickyKeys ¶
EnableStickyKeys enables sticky keys.
func (*Service) EnableVisualAlerts ¶
func (s *Service) EnableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
EnableVisualAlerts enables visual alerts.
func (*Service) GetDesktopZoom ¶
func (s *Service) GetDesktopZoom(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetDesktopZoom returns the current state of desktop zoom.
func (*Service) GetHighContrast ¶
func (s *Service) GetHighContrast(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetHighContrast returns the current state of high contrast.
func (*Service) GetLargeText ¶
func (s *Service) GetLargeText(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetLargeText returns the current state of large text.
func (*Service) GetMouseKeys ¶
func (s *Service) GetMouseKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetMouseKeys returns the current state of mouse keys.
func (*Service) GetReducedMotion ¶
func (s *Service) GetReducedMotion(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetReducedMotion returns the current state of reduced motion.
func (*Service) GetScreenKeyboard ¶
func (s *Service) GetScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetScreenKeyboard returns the current state of the screen keyboard.
func (*Service) GetScreenReader ¶
func (s *Service) GetScreenReader(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetScreenReader returns the current state of screen reader.
func (*Service) GetSlowKeys ¶
func (s *Service) GetSlowKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetSlowKeys returns the current state of slow keys.
func (*Service) GetStickyKeys ¶
func (s *Service) GetStickyKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetStickyKeys returns the current state of sticky keys.
func (*Service) GetVisualAlerts ¶
func (s *Service) GetVisualAlerts(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)
GetVisualAlerts returns the current state of visual alerts.