Class UnbluBottomSheetModalViewHandler

java.lang.Object
com.unblu.sdk.core.ui.UnbluBottomSheetModalViewHandler
All Implemented Interfaces:
UnbluModalViewHandler

public class UnbluBottomSheetModalViewHandler extends Object implements UnbluModalViewHandler
  • 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 interface UnbluModalViewHandler
      Parameters:
      unbluView - the view to be displayed as a modal
      animSourceData - 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 interface UnbluModalViewHandler
      Parameters:
      context - the current active activity context, which allows to call the windowManager with the correct window token.