ResizeListener


public interface ResizeListener


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

Summary

Public methods

default void
onResizeEnd(@NonNull Entity entity, @NonNull Dimensions finalSize)

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

default void
onResizeStart(@NonNull Entity entity, @NonNull Dimensions originalSize)

Called when the user starts resizing the entity.

default void

Called continuously while the user is resizing the entity.

Public methods

onResizeEnd

Added in 1.0.0-alpha03
default void onResizeEnd(@NonNull Entity entity, @NonNull Dimensions finalSize)

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

Parameters
@NonNull Entity entity

The entity being resized.

@NonNull Dimensions finalSize

The final proposed size of the entity in meters.

onResizeStart

Added in 1.0.0-alpha03
default void onResizeStart(@NonNull Entity entity, @NonNull Dimensions originalSize)

Called when the user starts resizing the entity.

Parameters
@NonNull Entity entity

The entity being resized.

@NonNull Dimensions originalSize

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

onResizeUpdate

Added in 1.0.0-alpha03
default void onResizeUpdate(@NonNull Entity entity, @NonNull Dimensions newSize)

Called continuously while the user is resizing the entity.

Parameters
@NonNull Entity entity

The entity being resized.

@NonNull Dimensions newSize

The new proposed size of the entity in meters.