|
AdaptySDK 4.1.1
|
The optional extras of AdaptyUI.CreateFlowView(AdaptySDK.AdaptyFlow, AdaptySDK.AdaptyUICreateFlowViewParameters, System.Action<AdaptySDK.AdaptyUIFlowView, AdaptySDK.AdaptyError>): which localization and layout to render, how long to wait, and the tags, timers and assets the flow substitutes into its layout. More...
Public Member Functions | |
| 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. | |
| AdaptyUICreateFlowViewParameters | SetLocale (string locale) |
| Sets Locale. | |
| AdaptyUICreateFlowViewParameters | SetCustomLayoutId (string customLayoutId) |
| Sets CustomLayoutId. | |
| AdaptyUICreateFlowViewParameters | SetLoadTimeout (TimeSpan? loadTimeout) |
| Sets LoadTimeout. | |
| AdaptyUICreateFlowViewParameters | SetPreloadProducts (bool? preloadProducts) |
| Sets PreloadProducts. | |
| AdaptyUICreateFlowViewParameters | SetCustomTags (IReadOnlyDictionary< string, string > customTags) |
| Sets CustomTags, copying the dictionary. | |
| AdaptyUICreateFlowViewParameters | SetCustomTimers (IReadOnlyDictionary< string, DateTime > customTimers) |
| Sets CustomTimers, copying the dictionary. | |
| AdaptyUICreateFlowViewParameters | SetCustomAssets (IReadOnlyDictionary< string, AdaptyCustomAsset > customAssets) |
| Sets CustomAssets, copying the dictionary. | |
| AdaptyUICreateFlowViewParameters | SetProductPurchaseParameters (IReadOnlyDictionary< AdaptyProductIdentifier, AdaptyPurchaseParameters > productPurchaseParameters) |
| Sets ProductPurchaseParameters, copying the dictionary. Android only. | |
| AdaptyUICreateFlowViewParameters | SetEnableSafeAreaPaddings (bool? enableSafeAreaPaddings) |
| Sets EnableSafeAreaPaddings. Android only. | |
Public Attributes | |
| string | Locale |
The identifier of the localization to render the flow with, e.g. "en", "es", "fr". When null, en is requested rather than the flow's default localization. | |
| string | CustomLayoutId |
| The identifier of the layout to render, instead of the one the flow resolves for the current device. When null, the flow picks the layout itself. | |
| TimeSpan? | LoadTimeout |
| How long to wait for the flow's assets before giving up. Null leaves the native default. | |
| bool? | PreloadProducts |
| Fetches the flow's products while the view is being built, so the first frame already has prices. Null leaves the native default. | |
| bool? | EnableSafeAreaPaddings |
| Android only. Lays the view out without safe area paddings when false. Null leaves the native default, which is true. Ignored on iOS. | |
Properties | |
| double? | LoadTimeoutInSeconds [get] |
| The contract carries the timeout in seconds, not as a duration literal. | |
| IReadOnlyDictionary< string, string > | CustomTags [get] |
| The values the flow substitutes for its custom tags, keyed by tag name. Null when none were set. | |
| IReadOnlyDictionary< string, DateTime > | CustomTimers [get] |
| When each of the flow's custom timers ends, keyed by timer name. A value with no DateTimeKind of its own is read as the user's local clock. Null when none were set. | |
| IReadOnlyDictionary< string, AdaptyCustomAsset > | CustomAssets [get] |
| The assets the flow uses in place of its own, keyed by the asset id in the layout. Null when none were set. | |
| IReadOnlyDictionary< AdaptyProductIdentifier, AdaptyPurchaseParameters > | ProductPurchaseParameters [get] |
| Android only. The purchase extras to apply to each product the flow offers, keyed by identifier. Null when none were set; ignored on iOS. | |
| Dictionary< string, AdaptyPurchaseParameters > | ProductPurchaseParametersForRequest [get] |
The contract keys these by adapty_product_id — neither the composite identifier the app passes nor the store's own vendor_product_id. Swapping in either of those compiles and sends a well-formed request whose parameters match no product. | |
Static Private Member Functions | |
| static Dictionary< TKey, TValue > | Copy< TKey, TValue > (IReadOnlyDictionary< TKey, TValue > source) |
Private Attributes | |
| Dictionary< string, string > | _CustomTags |
| Dictionary< string, DateTime > | _CustomTimers |
| Dictionary< string, AdaptyCustomAsset > | _CustomAssets |
| Dictionary< AdaptyProductIdentifier, AdaptyPurchaseParameters > | _ProductPurchaseParameters |
| Android only. Purchase parameters applied to the products the flow offers. Ignored on iOS. | |
The optional extras of AdaptyUI.CreateFlowView(AdaptySDK.AdaptyFlow, AdaptySDK.AdaptyUICreateFlowViewParameters, System.Action<AdaptySDK.AdaptyUIFlowView, AdaptySDK.AdaptyError>): which localization and layout to render, how long to wait, and the tags, timers and assets the flow substitutes into its layout.
A dictionary handed to a setter is copied, so writing into your own copy afterwards does not change what the view is built with.
|
staticprivate |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetCustomAssets | ( | IReadOnlyDictionary< string, AdaptyCustomAsset > | customAssets | ) |
Sets CustomAssets, copying the dictionary.
| customAssets | The asset to use for each id in the layout. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetCustomLayoutId | ( | string | customLayoutId | ) |
Sets CustomLayoutId.
| customLayoutId | The id of the layout to render, as the flow's schema names it. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetCustomTags | ( | IReadOnlyDictionary< string, string > | customTags | ) |
Sets CustomTags, copying the dictionary.
| customTags | The value for each custom tag, keyed by tag name. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetCustomTimers | ( | IReadOnlyDictionary< string, DateTime > | customTimers | ) |
Sets CustomTimers, copying the dictionary.
| customTimers | When each timer ends. A DateTime with no DateTimeKind of its own is read as the user's local clock, so new DateTime(2026, 7, 30, 22, 0, 0) means 22:00 where the user is; pass a DateTimeKind.Utc value to mean 22:00 UTC. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetEnableSafeAreaPaddings | ( | bool? | enableSafeAreaPaddings | ) |
Sets EnableSafeAreaPaddings. Android only.
| enableSafeAreaPaddings | False to lay the view out without safe area paddings. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetLoadTimeout | ( | TimeSpan? | loadTimeout | ) |
Sets LoadTimeout.
| loadTimeout | How long to wait for the flow's assets. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetLocale | ( | string | locale | ) |
Sets Locale.
| locale | The localization to render the flow with, such as "en" or "es". |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetPreloadProducts | ( | bool? | preloadProducts | ) |
Sets PreloadProducts.
| preloadProducts | True to fetch the products while the view is built. |
| AdaptyUICreateFlowViewParameters AdaptySDK.AdaptyUICreateFlowViewParameters.SetProductPurchaseParameters | ( | IReadOnlyDictionary< AdaptyProductIdentifier, AdaptyPurchaseParameters > | productPurchaseParameters | ) |
Sets ProductPurchaseParameters, copying the dictionary. Android only.
| productPurchaseParameters | The purchase extras for each product. |
| ArgumentException | Two identifiers share one adapty_product_id. |
| override string AdaptySDK.AdaptyUICreateFlowViewParameters.ToString | ( | ) |
A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
|
private |
|
private |
|
private |
|
private |
Android only. Purchase parameters applied to the products the flow offers. Ignored on iOS.
| string AdaptySDK.AdaptyUICreateFlowViewParameters.CustomLayoutId |
The identifier of the layout to render, instead of the one the flow resolves for the current device. When null, the flow picks the layout itself.
The id is the one the layout carries in the flow's schema, so a value naming no layout there fails view creation rather than falling back to the resolved one.
| bool? AdaptySDK.AdaptyUICreateFlowViewParameters.EnableSafeAreaPaddings |
Android only. Lays the view out without safe area paddings when false. Null leaves the native default, which is true. Ignored on iOS.
| TimeSpan? AdaptySDK.AdaptyUICreateFlowViewParameters.LoadTimeout |
How long to wait for the flow's assets before giving up. Null leaves the native default.
| string AdaptySDK.AdaptyUICreateFlowViewParameters.Locale |
The identifier of the localization to render the flow with, e.g. "en", "es", "fr". When null, en is requested rather than the flow's default localization.
A flow is localized when its view is built, not when the flow is fetched — this is the only place that selects the localization. When the requested localization does not exist in the flow, its default localization is used.
| bool? AdaptySDK.AdaptyUICreateFlowViewParameters.PreloadProducts |
Fetches the flow's products while the view is being built, so the first frame already has prices. Null leaves the native default.
|
get |
The assets the flow uses in place of its own, keyed by the asset id in the layout. Null when none were set.
|
get |
The values the flow substitutes for its custom tags, keyed by tag name. Null when none were set.
|
get |
When each of the flow's custom timers ends, keyed by timer name. A value with no DateTimeKind of its own is read as the user's local clock. Null when none were set.
|
getprivate |
The contract carries the timeout in seconds, not as a duration literal.
|
get |
Android only. The purchase extras to apply to each product the flow offers, keyed by identifier. Null when none were set; ignored on iOS.
|
getprivate |
The contract keys these by adapty_product_id — neither the composite identifier the app passes nor the store's own vendor_product_id. Swapping in either of those compiles and sends a well-formed request whose parameters match no product.