app_interface

package
v0.0.0-...-3226cea Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelNotification

func CancelNotification(ID int32) error

func ExportDebugInfo

func ExportDebugInfo(filename string, content []byte) error

func GetAppUID

func GetAppUID() (int, error)

func GetConnectionOwner

func GetConnectionOwner(connection Connection) (int, error)

func HasActivityFunctions

func HasActivityFunctions() bool

func HasOSFunctions

func HasOSFunctions() bool

func HasServiceFunctions

func HasServiceFunctions() bool

func MinimizeApp

func MinimizeApp() error

func RemoveActivityFunctionReference

func RemoveActivityFunctionReference()

func RemoveServiceFunctionReference

func RemoveServiceFunctionReference()

func SendServicesCommand

func SendServicesCommand(command string) error

func SendUIEvent

func SendUIEvent(event Event) error

func SendUIWindowEvent

func SendUIWindowEvent(name, data string) error

func SetActivityFunctions

func SetActivityFunctions(appInterface AppInterface)

func SetDefaultInterfaceForSocket

func SetDefaultInterfaceForSocket(socketID uintptr) error

func SetOSFunctions

func SetOSFunctions(appInterface AppInterface)

func SetServiceFunctions

func SetServiceFunctions(appInterface AppInterface)

func ShowNotification

func ShowNotification(notification *Notification) error

func Shutdown

func Shutdown() error

func VPNInit

func VPNInit() (int, error)

Types

type AppFunctions

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

type AppInterface

type AppInterface interface {
	CallFunction(string, []byte) ([]byte, error)
}

type Connection

type Connection struct {
	Protocol   int
	LocalIP    net.IP
	LocalPort  int
	RemoteIP   net.IP
	RemotePort int
}

type Event

type Event struct {
	Name   string
	Target string
	Data   string
}

type NetworkAddress

type NetworkAddress struct {
	Addr         string
	PrefixLength int
	IsIPv6       bool
}

func GetNetworkAddresses

func GetNetworkAddresses() ([]NetworkAddress, error)

func (*NetworkAddress) String

func (a *NetworkAddress) String() string

func (*NetworkAddress) ToIPNet

func (a *NetworkAddress) ToIPNet() (*net.IPNet, error)

type NetworkInterface

type NetworkInterface struct {
	Name      string
	Index     int
	MTU       int
	Up        bool
	Multicast bool
	Loopback  bool
	P2P       bool
	Addresses []NetworkAddress

	Flags net.Flags
}

func GetNetworkInterfaces

func GetNetworkInterfaces() ([]NetworkInterface, error)

func (*NetworkInterface) Addrs

func (i *NetworkInterface) Addrs() ([]NetworkAddress, error)

func (*NetworkInterface) GetProtocolAddresses

func (i *NetworkInterface) GetProtocolAddresses() []tcpip.ProtocolAddress

type Notification

type Notification struct {
	ID      int32
	Title   string
	Message string
}

type PlatformInfo

type PlatformInfo struct {
	Model         string
	Manufacturer  string
	Brand         string
	Board         string
	SDK           int
	VersionCode   int
	VersionName   string
	ApplicationID string
	BuildType     string
}

func GetPlatformInfo

func GetPlatformInfo() (*PlatformInfo, error)

Jump to

Keyboard shortcuts

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