Documentation ¶
Index ¶
- Constants
- Variables
- func CancelAllUISubscriptions()
- func DownloadUpdates()
- func DownloadUpdatesOnWifiConnected()
- func IsEngineInitialized() bool
- func IsGeoIPDataAvailable() (bool, error)
- func NotifiOnNotMeterdNetwork() <-chan struct{}
- func OnActivityDestroy()
- func OnCreate(appDir string)
- func OnDestroy()
- func OnIdleModeChanged(isOnIdleMode bool)
- func OnNetworkCapabilitiesChanged(network Network)
- func OnNetworkConnected()
- func OnNetworkDisconnected()
- func OnServiceDestroy()
- func RemoveSubscription(eventID string)
- func SetActivityFunctions(functions app_interface.AppInterface)
- func SetOSFunctions(functions app_interface.AppInterface)
- func SetServiceFunctions(functions app_interface.AppInterface)
- func UISubscribeRequest(req *SubscribeRequest)
- type Network
- type PluginCall
- type SubscribeRequest
Constants ¶
View Source
const ( StableApplicationID = "io.safing.portmaster.android" BetaApplicationID = "io.safing.portmaster.android.beta" )
Variables ¶
View Source
var (
IsCurrentNetworkNotMetered abool.AtomicBool
)
View Source
var NET_CAPABILITY_NOT_METERED int32 = 11
View Source
var (
NewApkVersion abool.AtomicBool
)
Functions ¶
func CancelAllUISubscriptions ¶
func CancelAllUISubscriptions()
func DownloadUpdates ¶
func DownloadUpdates()
func DownloadUpdatesOnWifiConnected ¶
func DownloadUpdatesOnWifiConnected()
func IsEngineInitialized ¶
func IsEngineInitialized() bool
func IsGeoIPDataAvailable ¶
func NotifiOnNotMeterdNetwork ¶
func NotifiOnNotMeterdNetwork() <-chan struct{}
func OnActivityDestroy ¶
func OnActivityDestroy()
func OnIdleModeChanged ¶
func OnIdleModeChanged(isOnIdleMode bool)
OnIdleModeChanged is called from java when device switches from or to idle mode.
func OnNetworkCapabilitiesChanged ¶
func OnNetworkCapabilitiesChanged(network Network)
OnNetworkConnected called from java when a network interface changes some of its properties.
func OnNetworkConnected ¶
func OnNetworkConnected()
OnNetworkConnected called from java when new network interface is connected.
func OnNetworkDisconnected ¶
func OnNetworkDisconnected()
OnNetworkConnected called from java when a network interface is disconnected.
func OnServiceDestroy ¶
func OnServiceDestroy()
func RemoveSubscription ¶
func RemoveSubscription(eventID string)
func SetActivityFunctions ¶
func SetActivityFunctions(functions app_interface.AppInterface)
func SetOSFunctions ¶
func SetOSFunctions(functions app_interface.AppInterface)
func SetServiceFunctions ¶
func SetServiceFunctions(functions app_interface.AppInterface)
func UISubscribeRequest ¶
func UISubscribeRequest(req *SubscribeRequest)
Types ¶
type PluginCall ¶
type PluginCall interface { Resolve() ResolveJson(obj string) Error(err string) GetArgs() string GetInt(name string) (int32, error) GetLong(name string) (int64, error) GetFloat(name string) (float32, error) GetString(name string) (string, error) GetBool(name string) (bool, error) Notify(eventName string, data string) error KeepAlive(keepAlive bool) }
type SubscribeRequest ¶
type SubscribeRequest struct { EventName string Query string Call PluginCall }
Click to show internal directories.
Click to hide internal directories.