Creates a set of specific view event listeners
Optional
eventHandlers: Partial<EventHandlers> = DEFAULT_EVENT_HANDLERSset of event handling callbacks
unsubscribe - function to unsubscribe all listeners
Creates a set of specific view event listeners
unsubscribe - function to unsubscribe all listeners
It registers only requested set of event handlers. Your config is assigned into four event listeners DEFAULT_EVENT_HANDLERS, that handle default closing behavior.
onCloseButtonPress
onAndroidSystemBack
onRestoreCompleted
onPurchaseCompleted
If you want to override these listeners, we strongly recommend to return true
(or purchaseResult.type !== 'user_cancelled'
in case of onPurchaseCompleted
)
from your custom listener to retain default closing behavior.
It registers only requested set of event handlers. Your config is assigned into four event listeners DEFAULT_EVENT_HANDLERS, that handle default closing behavior.
onCloseButtonPress
onAndroidSystemBack
onRestoreCompleted
onPurchaseCompleted
If you want to override these listeners, we strongly recommend to return true
(or purchaseResult.type !== 'user_cancelled'
in case of onPurchaseCompleted
)
from your custom listener to retain default closing behavior.
Presents the dialog
A config for showing the dialog.
A Promise that resolves to the AdaptyUiDialogActionType object
If you provide two actions in the config, be sure primaryAction
cancels the operation
and leaves things unchanged.
Generated using TypeDoc
Provides methods to control created paywall view