Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.Unix.UrlProtocol Class Reference

Contains control logic for applying Model.Capabilities.UrlProtocol and AccessPoints.UrlProtocol on GNOME systems. More...

Static Public Member Functions

static void Register (FeedTarget target, Model.Capabilities.UrlProtocol urlProtocol, IIconStore iconStore, bool machineWide, bool accessPoint=false)
 Registers a URL protocol in the current system. More...
 
static void Unregister (Model.Capabilities.UrlProtocol urlProtocol, bool machineWide, bool accessPoint=false)
 Unregisters a URL protocol in the current system. More...
 

Detailed Description

Contains control logic for applying Model.Capabilities.UrlProtocol and AccessPoints.UrlProtocol on GNOME systems.

Member Function Documentation

◆ Register()

static void ZeroInstall.DesktopIntegration.Unix.UrlProtocol.Register ( FeedTarget  target,
Model.Capabilities.UrlProtocol  urlProtocol,
IIconStore  iconStore,
bool  machineWide,
bool  accessPoint = false 
)
inlinestatic

Registers a URL protocol in the current system.

Parameters
targetThe application being integrated.
urlProtocolThe URL protocol to register.
machineWideRegister the URL protocol machine-wide instead of just for the current user.
iconStoreStores icon files downloaded from the web as local files.
accessPointIndicates that the handler shall become the default handler for the protocol.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while writing to the filesystem.
WebExceptionA problem occurred while downloading additional data (such as icons).
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

◆ Unregister()

static void ZeroInstall.DesktopIntegration.Unix.UrlProtocol.Unregister ( Model.Capabilities.UrlProtocol  urlProtocol,
bool  machineWide,
bool  accessPoint = false 
)
inlinestatic

Unregisters a URL protocol in the current system.

Parameters
urlProtocolThe URL protocol to remove.
machineWideUnregister the URL protocol machine-wide instead of just for the current user.
accessPointIndicates that the handler was the default handler for the protocol.
Exceptions
IOExceptionA problem occurred while writing to the filesystem.
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

The documentation for this class was generated from the following file: