EdfaPay Logo

Presentation Modes

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

Overview

The Presentation enum controls how SDK screens appear. Each type has chainable methods for fine-tuning behavior.

Loading...

Presentation Types

Loading...
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

Recommended

Use DIALOG_BOTTOM_FILL for standard mobile UX. It follows the common bottom sheet pattern familiar to Android users.

Behavior Methods

dismissOnTouchOutside / dismissOnBackPress

Control how users can dismiss the dialog.

Loading...

animateEntry / animateExit

Enable or disable entry and exit animations.

Loading...

Visual Methods

dimBackground / dimAmount / cornerRadius

Control background dimming and corner styling.

Loading...
MethodTypeDescription
dimBackground()BooleanEnable/disable background dimming
dimAmount()Float (0.0-1.0)Dimming intensity
cornerRadius()Int (dp)Corner radius in dp

Sizing Methods

Loading...
MethodDescription
marginHorizontal(Int)Left and right margins in dp
marginVertical(Int)Top and bottom margins in dp
marginAll(Int)All margins at once in dp
sizePercent(Float)Dialog height as % of screen (0.0-1.0)

Size Percent Note

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

Feature Methods

setPurchaseSecondaryAction

Configure the secondary action button after successful purchase.

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

Important

This setting is only effective with FlowType.DETAIL. It has no effect with FlowType.IMMEDIATE or FlowType.STATUS.

setShufflePinPad

Enable PIN pad number shuffling for enhanced security against shoulder-surfing.

Loading...

Complete Examples

Secure Transaction Mode

Loading...

Modern Bottom Sheet

Loading...