Package com.unblu.sdk.core.ui
Class UnbluBottomSheetModalViewHandler
java.lang.Object
com.unblu.sdk.core.ui.UnbluBottomSheetModalViewHandler
- All Implemented Interfaces:
UnbluModalViewHandler
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onDisposeModal
(android.content.Context context) Disposes the current modal view.void
onPresentAsModal
(android.view.View unbluView, UnbluAnimationData animSourceData) Displays the provided view as a modal with animation and transformations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.unblu.sdk.core.ui.UnbluModalViewHandler
shouldPresentAsModal
-
Constructor Details
-
UnbluBottomSheetModalViewHandler
public UnbluBottomSheetModalViewHandler()
-
-
Method Details
-
onPresentAsModal
@NonNull public void onPresentAsModal(@NonNull android.view.View unbluView, @NonNull UnbluAnimationData animSourceData) Displays the provided view as a modal with animation and transformations.- Specified by:
onPresentAsModal
in interfaceUnbluModalViewHandler
- Parameters:
unbluView
- the view to be displayed as a modalanimSourceData
- the animation source data for the transformation
-
onDisposeModal
@NonNull public void onDisposeModal(@NonNull android.content.Context context) Disposes the current modal view. We retrieve the latest unblu view drawingCache from the animSourceData and use it to animate the dismissal of the view.- Specified by:
onDisposeModal
in interfaceUnbluModalViewHandler
- Parameters:
context
- the current active activity context, which allows to call the windowManager with the correct window token.
-