Infinity.AdoptedSessionRecord¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The filename of the record file |
||
r/w/co |
The session to record |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Infinity.AdoptedSessionRecord(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infinity.AdoptedSessionRecord
is an opaque data type. You should only access it via the public API functions.- classmethod new(session)¶
- Parameters:
session (
Infinity.AdoptedSession
) – AInfinity.AdoptedSession
.- Returns:
- Return type:
Creates a new
Infinity.AdoptedSessionRecord
, recording session. To start recording, callInfinity.AdoptedSessionRecord.start_recording
().
- is_recording()¶
- Returns:
Whether self currently records the session.
- Return type:
Returns whether self is currently recording a session.
- start_recording(filename)¶
- Parameters:
filename (
str
) – The file in which to store the record.- Raises:
- Returns:
True
if the session is started to be recorded,False
on error.- Return type:
Starts to record the session. Make sure the session is not already closed before calling this function. If an error occurs, such as if filename could not be opened, then the function returns
False
and error is set.
- stop_recording()¶
-
Stops the recording of the current session, which must have been started previously via
Infinity.AdoptedSessionRecord.start_recording
(). If an error occurs, then the function returnsFalse
and error is set. Note that even if an error occurs, then the recording is stopped as well. However, the file might not have been completely written to disk, so you should still show any errors during this function to the user.
Property Details¶
- Infinity.AdoptedSessionRecord.props.filename¶
-
The filename of the record file
- Infinity.AdoptedSessionRecord.props.session¶
- Name:
session
- Type:
- Default Value:
- Flags:
The session to record