Skip to content

Commit

Permalink
Add portrait photo mode and use in photo mode plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaakBH committed Feb 12, 2025
1 parent f7e4d8f commit 3b580aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.coroutines.CompletableDeferred

// PluginUseCase Enum ("photo", "analysis", "video")
enum class PluginUseCase {
PHOTO, ANALYSIS, VIDEO
PHOTO, PORTRAIT, ANALYSIS, VIDEO
}

// Plugin interface definition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PhotoModePlugin : IPlugin {

// Should Analysis be added by QRScanner instead? Probably doesn't matter for now
override val modeUseCases: List<PluginUseCase>
get() = listOf(PluginUseCase.PHOTO, PluginUseCase.ANALYSIS, PluginUseCase.VIDEO)
get() = listOf(PluginUseCase.PHOTO, PluginUseCase.PORTRAIT, PluginUseCase.ANALYSIS, PluginUseCase.VIDEO)

override val modeLabel
get() = "photo"
Expand Down

0 comments on commit 3b580aa

Please sign in to comment.