-
public final class PhotoViewDialog<T extends Object>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPhotoViewDialog.BuilderBuilder class for PhotoViewDialog
-
Constructor Summary
Constructors Constructor Description PhotoViewDialog(Context context, BuilderData<T> builderData)
-
Method Summary
Modifier and Type Method Description final Unitshow(Boolean animate)Displays the built viewer if passed list of images is not empty final Unitshow()Displays the built viewer if passed list of images is not empty final Unitclose()Closes the viewer with suitable close animation final Unitdismiss()Dismisses the dialog with no animation final UnitupdateImages(Array<T> images)Updates an existing images list if a new list is not empty, otherwise closes the viewer final UnitupdateImages(List<T> images)Updates an existing images list if a new list is not empty, otherwise closes the viewer final IntegercurrentPosition()final IntegersetCurrentPosition(Integer position)final UnitupdateTransitionImage(ImageView imageView)Updates transition image view. -
-
Constructor Detail
-
PhotoViewDialog
PhotoViewDialog(Context context, BuilderData<T> builderData)
-
-
Method Detail
-
show
@JvmOverloads() final Unit show(Boolean animate)
Displays the built viewer if passed list of images is not empty
-
show
@JvmOverloads() final Unit show()
Displays the built viewer if passed list of images is not empty
-
updateImages
final Unit updateImages(Array<T> images)
Updates an existing images list if a new list is not empty, otherwise closes the viewer
-
updateImages
final Unit updateImages(List<T> images)
Updates an existing images list if a new list is not empty, otherwise closes the viewer
-
currentPosition
final Integer currentPosition()
-
setCurrentPosition
final Integer setCurrentPosition(Integer position)
-
updateTransitionImage
final Unit updateTransitionImage(ImageView imageView)
Updates transition image view. Useful for a case when image position has changed and you want to update the transition animation target.
-
-
-
-