A flow view built by AdaptyUI.CreateFlowView(AdaptySDK.AdaptyFlow, AdaptySDK.AdaptyUICreateFlowViewParameters, System.Action<AdaptySDK.AdaptyUIFlowView, AdaptySDK.AdaptyError>). Dismissing it releases it unless it is dismissed with destroy false, which keeps it for another Present(System.Action<AdaptyError>) until Destroy.
More...
|
| override string | ToString () |
| | A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
|
| void | Present (AdaptyUIIOSPresentationStyle iosPresentationStyle, System.Action< AdaptyError > completionHandler) |
| | Call this function if you wish to present the view.
|
| void | Present (System.Action< AdaptyError > completionHandler) |
| | Call this function if you wish to present the view.
|
| void | Dismiss (System.Action< AdaptyError > completionHandler) |
| | Dismisses the view and releases it.
|
| void | Dismiss (bool destroy, System.Action< AdaptyError > completionHandler) |
| | Dismisses the view, and releases it unless asked to keep it.
|
| void | Destroy (System.Action< AdaptyError > completionHandler) |
| | Releases a view kept by Dismiss(bool, System.Action<AdaptyError>), dismissing it first if it is on screen.
|
| void | SendAppMessage (System.Collections.Generic.IReadOnlyDictionary< string, object > payload, System.Action< AdaptyError > completionHandler) |
| | Sends an object to this view's script. See AdaptyUI.SendAppMessage(AdaptyUIFlowView, System.Collections.Generic.IReadOnlyDictionary<string, object>, System.Action<AdaptyError>).
|
|
| string | Id |
| | The identifier of this view, which the events carry back.
|
| string | PlacementId |
| | The placement the flow behind this view was fetched for.
|
| string | VariationId |
| | The variation the flow resolved to. Purchases made here are attributed to it.
|
| string | Locale |
| | The localization the view was actually built with.
|
A flow view built by AdaptyUI.CreateFlowView(AdaptySDK.AdaptyFlow, AdaptySDK.AdaptyUICreateFlowViewParameters, System.Action<AdaptySDK.AdaptyUIFlowView, AdaptySDK.AdaptyError>). Dismissing it releases it unless it is dismissed with destroy false, which keeps it for another Present(System.Action<AdaptyError>) until Destroy.
◆ Destroy()
| void AdaptySDK.AdaptyUIFlowView.Destroy |
( |
System.Action< AdaptyError > | completionHandler | ) |
|
Releases a view kept by Dismiss(bool, System.Action<AdaptyError>), dismissing it first if it is on screen.
- Parameters
-
| completionHandler | The action that will be called with the result. |
◆ Dismiss() [1/2]
| void AdaptySDK.AdaptyUIFlowView.Dismiss |
( |
bool | destroy, |
|
|
System.Action< AdaptyError > | completionHandler ) |
Dismisses the view, and releases it unless asked to keep it.
A kept view can be presented again and resumes where it was. It stays in memory until Destroy.
- Parameters
-
| destroy | Whether to release the view once it is dismissed. |
| completionHandler | The action that will be called with the result. |
◆ Dismiss() [2/2]
| void AdaptySDK.AdaptyUIFlowView.Dismiss |
( |
System.Action< AdaptyError > | completionHandler | ) |
|
Dismisses the view and releases it.
A released view cannot be presented again. Create a new view via AdaptyUI.CreateFlowView(AdaptyFlow, AdaptyUICreateFlowViewParameters, System.Action<AdaptyUIFlowView, AdaptyError>) if you need to re-present it, or keep this one with Dismiss(bool, System.Action<AdaptyError>).
- Parameters
-
| completionHandler | The action that will be called with the result. |
◆ Present() [1/2]
Call this function if you wish to present the view.
- Parameters
-
| iosPresentationStyle | An AdaptyUIIOSPresentationStyle object representing the iOS presentation style (iOS only). |
| completionHandler | The action that will be called with the result. |
◆ Present() [2/2]
| void AdaptySDK.AdaptyUIFlowView.Present |
( |
System.Action< AdaptyError > | completionHandler | ) |
|
Call this function if you wish to present the view.
- Parameters
-
| completionHandler | The action that will be called with the result. |
◆ SendAppMessage()
| void AdaptySDK.AdaptyUIFlowView.SendAppMessage |
( |
System.Collections.Generic.IReadOnlyDictionary< string, object > | payload, |
|
|
System.Action< AdaptyError > | completionHandler ) |
Sends an object to this view's script. See AdaptyUI.SendAppMessage(AdaptyUIFlowView, System.Collections.Generic.IReadOnlyDictionary<string, object>, System.Action<AdaptyError>).
- Parameters
-
| payload | The message, as described there. |
| completionHandler | The action that will be called with the result. |
◆ ToString()
| override string AdaptySDK.AdaptyUIFlowView.ToString |
( |
| ) |
|
A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
◆ Id
| string AdaptySDK.AdaptyUIFlowView.Id |
The identifier of this view, which the events carry back.
◆ Locale
| string AdaptySDK.AdaptyUIFlowView.Locale |
The localization the view was actually built with.
May differ from the localization requested through AdaptyUICreateFlowViewParameters.SetLocale(string) when that one does not exist in the flow, and may be null when the native side reports none.
◆ PlacementId
| string AdaptySDK.AdaptyUIFlowView.PlacementId |
The placement the flow behind this view was fetched for.
◆ VariationId
| string AdaptySDK.AdaptyUIFlowView.VariationId |
The variation the flow resolved to. Purchases made here are attributed to it.
The documentation for this class was generated from the following file:
- Packages/com.adapty.unity-sdk/Runtime/Models/AdaptyUIFlowView.cs