de.unikassel.android.sdcframework.util
Class ExternalStorageStateChangeEventImpl
java.lang.Object
de.unikassel.android.sdcframework.util.ExternalStorageStateChangeEventImpl
- All Implemented Interfaces:
- ExternalStorageStateChangeEvent, ObservableEvent
public class ExternalStorageStateChangeEventImpl
- extends Object
- implements ExternalStorageStateChangeEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
state
private final ExternalStorageStateChangeEventImpl.State state
- The current availability state
ExternalStorageStateChangeEventImpl
public ExternalStorageStateChangeEventImpl(ExternalStorageStateChangeEventImpl.State state)
- Constructor
- Parameters:
state
- the current availability state
isExternalStorageAvailableForRead
public boolean isExternalStorageAvailableForRead()
- Description copied from interface:
ExternalStorageStateChangeEvent
- Test method if external storage is available for read access
- Specified by:
isExternalStorageAvailableForRead
in interface ExternalStorageStateChangeEvent
- Returns:
- true if available for read access
isExternalStorageAvailableForWrite
public boolean isExternalStorageAvailableForWrite()
- Description copied from interface:
ExternalStorageStateChangeEvent
- Test method if external storage is available for write access
- Specified by:
isExternalStorageAvailableForWrite
in interface ExternalStorageStateChangeEvent
- Returns:
- true if available for write access