RotationCommands

@Generated(value = ["GoogleHomePlatformCodegen"])
interface RotationCommands

Known direct subclasses
Rotation

API for the Rotation trait.


Summary

Public functions

suspend Unit
rotateToDegrees(rotationDegrees: Float)

Sets the absolute rotation in degrees.

BatchableCommand<Unit>
rotateToDegreesBatchable(rotationDegrees: Float)

The batchable version of rotateToDegrees command.

suspend Unit
rotateToPercentage(rotationPercent: Float)

Sets the absolute rotation in percentage.

BatchableCommand<Unit>

The batchable version of rotateToPercentage command.

Public functions

rotateToDegrees

suspend fun rotateToDegrees(rotationDegrees: Float): Unit

Sets the absolute rotation in degrees.

Parameters
rotationDegrees: Float

An absolute value that sets the final clockwise rotation of the device in number of degrees. This value must fall within the range specified in rotationDegreesRange.

rotateToDegreesBatchable

fun rotateToDegreesBatchable(rotationDegrees: Float): BatchableCommand<Unit>

The batchable version of rotateToDegrees command.

Sets the absolute rotation in degrees.

Parameters
rotationDegrees: Float

An absolute value that sets the final clockwise rotation of the device in number of degrees. This value must fall within the range specified in rotationDegreesRange.

Returns
BatchableCommand<Unit>

BatchableCommand

rotateToPercentage

suspend fun rotateToPercentage(rotationPercent: Float): Unit

Sets the absolute rotation in percentage.

Parameters
rotationPercent: Float

An absolute value that sets the final clockwise rotation of the device in percentage of a full rotation.

rotateToPercentageBatchable

fun rotateToPercentageBatchable(rotationPercent: Float): BatchableCommand<Unit>

The batchable version of rotateToPercentage command.

Sets the absolute rotation in percentage.

Parameters
rotationPercent: Float

An absolute value that sets the final clockwise rotation of the device in percentage of a full rotation.

Returns
BatchableCommand<Unit>

BatchableCommand