Drive.hasMedia

Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see gio.drive.Drive.isMediaCheckAutomatic for more details.

interface Drive
bool
hasMedia
()

Return Value

Type: bool

true if drive has media, false otherwise.