EdfaPay Logo

Presentation Modes

Configure how SDK screens are displayed - dialogs, full screen, position, size, and behavior.

Overview

The Presentation API controls how SDK payment screens appear on the device. Choose from fullscreen, centered dialogs, or positioned bottom/top sheets, then fine-tune behavior, animations, visual style, and sizing with chainable methods.

10 Presentation Types

Fullscreen, center, top, bottom, and corner positions

Behavior Control

Dismiss on touch, back press, and animation toggles

Visual Styling

Corner radius, dim amount, and background settings

Sizing Options

sizePercent and margin configuration

Presentation Types

The Presentation enum controls the visual presentation of SDK screens. The default is DIALOG_BOTTOM_FILL.

PresentationPositionDescription
FULLSCREENFull screenTakes entire screen
DIALOG_CENTERCenterCentered modal dialog
DIALOG_TOP_FILLTopTop-aligned, full width
DIALOG_TOP_STARTTop-LeftTop-left corner
DIALOG_TOP_ENDTop-RightTop-right corner
DIALOG_TOP_CENTERTop-CenterTop, horizontally centered
DIALOG_BOTTOM_FILLBottomDefault — Bottom sheet, full width
DIALOG_BOTTOM_STARTBottom-LeftBottom-left corner
DIALOG_BOTTOM_ENDBottom-RightBottom-right corner
DIALOG_BOTTOM_CENTERBottom-CenterBottom, horizontally centered

Behavior Methods

Control dismissal behavior and entry/exit animations when the dialog is active.

Loading...

Visual Methods

Set background dimming and corner radius.

Loading...

Sizing Methods

Control dialog margins and height as a percentage of screen height.

sizePercent ValueScreen Coverage
0.5f50% of screen
0.75f75% of screen
0.85f85% (recommended)
1.0f100% (full height)
Loading...

Note

For DIALOG_BOTTOM_FILL, DIALOG_TOP_FILL, and FULLSCREEN, sizePercent is always forced to 1.0f.

Feature Methods

Configure purchase secondary actions and PIN pad security.

ActionDescription
PurchaseSecondaryAction.NONENo secondary button
PurchaseSecondaryAction.REVERSEShow 'Reverse' button
PurchaseSecondaryAction.REFUNDShow 'Refund' button
Loading...

FlowType Requirement

setPurchaseSecondaryAction only works with FlowType.DETAIL. It has no effect with IMMEDIATE or STATUS.

Complete Examples

Ready-made presentation configurations for common scenarios.

Loading...