Package com.naver.ads.ui
Interface AspectRatioDecorator.AspectRatioListener
-
- All Implemented Interfaces:
public interface AspectRatioDecorator.AspectRatioListenerListener to be notified about changes of the aspect ratios of this view.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonAspectRatioUpdated(Float targetAspectRatio, Float naturalAspectRatio, Boolean aspectRatioMismatch)Called when either the target aspect ratio or the view aspect ratio is updated. -
-
Method Detail
-
onAspectRatioUpdated
abstract Unit onAspectRatioUpdated(Float targetAspectRatio, Float naturalAspectRatio, Boolean aspectRatioMismatch)
Called when either the target aspect ratio or the view aspect ratio is updated.
- Parameters:
targetAspectRatio- The aspect ratio that has been set insetAspectRatio(Float)naturalAspectRatio- The natural aspect ratio of this view (before its width and height are modified to satisfy the target aspect ratio).aspectRatioMismatch- Whether the target and natural aspect ratios differ enough for changing the resize mode to have an effect.
-
-
-
-