-
public class PLYFlowDrawerFragment.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatDEFAULT_HEIGHT_RATIOpublic final static PLYFlowDrawerFragment.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final PLYFlowDrawerFragmentnewInstance(PLYPresentation presentation, Float heightRatio, Boolean dismissible)Creates a new instance of PLYFlowDrawerFragment with a given presentation and optional height ratio. final PLYFlowDrawerFragmentnewInstance(PLYPresentationProperties properties, Float heightRatio, Boolean dismissible)Creates a new instance of PLYFlowDrawerFragment with a given presentation properties. final FloatgetDEFAULT_HEIGHT_RATIO()Default height ratio for drawer (60% of screen height). -
-
Method Detail
-
newInstance
final PLYFlowDrawerFragment newInstance(PLYPresentation presentation, Float heightRatio, Boolean dismissible)
Creates a new instance of PLYFlowDrawerFragment with a given presentation and optional height ratio.
- Parameters:
presentation- The presentation to display.heightRatio- A value between 0.0 and 1.0 representing screen height.dismissible- Whether the drawer should be dismissible.
-
newInstance
final PLYFlowDrawerFragment newInstance(PLYPresentationProperties properties, Float heightRatio, Boolean dismissible)
Creates a new instance of PLYFlowDrawerFragment with a given presentation properties.
- Parameters:
properties- The PLYPresentationProperties to be used for fetching the presentation.heightRatio- A value between 0.0 and 1.0 representing screen height.dismissible- Whether the drawer should be dismissible.
-
getDEFAULT_HEIGHT_RATIO
final Float getDEFAULT_HEIGHT_RATIO()
Default height ratio for drawer (60% of screen height).
-
-
-
-