Documentation
¶
Overview ¶
Package screenshare is the screen shares the desktop portal runs: what each ScreenCast or RemoteDesktop session streams, and a way to stop one. The portal serves Interface; Shares follows it for the bar.
Index ¶
Constants ¶
const ( BusName = "org.freedesktop.impl.portal.desktop.lys" Path = dbus.ObjectPath("/org/freedesktop/portal/desktop") Interface = "dev.stubbe.lys.ScreenShares1" )
D-Bus identity: the portal backend's name and object, where Interface sits beside the org.freedesktop.impl.portal ones.
const ( KindScreenCast = "screencast" KindRemoteDesktop = "remotedesktop" )
The kinds of share.
const ( TargetOutput = "output" TargetWindow = "window" TargetRegion = "region" )
The kinds of target.
Variables ¶
var Changed = dbusx.NewSignal[struct{}](Interface, "Changed")
Changed is emitted when a share starts or ends.
Functions ¶
This section is empty.
Types ¶
type Share ¶
type Share struct {
// App is the app's id; "" for an app outside a sandbox.
}
Share is one session streaming the screen.
type Shares ¶
type Shares struct {
// contains filtered or unexported fields
}
Shares follows the portal's shares on a session bus: the list is read again on each Changed and each time the portal comes or goes.