From e0a3d78a8115e832e030159064da441b36202434 Mon Sep 17 00:00:00 2001 From: ywatanabe-dev <102775353+ywatanabe-dev@users.noreply.github.com> Date: Mon, 30 Oct 2023 10:00:12 +0900 Subject: [PATCH] Add converters of latestEnabledExposureDelayTime/videoStitching/visibilityReduction for RN Android --- .../java/com/ricoh360/thetaclientreactnative/Converter.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/react-native/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt b/react-native/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt index 6cba9025d1..df85d31b69 100644 --- a/react-native/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +++ b/react-native/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt @@ -51,6 +51,7 @@ val optionItemNameToEnum: Map = mutableMapOf( "iso" to OptionNameEnum.Iso, "isoAutoHighLimit" to OptionNameEnum.IsoAutoHighLimit, "language" to OptionNameEnum.Language, + "latestEnabledExposureDelayTime" to OptionNameEnum.LatestEnabledExposureDelayTime, "maxRecordableTime" to OptionNameEnum.MaxRecordableTime, "networkType" to OptionNameEnum.NetworkType, "offDelay" to OptionNameEnum.OffDelay, @@ -69,6 +70,8 @@ val optionItemNameToEnum: Map = mutableMapOf( "timeShift" to OptionNameEnum.TimeShift, "totalSpace" to OptionNameEnum.TotalSpace, "username" to OptionNameEnum.Username, + "videoStitching" to OptionNameEnum.VideoStitching, + "visibilityReduction" to OptionNameEnum.VisibilityReduction, "whiteBalance" to OptionNameEnum.WhiteBalance, "whiteBalanceAutoStrength" to OptionNameEnum.WhiteBalanceAutoStrength, "wlanFrequency" to OptionNameEnum.WlanFrequency, @@ -519,6 +522,7 @@ fun getOptionValueEnum(name: OptionNameEnum, valueName: String): Any? { OptionNameEnum.Iso -> IsoEnum.values().find { it.name == valueName } OptionNameEnum.IsoAutoHighLimit -> IsoAutoHighLimitEnum.values().find { it.name == valueName } OptionNameEnum.Language -> LanguageEnum.values().find { it.name == valueName } + OptionNameEnum.LatestEnabledExposureDelayTime -> ExposureDelayEnum.values().find { it.name == valueName } OptionNameEnum.MaxRecordableTime -> MaxRecordableTimeEnum.values().find { it.name == valueName } OptionNameEnum.NetworkType -> NetworkTypeEnum.values().find { it.name == valueName } OptionNameEnum.OffDelay -> OffDelayEnum.values().find { it.name == valueName } @@ -528,6 +532,8 @@ fun getOptionValueEnum(name: OptionNameEnum, valueName: String): Any? { OptionNameEnum.ShootingMethod -> ShootingMethodEnum.values().find { it.name == valueName } OptionNameEnum.ShutterSpeed -> ShutterSpeedEnum.values().find { it.name == valueName } OptionNameEnum.SleepDelay -> SleepDelayEnum.values().find { it.name == valueName } + OptionNameEnum.VideoStitching -> VideoStitchingEnum.values().find { it.name == valueName } + OptionNameEnum.VisibilityReduction -> VisibilityReductionEnum.values().find { it.name == valueName } OptionNameEnum.WhiteBalance -> WhiteBalanceEnum.values().find { it.name == valueName } OptionNameEnum.WhiteBalanceAutoStrength -> WhiteBalanceAutoStrengthEnum.values().find { it.name == valueName } OptionNameEnum.WlanFrequency -> WlanFrequencyEnum.values().find { it.name == valueName }