canEject

open fun canEject(): Boolean(source)

Checks if a drive can be ejected.

Return

true if the @drive can be ejected, false otherwise.