Function

assertRotationIsEqualTo

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

assertRotationIsEqualTo

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

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

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

Parameters

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

Throws: AssertionError

if comparison fails.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: