rememberTransformationSpec
Android
@Composable
public fun rememberTransformationSpec(
vararg specs: ResponsiveTransformationSpec
): TransformationSpec
Computes and remembers the appropriate TransformationSpec for the current screen size, given one or more ResponsiveTransformationSpecs for different screen sizes.
It would return special NoOp version of TransformationSpec when ReducedMotion is on.
Example usage for ResponsiveTransformationSpec, the recommended TransformationSpec for large-screen aware Wear apps:
Parameters
| specs | The ResponsiveTransformationSpecs that should be used for different screen sizes. |
rememberTransformationSpec
Android
@Composable
public fun rememberTransformationSpec(): TransformationSpec
Computes and remembers the appropriate TransformationSpec for the current screen size.
It would return special NoOp version of TransformationSpec when ReducedMotion is on.