Mount
Iface
constructor
g_
iface
name
can_
eject
can_
unmount
changed
eject
eject_
finish
eject_
with_
operation
eject_
with_
operation_
finish
get_
default_
location
get_
drive
get_
icon
get_
name
get_
root
get_
sort_
key
get_
symbolic_
icon
get_
uuid
get_
volume
guess_
content_
type
guess_
content_
type_
finish
guess_
content_
type_
sync
pre_
unmount
remount
remount_
finish
unmount
unmount_
finish
unmount_
with_
operation
unmount_
with_
operation_
finish
unmounted
GJS API Reference
Gio-2.0
Gio
MountIface
Class MountIface
Interface for implementing operations for mounts.
record
Hierarchy
MountIface
Index
Constructors
constructor
Properties
g_
iface
name
Methods
can_
eject
can_
unmount
changed
eject
eject_
finish
eject_
with_
operation
eject_
with_
operation_
finish
get_
default_
location
get_
drive
get_
icon
get_
name
get_
root
get_
sort_
key
get_
symbolic_
icon
get_
uuid
get_
volume
guess_
content_
type
guess_
content_
type_
finish
guess_
content_
type_
sync
pre_
unmount
remount
remount_
finish
unmount
unmount_
finish
unmount_
with_
operation
unmount_
with_
operation_
finish
unmounted
Constructors
constructor
new
Mount
Iface
(
)
:
MountIface
Returns
MountIface
Properties
g_
iface
g_
iface
:
TypeInterface
The parent interface.
field
Static
name
name
:
string
Methods
can_
eject
can_
eject
(
mount
:
Mount
)
:
boolean
Parameters
mount:
Mount
Returns
boolean
can_
unmount
can_
unmount
(
mount
:
Mount
)
:
boolean
Parameters
mount:
Mount
Returns
boolean
changed
changed
(
mount
:
Mount
)
:
void
Parameters
mount:
Mount
Returns
void
eject
eject
(
mount
:
Mount
, flags
:
MountUnmountFlags
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
flags:
MountUnmountFlags
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
eject_
finish
eject_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
boolean
Parameters
mount:
Mount
result:
AsyncResult
Returns
boolean
eject_
with_
operation
eject_
with_
operation
(
mount
:
Mount
, flags
:
MountUnmountFlags
, mount_operation
:
Gio
.
MountOperation
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
flags:
MountUnmountFlags
mount_operation:
Gio
.
MountOperation
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
eject_
with_
operation_
finish
eject_
with_
operation_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
boolean
Parameters
mount:
Mount
result:
AsyncResult
Returns
boolean
get_
default_
location
get_
default_
location
(
mount
:
Mount
)
:
Gio
.
File
Parameters
mount:
Mount
Returns
Gio
.
File
get_
drive
get_
drive
(
mount
:
Mount
)
:
Gio
.
Drive
Parameters
mount:
Mount
Returns
Gio
.
Drive
get_
icon
get_
icon
(
mount
:
Mount
)
:
Gio
.
Icon
Parameters
mount:
Mount
Returns
Gio
.
Icon
get_
name
get_
name
(
mount
:
Mount
)
:
string
Parameters
mount:
Mount
Returns
string
get_
root
get_
root
(
mount
:
Mount
)
:
Gio
.
File
Parameters
mount:
Mount
Returns
Gio
.
File
get_
sort_
key
get_
sort_
key
(
mount
:
Mount
)
:
string
Parameters
mount:
Mount
Returns
string
get_
symbolic_
icon
get_
symbolic_
icon
(
mount
:
Mount
)
:
Gio
.
Icon
Parameters
mount:
Mount
Returns
Gio
.
Icon
get_
uuid
get_
uuid
(
mount
:
Mount
)
:
string
Parameters
mount:
Mount
Returns
string
get_
volume
get_
volume
(
mount
:
Mount
)
:
Volume
Parameters
mount:
Mount
Returns
Volume
guess_
content_
type
guess_
content_
type
(
mount
:
Mount
, force_rescan
:
boolean
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
force_rescan:
boolean
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
guess_
content_
type_
finish
guess_
content_
type_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
string
[]
Parameters
mount:
Mount
result:
AsyncResult
Returns
string
[]
guess_
content_
type_
sync
guess_
content_
type_
sync
(
mount
:
Mount
, force_rescan
:
boolean
, cancellable
:
Gio
.
Cancellable
)
:
string
[]
Parameters
mount:
Mount
force_rescan:
boolean
cancellable:
Gio
.
Cancellable
Returns
string
[]
pre_
unmount
pre_
unmount
(
mount
:
Mount
)
:
void
Parameters
mount:
Mount
Returns
void
remount
remount
(
mount
:
Mount
, flags
:
MountMountFlags
, mount_operation
:
Gio
.
MountOperation
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
flags:
MountMountFlags
mount_operation:
Gio
.
MountOperation
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
remount_
finish
remount_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
boolean
Parameters
mount:
Mount
result:
AsyncResult
Returns
boolean
unmount
unmount
(
mount
:
Mount
, flags
:
MountUnmountFlags
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
flags:
MountUnmountFlags
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
unmount_
finish
unmount_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
boolean
Parameters
mount:
Mount
result:
AsyncResult
Returns
boolean
unmount_
with_
operation
unmount_
with_
operation
(
mount
:
Mount
, flags
:
MountUnmountFlags
, mount_operation
:
Gio
.
MountOperation
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
mount:
Mount
flags:
MountUnmountFlags
mount_operation:
Gio
.
MountOperation
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
unmount_
with_
operation_
finish
unmount_
with_
operation_
finish
(
mount
:
Mount
, result
:
AsyncResult
)
:
boolean
Parameters
mount:
Mount
result:
AsyncResult
Returns
boolean
unmounted
unmounted
(
mount
:
Mount
)
:
void
Parameters
mount:
Mount
Returns
void
Mount
Iface
constructor
g_
iface
name
can_
eject
can_
unmount
changed
eject
eject_
finish
eject_
with_
operation
eject_
with_
operation_
finish
get_
default_
location
get_
drive
get_
icon
get_
name
get_
root
get_
sort_
key
get_
symbolic_
icon
get_
uuid
get_
volume
guess_
content_
type
guess_
content_
type_
finish
guess_
content_
type_
sync
pre_
unmount
remount
remount_
finish
unmount
unmount_
finish
unmount_
with_
operation
unmount_
with_
operation_
finish
unmounted
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8wLkdpby5Nb3VudElmYWNlLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8wLkdpby5Nb3VudElmYWNlLmh0bWwjZ19pZmFjZSIsIm5hbWUiOiJnX2lmYWNlIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJHaW9fMl8wLkdpby5Nb3VudElmYWNlLmh0bWwjbmFtZSIsIm5hbWUiOiJuYW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1tZXRob2QgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6Ikdpb18yXzAuR2lvLk1vdW50SWZhY2UuaHRtbCNjYW5fZWplY3QiLCJuYW1lIjoiY2FuX2Vq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