springboard

package
v1.0.182 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppIcon

type AppIcon struct {
	Name              string `plist:"displayName"`
	DisplayIdentifier string `plist:"displayIdentifier"`
	BundleId          string `plist:"bundleIdentifier"`
	BundleVersion     string `plist:"bundleVersion"`
}

AppIcon represent a native app

func (AppIcon) DisplayName

func (a AppIcon) DisplayName() string

type Client

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

Client is a connection to the `com.apple.springboardservices` service on the device

func NewClient

func NewClient(d ios.DeviceEntry) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) ListIcons

func (c *Client) ListIcons() ([]Screen, error)

ListIcons provides the homescreen layout of the device

type Custom

type Custom struct {
	IconType string `plist:"iconType"`
}

Custom may be a widget or a paginated widget on the homescreen. We don't provide any information for this type of icon on the home screen

func (Custom) DisplayName

func (c Custom) DisplayName() string

type Folder

type Folder struct {
	Name     string `plist:"displayName"`
	Icons    [][]Icon
	ListType string `plist:"listType"`
}

Folder is a collection of items in a folder. Folders can also have multiple pages

func (Folder) DisplayName

func (f Folder) DisplayName() string

type Icon

type Icon interface {
	DisplayName() string
}

type Screen

type Screen []Icon

Screen is a list of Icons displayed on one page of the home screen the first entry is always the bar on the bottom of the home screen (also if it is empty)

type WebClip

type WebClip struct {
	Name              string `plist:"displayName"`
	DisplayIdentifier string `plist:"displayIdentifier"`
	URL               string `plist:"webClipURL"`
}

WebClip represent a Safari bookmark, or a progressive-web-app

func (WebClip) DisplayName

func (w WebClip) DisplayName() string

Jump to

Keyboard shortcuts

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