|
AdaptySDK 4.1.1
|
Building, presenting and dismissing the views that render a flow. More...
Static Public Member Functions | |
| static void | CreateFlowView (AdaptyFlow flow, AdaptyUICreateFlowViewParameters optionalParameters, Action< AdaptyUIFlowView, AdaptyError > completionHandler) |
| Creates a flow view from an AdaptyFlow object. | |
| static void | DismissFlowView (AdaptyUIFlowView view, Action< AdaptyError > completionHandler) |
| Dismisses the flow view. | |
| static void | PresentFlowView (AdaptyUIFlowView view, Action< AdaptyError > completionHandler) |
| Call this function if you wish to present the view. | |
| static void | PresentFlowView (AdaptyUIFlowView view, AdaptyUIIOSPresentationStyle iosPresentationStyle, Action< AdaptyError > completionHandler) |
| Call this function if you wish to present the view. | |
| static void | ShowDialog (AdaptyUIFlowView view, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler) |
| Presents a dialog on the flow view. | |
| static void | OpenUrl (string url, AdaptyWebPresentation openIn, Action< AdaptyError > completionHandler) |
| Opens the URL natively, honoring the presentation option. | |
| static void | RequestAppReview (Action< AdaptyError > completionHandler) |
| Requests a native store review prompt (App Store / Google Play in-app review). | |
| static void | CreateFlowView (AdaptyFlow flow, Action< AdaptyUIFlowView, AdaptyError > completionHandler) |
| Creates a flow view from an AdaptyFlow object. | |
| static void | CreateOnboardingView (AdaptyOnboarding onboarding, AdaptyWebPresentation externalUrlsPresentation, Action< AdaptyUIOnboardingView, AdaptyError > completionHandler) |
| Creates an onboarding view from an AdaptyOnboarding object. | |
| 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 (AdaptyUIOnboardingView view, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler) |
| Presents a dialog on the onboarding view. | |
| static void | CreateOnboardingView (AdaptyOnboarding onboarding, Action< AdaptyUIOnboardingView, AdaptyError > completionHandler) |
| Creates an onboarding view from an AdaptyOnboarding object. | |
Static Package Functions | |
| static void | FlowViewAnswerPermission (string eventId, bool granted, string detail) |
| static void | SendObserverEvent (string method, string eventId) |
Static Private Member Functions | |
| static void | ShowDialog (string viewId, AdaptyUIDialogConfiguration configuration, Action< AdaptyUIDialogActionType, AdaptyError > completionHandler) |
| static void | LogRoundTripError (string method, AdaptyError error) |
| static void | DismissOnboardingView (AdaptyUIOnboardingView view, bool destroy, Action< AdaptyError > completionHandler) |
Building, presenting and dismissing the views that render a flow.
|
static |
Creates a flow view from an AdaptyFlow object.
Right after receiving an AdaptyFlow, you can create the corresponding AdaptyUIFlowView to present it afterwards. Read more at Adapty Documentation
| flow | An AdaptyFlow object for which you are trying to create a view. |
| completionHandler | The action that will be called with the result. The result contains an AdaptyUIFlowView object. |
|
static |
Creates a flow view from an AdaptyFlow object.
Right after receiving an AdaptyFlow, you can create the corresponding AdaptyUIFlowView to present it afterwards. Read more at Adapty Documentation
| flow | An AdaptyFlow object for which you are trying to create a view. |
| optionalParameters | An optional AdaptyUICreateFlowViewParameters object that contains optional parameters like load timeout, custom tags, custom timers, product purchase parameters, and custom assets. |
| completionHandler | The action that will be called with the result. The result contains an AdaptyUIFlowView object. |
|
static |
Creates an onboarding view from an AdaptyOnboarding object.
| onboarding | An AdaptyOnboarding object for which you are trying to create a view. |
| completionHandler | The action that will be called with the result. The result contains an AdaptyUIOnboardingView object. |
|
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
| onboarding | An AdaptyOnboarding object for which you are trying to create a view. |
| externalUrlsPresentation | Controls how external URLs are presented in the onboarding (in-app browser vs external browser). Default is AdaptyWebPresentation.ExternalBrowser. |
| completionHandler | The action that will be called with the result. The result contains an AdaptyUIOnboardingView object. |
|
static |
Dismisses the flow view.
Call this method when you want to dismiss the flow view from the screen. A dismissed view is released and cannot be presented again — create a new view via CreateFlowView(AdaptyFlow, AdaptyUICreateFlowViewParameters, Action<AdaptyUIFlowView, AdaptyError>) if you need to re-present it.
| view | An AdaptyUIFlowView object representing the view to dismiss. |
| completionHandler | The action that will be called with the result. |
|
static |
Dismisses the onboarding view.
Call this method when you want to dismiss the onboarding view from the screen.
| view | An AdaptyUIOnboardingView object representing the view to dismiss. |
| completionHandler | The action that will be called with the result. |
|
staticprivate |
|
staticpackage |
|
staticprivate |
|
static |
Opens the URL natively, honoring the presentation option.
This is the same handling the SDK applies by default to open_url user actions. Use it when you override IAdaptyFlowsEventsListener.FlowViewDidPerformAction(AdaptyUIFlowView, AdaptyUIUserAction) and want to keep the default URL behavior.
| url | The URL to open. |
| openIn | Controls whether to open in external browser or in-app browser. Default is AdaptyWebPresentation.ExternalBrowser. |
| completionHandler | The action that will be called with the result. |
|
static |
Call this function if you wish to present the view.
| view | an [AdaptyUIFlowView] object, for which is representing the view. |
| completionHandler | The action that will be called with the result. |
|
static |
Call this function if you wish to present the view.
| view | an [AdaptyUIFlowView] object, for which is representing the view. |
| iosPresentationStyle | an [AdaptyUIIOSPresentationStyle] object, for which is representing the iOS presentation style. |
| completionHandler | The action that will be called with the result. |
|
static |
Presents the onboarding view to the user.
This method presents the onboarding view using the default full-screen presentation style.
| view | An AdaptyUIOnboardingView object representing the view to present. |
| completionHandler | The action that will be called with the result. |
|
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).
| view | An AdaptyUIOnboardingView object representing the view to present. |
| iosPresentationStyle | An AdaptyUIIOSPresentationStyle object representing the iOS presentation style (iOS only). |
| completionHandler | The action that will be called with the result. |
|
static |
Requests a native store review prompt (App Store / Google Play in-app review).
This is the same handling the SDK applies by default to the flow app review request. Use it when you override IAdaptyUISystemRequestsHandler.FlowViewDidRequestAppReview(AdaptyUIFlowView) and want to keep the default behavior.
| completionHandler | The action that will be called with the result. |
|
staticpackage |
|
static |
Presents a dialog on the flow view.
This method shows a dialog with custom configuration on the flow view. The dialog can be used for various purposes like showing terms, privacy policy, or custom messages.
| view | An AdaptyUIFlowView object representing the view on which to show the dialog. |
| configuration | An AdaptyUIDialogConfiguration object that contains the dialog configuration. |
| completionHandler | The action that will be called with the result. The result contains the AdaptyUIDialogActionType indicating which action was taken. |
|
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.
| view | An AdaptyUIOnboardingView object representing the view on which to show the dialog. |
| configuration | An AdaptyUIDialogConfiguration object that contains the dialog configuration. |
| completionHandler | The action that will be called with the result. The result contains the AdaptyUIDialogActionType indicating which action was taken. |
|
staticprivate |