Unsaved
File
constructor
name
get_
content
get_
file
get_
sequence
get_
temp_
path
persist
ref
unref
GJS API Reference
Ide-1.0
Ide
UnsavedFile
Class UnsavedFile
Hierarchy
UnsavedFile
Index
Constructors
constructor
Properties
name
Methods
get_
content
get_
file
get_
sequence
get_
temp_
path
persist
ref
unref
Constructors
constructor
new
Unsaved
File
(
)
:
UnsavedFile
Returns
UnsavedFile
Properties
Static
name
name
:
string
Methods
get_
content
get_
content
(
)
:
Bytes
Gets the contents of the unsaved file.
Returns
Bytes
get_
file
get_
file
(
)
:
Gio
.
File
Retrieves the underlying file represented by
self
.
Returns
Gio
.
File
get_
sequence
get_
sequence
(
)
:
number
Returns
number
get_
temp_
path
get_
temp_
path
(
)
:
string
Returns
string
persist
persist
(
cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
cancellable:
Gio
.
Cancellable
Returns
boolean
ref
ref
(
)
:
UnsavedFile
Returns
UnsavedFile
unref
unref
(
)
:
void
Returns
void
Unsaved
File
constructor
name
get_
content
get_
file
get_
sequence
get_
temp_
path
persist
ref
unref
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJJZGVfMV8wLklkZS5VbnNhdmVkRmlsZS5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJJZGVfMV8wLklkZS5VbnNhdmVkRmlsZS5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ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