canEject

canEject(): Boolean;

The canEject method of the MultiMedia class returns whether the device can eject its media.

If the useDotNetVersion property is set to true, the canEject method returns a fixed value of false.

The method in the following example shows the use of the canEject method.

eject_click(btn: Button input) updating;
begin
    if cd.canEject then
        cd.stop;
        cd.eject;
    endif;
end;