The second Android 11 Developer Preview is now available, test it out and share your feedback.

UseCaseConfigUtil

class UseCaseConfigUtil
kotlin.Any
   ↳ androidx.camera.core.internal.utils.UseCaseConfigUtil

Contains utility methods related to UseCaseConfig.

Summary

Public methods

static Unit
updateTargetRotationAndRelatedConfigs(@NonNull builder: Builder<*, *, *>, newRotation: Int)

Updates target rotation together with related orientation-sensitive configs.

Public methods

updateTargetRotationAndRelatedConfigs

static fun updateTargetRotationAndRelatedConfigs(
    @NonNull builder: Builder<*, *, *>,
    newRotation: Int
): Unit

Updates target rotation together with related orientation-sensitive configs.

Parameters
builder Builder<*, *, *>: The builder that target rotation needs to be updated.
newRotation Int: The new target rotation of the output image, expressed as one of Surface#ROTATION_0, Surface#ROTATION_90, Surface#ROTATION_180, or Surface#ROTATION_270.