AdaptySDK
AdaptySDK.AdaptyUI Class Reference

Static Public Member Functions

static void CreatePaywallView (AdaptyPaywall paywall, AdaptyUICreatePaywallViewParameters optionalParameters, Action< AdaptyUIPaywallView, AdaptyError > completionHandler)
 Creates a paywall view from an AdaptyPaywall object.
static void CreateOnboardingView (AdaptyOnboarding onboarding, Action< AdaptyUIOnboardingView, AdaptyError > completionHandler)
 Creates an onboarding view from an AdaptyOnboarding object.
static void DismissPaywallView (AdaptyUIPaywallView view, Action< AdaptyError > completionHandler)
 Dismisses the paywall view.
static void PresentPaywallView (AdaptyUIPaywallView view, Action< AdaptyError > completionHandler)
 Call this function if you wish to present the view.
static void PresentPaywallView (AdaptyUIPaywallView view, AdaptyUIIOSPresentationStyle iosPresentationStyle, Action< AdaptyError > completionHandler)
 Call this function if you wish to present the view.
static void PresentOnboardingView (AdaptyUIOnboardingView view, Action< AdaptyError > completionHandler)
 Presents the onboarding view to the user.
static void PresentOnboardingView (AdaptyUIOnboardingView view, AdaptyUIIOSPresentationStyle iosPresentationStyle, Action< AdaptyError > completionHandler)
 Presents the onboarding view to the user with a specified presentation style.
static void DismissOnboardingView (AdaptyUIOnboardingView view, Action< AdaptyError > completionHandler)
 Dismisses the onboarding view.
static void ShowDialog (AdaptyUIPaywallView view, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler)
 Presents a dialog on the paywall view.
static void ShowDialog (AdaptyUIOnboardingView view, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler)
 Presents a dialog on the onboarding view.
static void CreatePaywallView (AdaptyPaywall paywall, Action< AdaptyUIPaywallView, AdaptyError > completionHandler)
 Creates a paywall view from an AdaptyPaywall object.

Static Private Member Functions

static void DismissPaywallView (AdaptyUIPaywallView view, bool destroy, Action< AdaptyError > completionHandler)
static void DismissOnboardingView (AdaptyUIOnboardingView view, bool destroy, Action< AdaptyError > completionHandler)
static void ShowDialog (string viewId, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler)

Member Function Documentation

◆ CreateOnboardingView()

void AdaptySDK.AdaptyUI.CreateOnboardingView ( AdaptyOnboarding onboarding,
Action< AdaptyUIOnboardingView, AdaptyError > completionHandler )
static

Creates an onboarding view from an AdaptyOnboarding object.

Right after receiving an AdaptyOnboarding, you can create the corresponding AdaptyUIOnboardingView to present it afterwards. Read more at Adapty Documentation

Parameters
onboardingAn AdaptyOnboarding object for which you are trying to create a view.
completionHandlerThe action that will be called with the result. The result contains an AdaptyUIOnboardingView object.

◆ CreatePaywallView() [1/2]

void AdaptySDK.AdaptyUI.CreatePaywallView ( AdaptyPaywall paywall,
Action< AdaptyUIPaywallView, AdaptyError > completionHandler )
static

Creates a paywall view from an AdaptyPaywall object.

Right after receiving an AdaptyPaywall, you can create the corresponding AdaptyUIPaywallView to present it afterwards. Read more at Adapty Documentation

Parameters
paywallAn AdaptyPaywall object for which you are trying to create a view.
completionHandlerThe action that will be called with the result. The result contains an AdaptyUIPaywallView object.

◆ CreatePaywallView() [2/2]

void AdaptySDK.AdaptyUI.CreatePaywallView ( AdaptyPaywall paywall,
AdaptyUICreatePaywallViewParameters optionalParameters,
Action< AdaptyUIPaywallView, AdaptyError > completionHandler )
static

Creates a paywall view from an AdaptyPaywall object.

Right after receiving an AdaptyPaywall, you can create the corresponding AdaptyUIPaywallView to present it afterwards. Read more at Adapty Documentation

Parameters
paywallAn AdaptyPaywall object for which you are trying to create a view.
optionalParametersAn optional AdaptyUICreatePaywallViewParameters object that contains optional parameters like load timeout, custom tags, custom timers, product purchase parameters, and custom assets.
completionHandlerThe action that will be called with the result. The result contains an AdaptyUIPaywallView object.

◆ DismissOnboardingView() [1/2]

void AdaptySDK.AdaptyUI.DismissOnboardingView ( AdaptyUIOnboardingView view,
Action< AdaptyError > completionHandler )
static

Dismisses the onboarding view.

Call this method when you want to dismiss the onboarding view from the screen.

Parameters
viewAn AdaptyUIOnboardingView object representing the view to dismiss.
completionHandlerThe action that will be called with the result.

◆ DismissOnboardingView() [2/2]

void AdaptySDK.AdaptyUI.DismissOnboardingView ( AdaptyUIOnboardingView view,
bool destroy,
Action< AdaptyError > completionHandler )
staticprivate

◆ DismissPaywallView() [1/2]

void AdaptySDK.AdaptyUI.DismissPaywallView ( AdaptyUIPaywallView view,
Action< AdaptyError > completionHandler )
static

Dismisses the paywall view.

Call this method when you want to dismiss the paywall view from the screen.

Parameters
viewAn AdaptyUIPaywallView object representing the view to dismiss.
completionHandlerThe action that will be called with the result.

◆ DismissPaywallView() [2/2]

void AdaptySDK.AdaptyUI.DismissPaywallView ( AdaptyUIPaywallView view,
bool destroy,
Action< AdaptyError > completionHandler )
staticprivate

◆ PresentOnboardingView() [1/2]

void AdaptySDK.AdaptyUI.PresentOnboardingView ( AdaptyUIOnboardingView view,
Action< AdaptyError > completionHandler )
static

Presents the onboarding view to the user.

This method presents the onboarding view using the default full-screen presentation style.

Parameters
viewAn AdaptyUIOnboardingView object representing the view to present.
completionHandlerThe action that will be called with the result.

◆ PresentOnboardingView() [2/2]

void AdaptySDK.AdaptyUI.PresentOnboardingView ( AdaptyUIOnboardingView view,
AdaptyUIIOSPresentationStyle iosPresentationStyle,
Action< AdaptyError > completionHandler )
static

Presents the onboarding view to the user with a specified presentation style.

This method presents the onboarding view using the specified iOS presentation style (iOS only).

Parameters
viewAn AdaptyUIOnboardingView object representing the view to present.
iosPresentationStyleAn AdaptyUIIOSPresentationStyle object representing the iOS presentation style (iOS only).
completionHandlerThe action that will be called with the result.

◆ PresentPaywallView() [1/2]

void AdaptySDK.AdaptyUI.PresentPaywallView ( AdaptyUIPaywallView view,
Action< AdaptyError > completionHandler )
static

Call this function if you wish to present the view.

Parameters
viewan [AdaptyUIPaywallView] object, for which is representing the view.
iosPresentationStylean [AdaptyUIIOSPresentationStyle] object, for which is representing the iOS presentation style.
completionHandlerThe action that will be called with the result.

◆ PresentPaywallView() [2/2]

void AdaptySDK.AdaptyUI.PresentPaywallView ( AdaptyUIPaywallView view,
AdaptyUIIOSPresentationStyle iosPresentationStyle,
Action< AdaptyError > completionHandler )
static

Call this function if you wish to present the view.

Parameters
viewan [AdaptyUIPaywallView] object, for which is representing the view.
completionHandlerThe action that will be called with the result.

◆ ShowDialog() [1/3]

void AdaptySDK.AdaptyUI.ShowDialog ( AdaptyUIOnboardingView view,
AdaptyUIDialogConfiguration configuration,
Action< AdaptyUIDialogActionType, AdaptyError > completionHandler )
static

Presents a dialog on the onboarding view.

This method shows a dialog with custom configuration on the onboarding view. The dialog can be used for various purposes like showing terms, privacy policy, or custom messages.

Parameters
viewAn AdaptyUIOnboardingView object representing the view on which to show the dialog.
configurationAn AdaptyUIDialogConfiguration object that contains the dialog configuration.
completionHandlerThe action that will be called with the result. The result contains the AdaptyUIDialogActionType indicating which action was taken.

◆ ShowDialog() [2/3]

void AdaptySDK.AdaptyUI.ShowDialog ( AdaptyUIPaywallView view,
AdaptyUIDialogConfiguration configuration,
Action< AdaptyUIDialogActionType, AdaptyError > completionHandler )
static

Presents a dialog on the paywall view.

This method shows a dialog with custom configuration on the paywall view. The dialog can be used for various purposes like showing terms, privacy policy, or custom messages.

Parameters
viewAn AdaptyUIPaywallView object representing the view on which to show the dialog.
configurationAn AdaptyUIDialogConfiguration object that contains the dialog configuration.
completionHandlerThe action that will be called with the result. The result contains the AdaptyUIDialogActionType indicating which action was taken.

◆ ShowDialog() [3/3]

void AdaptySDK.AdaptyUI.ShowDialog ( string viewId,
AdaptyUIDialogConfiguration configuration,
Action< AdaptyUIDialogActionType, AdaptyError > completionHandler )
staticprivate

The documentation for this class was generated from the following files: