Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

assertRotationInRootIsEqualTo

Asserts that the layout of this node has rotation in the root composable that is equal to the given rotation.

assertRotationInRootIsEqualTo

Source set: Android
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertRotationInRootIsEqualTo(
    expected: Quaternion,
    tolerance: Float = 0.01f,
): SubspaceSemanticsNodeInteraction

Asserts that the layout of this node has rotation in the root composable that is equal to the given rotation.

This assertion uses a tolerance to account for floating-point inaccuracies.

Parameters

expected The expected rotation in the root space to assert.
tolerance The maximum allowed angular distance in degrees between the orientations.

Last updated: