ResizeListener


interface ResizeListener


Listener for resize actions. Callbacks are invoked as the user interacts with the resize affordance.

Summary

Public functions

open Unit
onResizeEnd(entity: Entity, finalSize: Dimensions)

Called when the user has finished resizing the entity, for example when the user concludes the resize gesture.

open Unit
onResizeStart(entity: Entity, originalSize: Dimensions)

Called when the user starts resizing the entity.

open Unit
onResizeUpdate(entity: Entity, newSize: Dimensions)

Called continuously while the user is resizing the entity.

Public functions

onResizeEnd

Added in 1.0.0-alpha04
open fun onResizeEnd(entity: Entity, finalSize: Dimensions): Unit

Called when the user has finished resizing the entity, for example when the user concludes the resize gesture.

Parameters
entity: Entity

The entity being resized.

finalSize: Dimensions

The final proposed size of the entity in meters.

onResizeStart

Added in 1.0.0-alpha04
open fun onResizeStart(entity: Entity, originalSize: Dimensions): Unit

Called when the user starts resizing the entity.

Parameters
entity: Entity

The entity being resized.

originalSize: Dimensions

The original size of the entity in meters at the start of the resize operation.

onResizeUpdate

Added in 1.0.0-alpha04
open fun onResizeUpdate(entity: Entity, newSize: Dimensions): Unit

Called continuously while the user is resizing the entity.

Parameters
entity: Entity

The entity being resized.

newSize: Dimensions

The new proposed size of the entity in meters.