set_restore_token


Description:

public void set_restore_token (string restore_token)

Sets the restore token for the session about to be started.

This instructs the portal to restore the previous session identified by this token.

This method can only be called for a session created with [method@Portal.create_input_capture_session2] and only before [ method@InputCaptureSession.start] has been called. It has no effect otherwise.

The restore token for the current session can be obtained with [method@InputCaptureSession.get_restore_token].

Parameters:

this

a [class@InputCaptureSession]

restore_token

a restore token from a previous session