RemovableUserStorageState

@objc(GSRemovableUserStorageState)
public enum RemovableUserStorageState : Int, CustomStringConvertible

State of the removable storage.

  • No media detected.

    Declaration

    Swift

    case noMedia
  • Media rejected because it is too small for operation.

    Declaration

    Swift

    case mediaTooSmall
  • Media rejected because it is too slow for operation.

    Declaration

    Swift

    case mediaTooSlow
  • Media cannot be mounted since the drone acts as a USB mass-storage device.

    Declaration

    Swift

    case usbMassStorage
  • Media is being mounted.

    Declaration

    Swift

    case mounting
  • Media has to be reformatted.

    This means that the file system is not supported or the partition is not formatted, or the capacity is too low.

    Note

    The media won’t be usable until it is formatted.

    Declaration

    Swift

    case needFormat
  • Media is currently formatting.

    Declaration

    Swift

    case formatting
  • Media is ready to be used.

    Declaration

    Swift

    case ready
  • The latest try to format the media succeeded.

    This state indicates the result of formatting and is transient. The state will change to another state quickly after formatting result is notified.

    Declaration

    Swift

    case formattingSucceeded
  • The latest try to format the media failed.

    This state indicates the result of formatting and is transient. The state will change to another state quickly after formatting result is notified.

    Declaration

    Swift

    case formattingFailed
  • The latest try to format the media was denied.

    This state indicates the result of formatting and is transient. The state will change back to .needFormat or .ready immediately after formatting result is notified.

    Declaration

    Swift

    case formattingDenied
  • An error occurred, media cannot be used.

    Declaration

    Swift

    case error
  • Debug description.

    Declaration

    Swift

    public var description: String { get }