get_restore_token


Description:

public unowned string get_restore_token ()

Returns the restore token for this session or NULL if none exists.

This token can be passed to [method@InputCaptureSession.set_restore_token] for a future session to restore this session, possibly skipping interactive permission dialogs.

This method only returns a token for a session created with [method@Portal.create_input_capture_session2] and only once [ method@InputCaptureSession.start_finish] has completed.

The token may change with every session.

Parameters:

this

a [class@InputCaptureSession]

Returns:

the restore token or NULL