StreamUseCaseUtil
class StreamUseCaseUtil
A class that contains utility methods for stream use case.
Summary
Public methods |
static Long |
Returns the appropriate stream use case for a capture session based on the attached CameraX use cases.
|
Public methods
getStreamUseCaseFromUseCaseConfigs
static fun getStreamUseCaseFromUseCaseConfigs(
@NonNull useCaseConfigs: MutableCollection<UseCaseConfig<*>!>,
@NonNull sessionConfigs: MutableCollection<SessionConfig!>
): Long
Returns the appropriate stream use case for a capture session based on the attached CameraX use cases. If API level is below 33, return {@value OutputConfigurationCompat#STREAM_USE_CASE_NONE}. If use cases are empty or is ZSL, return DEFAULT. Otherwise, return PREVIEW_VIDEO_STILL for ImageCapture + VideoCapture; return STILL_CAPTURE for ImageCapture; return VIDEO_RECORD for VideoCapture; return VIEW_FINDER for Preview only.
Return |
Long |
the appropriate stream use case for this capture session |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]