notification

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncWillStart   = "com.apple.itunes-mobdev.syncWillStart"
	SyncDidStart    = "com.apple.itunes-mobdev.syncDidStart"
	SyncDidFinish   = "com.apple.itunes-mobdev.syncDidFinish"
	SyncLockRequest = "com.apple.itunes-mobdev.syncLockRequest"
)
View Source
const (
	SyncCancelRequest            = "com.apple.itunes-client.syncCancelRequest"
	SyncSuspendRequest           = "com.apple.itunes-client.syncSuspendRequest"
	SyncResumeRequest            = "com.apple.itunes-client.syncResumeRequest"
	PhoneNumberChanged           = "com.apple.mobile.lockdown.phone_number_changed"
	DeviceNameChanged            = "com.apple.mobile.lockdown.device_name_changed"
	TimezoneChanged              = "com.apple.mobile.lockdown.timezone_changed"
	TrustedHostAttached          = "com.apple.mobile.lockdown.trusted_host_attached"
	HostDetached                 = "com.apple.mobile.lockdown.host_detached"
	HostAttached                 = "com.apple.mobile.lockdown.host_attached"
	RegistrationFailed           = "com.apple.mobile.lockdown.registration_failed"
	ActivationState              = "com.apple.mobile.lockdown.activation_state"
	BrickState                   = "com.apple.mobile.lockdown.brick_state"
	DiskUageChanged              = "com.apple.mobile.lockdown.disk_usage_changed"
	DataSyncDomainChanged        = "com.apple.mobile.data_sync.domain_changed"
	BackupDomainChanged          = "com.apple.mobile.backup.domain_changed"
	ApplicationInstalled         = "com.apple.mobile.application_installed"
	ApplicationUninstalled       = "com.apple.mobile.application_uninstalled"
	DeveloperImageMounter        = "com.apple.mobile.developer_image_mounted"
	AttemptActivation            = "com.apple.springboard.attemptactivation"
	ITDBPrepNoficationDidEnd     = "com.apple.itdbprep.notification.didEnd"
	LanguageChanged              = "com.apple.language.changed"
	AddressBookPreferenceChanged = "com.apple.AddressBook.PreferenceChanged"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Listen

func (c *Client) Listen(ctx context.Context) error

func (*Client) ObserveAllNotifications

func (c *Client) ObserveAllNotifications() error

func (*Client) ObserveNotification

func (c *Client) ObserveNotification(notification string) error

func (*Client) PostNotification

func (c *Client) PostNotification(notification string) error

type ObserveNotificationEvent

type ObserveNotificationEvent struct {
	Command string `plist:"Command,omitempty"`
	Name    string `plist:"Name,omitempty"`
}

type ObserveNotificationRequest

type ObserveNotificationRequest struct {
	Command string `plist:"Command,omitempty"`
	Name    string `plist:"Name,omitempty"`
}

Jump to

Keyboard shortcuts

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