Volume.canEject

bool canEject()

Checks if a volume can be ejected.

Returns

true if the volume can be ejected. false otherwise