session_monitor_start


Description:

public async bool session_monitor_start (Parent? parent, SessionMonitorFlags flags, Cancellable? cancellable) throws Error

Makes [class@Portal] start monitoring the login session state.

When the state changes, the [signal@Portal:XdpPortal:session-state-changed] signal is emitted.

Use [[email protected]_monitor_stop] to stop monitoring.

Parameters:

this

a [class@Portal]

parent

a XdpParent, or `NULL`

flags

options for this call

cancellable

optional [[email protected]]

callback

a callback to call when the request is done

data

data to pass to callback




2022 vala-language.org