[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[dji-ios] 33 Components-Camera

"
Camera
	DJICamera
	DJICameraSettingsDef
	DJICameraPlaybackState
	DJICameraSystemState
	DJICameraFocusState
	DJICameraSDCardState
	DJICameraSSDState
	DJICameraDisplayNames
	DJICameraCapabilities
	DJIMediaManager
	DJIMediaFile
	DJIPlaybackManager
"

DJICamera buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJICamera buildTypedGetters: #(
	#(mediaManager DJIMediaManager)
	#(playbackManager DJIPlaybackManager)
	#(capabilities DJICameraCapabilities)
)!
DJICamera buildGetters: #(
	displayName
)!
DJICamera buildFunctions: #(
	#(setMode:withCompletion: #(mode _completion))
	#(getModeWithCompletion: #(_completion))
	isMediaDownloadModeSupported
	isPlaybackSupported
	isTimeLapseSupported
)!
DJICamera buildFunctions: #(
	#(setShootPhotoMode:withCompletion: #(mode _completion))
	#(getShootPhotoModeWithCompletion: #(_completion))
	#(startShootPhotoWithCompletion: #(_completion))
	#(stopShootPhotoWithCompletion: #(_completion))
	#(startRecordVideoWithCompletion: #(_completion))
	#(stopRecordVideoWithCompletion: #(_completion))
	#(setFileIndexMode:withCompletion: #(mode _completion))
	#(getFileIndexModeWithCompletion: #(_completion))
	#(setVideoResolutionAndFrameRate:withCompletion: #(_resolutionAndFrameRate _completion))
	#(getVideoResolutionAndFrameRateWithCompletion: #(_completion))
	#(setVideoFileFormat:withCompletion: #(format _completion))
	#(getVideoFileFormatWithCompletion: #(_completion))
	#(setVideoStandard:withCompletion: #(_videoStandard _completion))
	#(getVideoStandardWithCompletion: #(_completion))
	#(setVideoCaptionEnabled:withCompletion: #(enabled _completion))
	#(getVideoCaptionEnabledWithCompletion: #(_completion))
	#(setVideoFileCompressionStandard:withCompletion: #(standard _completion))
	#(getVideoFileCompressionStandardWithCompletion: #(_completion))
	#(setPhotoAspectRatio:withCompletion: #(aspectRatio _completion))
	#(getPhotoAspectRatioWithCompletion: #(_completion))
	#(setPhotoFileFormat:withCompletion: #(_format _completion))
	#(getPhotoFileFormatWithCompletion: #(_completion))
	#(setPhotoBurstCount:withCompletion: #(count _completion))
	#(getPhotoBurstCountWithCompletion: #(_completion))
	#(setPhotoRAWBurstCount:withCompletion: #(count _completion))
	#(getPhotoRAWBurstCountWithCompletion: #(_completion))
	#(setPhotoAEBCount:withCompletion: #(count _completion))
	#(getPhotoAEBCountWithCompletion: #(_completion))
	#(setPhotoTimeIntervalSettings:withCompletion: #(_settings _completion))
	#(getPhotoTimeIntervalSettingsWithCompletion: #(_completion))
	#(setPhotoTimeLapseSettings:withCompletion: #(_settings _completion))
	#(getPhotoTimeLapseSettingsWithCompletion: #(_completion))
	#(setExposureMode:withCompletion: #(_mode _completion))
	#(getExposureModeWithCompletion: #(_completion))
	#(setISO:withCompletion: #(_iso _completion))
	#(getISOWithCompletion: #(_completion))
	#(setShutterSpeed:withCompletion: #(_shutterSpeed _completion))
	#(getShutterSpeedWithCompletion: #(_completion))
	#(setMeteringMode:withCompletion: #(mode _completion))
	#(getMeteringModeWithCompletion: #(_completion))
	#(setSpotMeteringTargetRowIndex:columnIndex:withCompletion: #(rowIndex columnIndex _completion))
	#(getSpotMeteringTargetWithCompletion: #(_completion))
	#(setExposureCompensation:withCompletion: #(_compensation _completion))
	#(getExposureCompensationWithCompletion: #(_completion))
	#(setAELock:withCompletion: #(isLocked _completion))
	#(getAELockWithCompletion: #(_completion))
	#(setAutoAEUnlockEnabled:withCompletion: #(enabled _completion))
	#(getAutoAEUnlockEnabledWithCompletion: #(_completion))
	#(setWhiteBalance:withCompletion: #(_whiteBalance _completion))
	#(getWhiteBalanceWithCompletion: #(_completion))
	#(setAntiFlickerFrequency:withCompletion: #(_antiFlickerFrequency _completion))
	#(getAntiFlickerFrequencyWithCompletion: #(_completion))
	#(setSharpness:withCompletion: #(sharpness _completion))
	#(getSharpnessWithCompletion: #(_completion))
	#(setContrast:withCompletion: #(contrast _completion))
	#(getContrastWithCompletion: #(_completion))
	#(setSaturation:withCompletion: #(saturation _completion))
	#(getSaturationWithCompletion: #(_completion))
	#(setDigitalFilter:withCompletion: #(_filter _completion))
	#(getDigitalFilterWithCompletion: #(_completion))
	isPhotoQuickViewSupported
	#(setPhotoQuickViewDuration:withCompletion: #(duration _completion))
	#(getPhotoQuickViewDurationWithCompletion: #(_completion))
	#(setDefogEnabled:withCompletion: #(enabled _completion))
	#(getDefogEnabledWithCompletion: #(_completion))
	isDigitalZoomSupported
	#(setDigitalZoomFactor:withCompletion: #(factor _completion))
	#(getDigitalZoomFactorWithCompletion: #(_completion))
	isOpticalZoomSupported
	#(getOpticalZoomSpecWithCompletion: #(_completion))
	#(setOpticalZoomFocalLength:withCompletion: #(focalLength _completion))
	#(getOpticalZoomFocalLengthWithCompletion: #(_completion))
	#(getOpticalZoomFactorWithCompletion: #(_completion))
	#(startContinuousOpticalZoomInDirection:withSpeed:withCompletion: #(_direction _speed _completion))
	#(stopContinuousOpticalZoomWithCompletion: #(_completion))
	isTapZoomSupported
	#(setTapZoomEnabled:withCompletion: #(enabled _completion))
	#(getTapZoomEnabledWithCompletion: #(_completion))
	#(setTapZoomMultiplier:withCompletion: #(multiplier _completion))
	#(getTapZoomMultiplierWithCompletion: #(_completion))
	#(tapZoomAtTarget:withCompletion: #(_target _completion))
	#(setHDLiveViewEnabled:withCompletion: #(enabled _completion))
	#(getHDLiveViewEnabledWithCompletion: #(_completion))
	#(setLEDAutoTurnOffEnabled:withCompletion: #(enabled _completion))
	#(getLEDAutoTurnOffEnabledWithCompletion: #(_completion))
	#(setOrientation:withCompletion: #(_orientation _completion))
	#(getOrientationWithCompletion: #(_completion))
	isAudioRecordingSupported
	#(setAudioRecordingEnabled:withCompletion: #(enabled _completion))
	#(getAudioRecordingEnabledWithCompletion: #(_completion))
	#(setAudioGain:withCompletion: #(value _completion))
	#(getAudioGainWithCompletion: #(_completion))
	#(setTurnOffFanWhenPossible:withCompletion: #(value _completion))
	#(getTurnOffFanWhenPossibleWithCompletion: #(_completion))
	isInterchangeableLensSupported
	#(getLensInformationWithCompletion: #(_completion))
	isAdjustableApertureSupported
	#(setAperture:withCompletion: #(_aperture _completion))
	#(getApertureWithCompletion: #(_completion))
	isAdjustableFocalPointSupported
	#(setFocusMode:withCompletion: #(_focusMode _completion))
	#(getFocusModeWithCompletion: #(_completion))
	#(setFocusTarget:withCompletion: #(_focusTarget _completion))
	#(getFocusTargetWithCompletion: #(_completion))
	#(setFocusAssistantSettings:withCompletion: #(_settings _completion))
	#(getFocusAssistantSettingsWithCompletion: #(_completion))
	#(getFocusRingValueUpperBoundWithCompletion: #(_completion))
	#(setFocusRingValue:withCompletion: #(_value _completion))
	#(getFocusRingValueWithCompletion: #(_completion))
	#(restoreFactorySettings: #(_completion))
	#(saveSettingsToProfile:withCompletion: #(_profile _completion))
	#(loadSettingsFromProfile:withCompletion: #(_profile _completion))
	#(formatSDCardWithCompletion: #(_completion))
	isSSDSupported
	#(formatSSDWithCompletion: #(_completion))
	#(setSSDVideoResolutionAndFrameRate:withCompletion: #(_resolutionAndFrameRate _completion))
	#(getSSDVideoResolutionAndFrameRateWithCompletion: #(_completion))
	#(setSSDVideoDigitalFilter:withCompletion: #(filter _completion))
	#(getSSDVideoDigitalFilterWithCompletion: #(_completion))
	#(getSSDVideoLicensesWithCompletion: #(_completion))
	#(activateSSDVideoLicense:withCompletion: #(_license _completion))
	#(getSSDVideoLicenseWithCompletion: #(_completion))
	#(setSSDVideoRecordingEnabled:withCompletion: #(enabled _completion))
	#(getSSDVideoRecordingEnabledWithCompletion: #(_completion))
	isThermalCamera
	#(setThermalROI:withCompletion: #(_roi _completion))
	#(getThermalROIWithCompletion: #(_completion))
	#(setThermalPalette:withCompletion: #(_palette _completion))
	#(getThermalPaletteWithCompletion: #(_completion))
	#(setThermalScene:withCompletion: #(_scene _completion))
	#(getThermalSceneWithCompletion: #(_completion))
	#(setThermalDDE:withCompletion: #(value _completion))
	#(getThermalDDEWithCompletion: #(_completion))
	#(setThermalACE:withCompletion: #(value _completion))
	#(getThermalACEWithCompletion: #(_completion))
	#(setThermalSSO:withCompletion: #(value _completion))
	#(getThermalSSOWithCompletion: #(_completion))
	#(setThermalBrightness:withCompletion: #(brightness _completion))
	#(getThermalBrightnessWithCompletion: #(_completion))
	#(setThermalContrast:withCompletion: #(contrast _completion))
	#(getThermalContrastWithCompletion: #(_completion))
	#(setThermalIsothermEnabled:withCompletion: #(enabled _completion))
	#(getThermalIsothermEnabledWithCompletion: #(_completion))
	#(setThermalIsothermUnit:withCompletion: #(_unit _completion))
	#(getThermalIsothermUnitWithCompletion: #(_completion))
	#(setThermalIsothermUpperValue:withCompletion: #(value _completion))
	#(getThermalIsothermUpperValueWithCompletion: #(_completion))
	#(setThermalIsothermMiddleValue:withCompletion: #(value _completion))
	#(getThermalIsothermMiddleValueWithCompletion: #(_completion))
	#(setThermalIsothermLowerValue:withCompletion: #(value _completion))
	#(getThermalIsothermLowerValueWithCompletion: #(_completion))
	#(setThermalGainMode:withCompletion: #(mode _completion))
	#(getThermalGainModeWithCompletion: #(_completion))
	#(setThermalMeasurementMode:withCompletion: #(mode _completion))
	#(getThermalMeasurementModeWithCompletion: #(_completion))
	#(setThermalDigitalZoomFactor: #(_completion))
	#(getThermalDigitalZoomFactorWithCompletion: #(_completion))
	#(getThermalProfileWithCompletion: #(_completion))
	#(getThermalSpotMeteringTargetPointWithCompletion: #(_completion))
	#(setThermalSpotMeteringTargetPoint:withCompletion: #(_targetPoint _completion))
	#(getThermalMeteringAreaWithCompletion: #(_completion))
	#(setThermalMeteringArea:withCompletion: #(_area _completion))
	#(getThermalFFCModeWithCompletion: #(_completion))
	#(setThermalFFCMode:withCompletion: #(mode _completion))
	#(triggerThermalFFCWithCompletion: #(_completion))
	#(getThermalCustomExternalSceneSettingsProfileWithCompletion: #(_completion))
	#(setThermalCustomExternalSceneSettingsProfile:withCompletion: #(profile _completion))
	#(setThermalAtmosphericTemperature:withCompletion: #(temperature _completion))
	#(setThermalAtmosphericTransmissionCoefficient:withCompletion: #(coefficient _completion))
	#(setThermalBackgroundTemperature:withCompletion: #(temperature _completion))
	#(setThermalSceneEmissivity:withCompletion: #(emissivity _completion))
	#(setThermalWindowReflection:withCompletion: #(reflection _completion))
	#(setThermalWindowReflectedTemperature:withCompletion: #(temperature _completion))
	#(setThermalWindowTemperature:withCompletion: #(temperature _completion))
	#(setThermalWindowTransmissionCoefficient:withCompletion: #(coefficient _completion))
)!

DJICameraPlaybackState buildTypedGetters: #(
	#(photoSize CGSize)
)!
DJICameraPlaybackState buildNumberGetters: #(
	playbackMode fileType
	numberOfThumbnails
	numberOfMediaFiles
	currentSelectedFileIndex
	videoDuration
	videoPlayProgress
	videoPlayPosition
	selectedFileCount
	photoCount
	videoCount
	deletionState
)!
DJICameraPlaybackState buildBooleanGetters: #(
	isAllFilesInPageSelected
	isSelectedFileValid
	isFileDownloaded
)!

DJICameraSystemState buildBooleanGetters: #(
	isShootingSinglePhoto
	isShootingSinglePhotoInRAWFormat
	isShootingIntervalPhoto
	isShootingBurstPhoto
	isShootingRAWBurstPhoto
	isRecording
	isStoringPhoto
	isOverheating
	hasError
	isInUSBMode
)!
DJICameraSystemState buildNumberGetters: #(
	mode
	currentVideoRecordingTimeInSeconds
)!

DJICameraFocusState buildBooleanGetters: #(
	isLensMounted
	isAFSwitchOn
	isFocusAssistantEnabledForMF
	isFocusAssistantEnabledForAF
	isFocusAssistantWorking
)!
DJICameraFocusState buildNumberGetters: #(
	focusMode focusStatus
)!

DJICameraSDCardState buildBooleanGetters: #(
	isInitializing
	hasError
	isReadOnly
	isInvalidFormat
	isFormatted
	isFormatting
	isFull
	isVerified
	isInserted
)!
DJICameraSDCardState buildNumberGetters: #(
	totalSpaceInMB
	remainingSpaceInMB
	availableCaptureCount
	availableRecordingTimeInSeconds
)!

DJICameraSSDState buildBooleanGetters: #(
	isConnected
)!
DJICameraSSDState buildNumberGetters: #(
	operationState
	capacity
	availableRecordingTimeInSeconds
	remainingSpaceInMB
	videoResolution
	videoFrameRate
	rawPhotoBurstCount
)!

DJICameraCapabilities buildAccessors: #(
	videoResolutionAndFrameRateRange
	modeRange
	exposureModeRange
	ISORange
	shutterSpeedRange
	exposureCompensationRange
	apertureRange
	SSDVideoResolutionRange
	photoAspectRatioRange
	H1VideoFormatRange
	videoFileFormatRange
	photoFileFormatRange
	pictureStyleCustomSaturationRange
	pictureStyleCustomSharpnessRange
	pictureStyleCustomContrastRange
	whiteBalancePresetRange
	whiteBalanceCustomColorTemperatureRange
	digitalFilterRange
	burstCaptureCountRange
	AEBCaptureNumRange
	photoIntervalRange
	photoShootModeRange
)!

DJICameraCapabilities buildFunctions: #(
	#(addListener: #(_listener))
	#(removeListener: #(_listener))
	removeAllListeners
)!

DJIMediaManager buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIMediaManager buildFunctions: #(
	#(fetchMediaListWithCompletion: #(_completion))
	#(deleteMedia:withCompletion: #(_media _completion))
	isVideoPlaybackSupported
	#(playVideo:withCompletion: #(_videoMedia  _completion))
	#(resumeWithCompletion: #(_completion))
	#(pauseWithCompletion: #(_completion))
	#(stopWithCompletion: #(_completion))
	#(moveToPosition:withCompletion: #(position _completion))
)! 

DJIMediaVideoPlaybackState buildTypedGetters: #(
	#(playingMedia DJIMediaFile)
)!
DJIMediaVideoPlaybackState buildNumberGetters: #(
	playbackStatus
	playingPosition
)!

DJIMediaFile buildNumberGetters: #(
	ID subID
	fileSizeInBytes
	durationInSeconds
	mediaType
	videoOrientation
	resolution
	frameRate
)!
DJIMediaFile buildGetters: #(
	fileName
	timeCreated
)!
DJIMediaFile buildTypedGetters: #(
	#(thumbnail UIImage)
)!
DJIMediaFile buildFunctions: #(
	#(fetchThumbnailWithCompletion: #(_completion))
	#(fetchMediaDataWithCompletion: #(_completion))
	#(fetchPreviewImageWithCompletion: #(_completion))
	#(fetchSubMediaFileListWithCompletion: #(_completion))
)!

DJIPlaybackManager buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIPlaybackManager buildFunctions: #(
	enterMultipleEditMode
	exitMultipleEditMode
	#(toggleFileSelectionAtIndex: #(index))
	selectAllFiles
	unselectAllFiles
	selectAllFilesInPage
	unselectAllFilesInPage
	deleteAllSelectedFiles
	#(downloadSelectedFilesWithPreparation:process:fileCompletion:overallCompletion:
		#(_prepareBlock _dataBlock _fileCompletionBlock _finishBlock))
	#(stopDownloadingFilesWithCompletion: #(_block))
	enterMultiplePreviewMode
	goToNextMultiplePreviewPage
	goToPreviousMultiplePreviewPage
	#(enterSinglePreviewModeWithIndex: #(index))
	goToNextSinglePreviewPage
	goToPreviousSinglePreviewPage
	deleteCurrentPreviewFile
	playVideo
	pauseVideo
	stopVideo
	#(playVideoFromPositionInPercent: #(position))
)!

DJICameraVideoResolutionAndFrameRate buildNumberGetters: #(
	resolution frameRate
)!

! DJICameraVideoResolutionAndFrameRate class methodsFor: #instantiation !
withResolution: resolution frameRate: frameRate
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithResolution: resolution
		 frameRate: frameRate)! !

DJICameraWhiteBalance buildNumberGetters: #(
	preset colorTemperature
)!

! DJICameraWhiteBalance class methodsFor: #instantiation !
withPreset: preset
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithPreset: preset)! !

! DJICameraWhiteBalance class methodsFor: #instantiation !
withCustomColorTemperature: temperature
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithCustomColorTemperature: temperature)! !