CameraPhotoFunctionState

@objc(GSCameraPhotoFunctionState)
public enum CameraPhotoFunctionState : Int, CustomStringConvertible

Camera photo function state.

  • Camera photo function is inoperable at present. When entering this state latest saved media id is reset to nil and current taken photo count is reset to 0

    Declaration

    Swift

    case unavailable
  • Camera photo function is ready to be operated.

    Declaration

    Swift

    case stopped
  • Camera is currently taking a photo. This state is entered after a successful call to takePhoto(), or if the application connects to a drone while the latter is currently taking photo(s).

    Declaration

    Swift

    case started
  • Photo could not be saved due to insufficient storage space on the drone. This state is entered when taking photo(s) fails for the aforementioned reason, and is transient: state switches back to ready immediately after.

    Declaration

    Swift

    case errorInsufficientStorageSpace
  • Photo could not be saved due to an internal error. Warning: this state can be temporary, and can be quickly followed by the state .ready or .unavailable.

    Declaration

    Swift

    case errorInternal
  • Photo capture is stopping. This state is entered from taking photo(s) after a call from stopPhotoCapture.

    Declaration

    Swift

    case stopping
  • Debug description.

    Declaration

    Swift

    public var description: String { get }