getFlowForDefaultAudience
fun getFlowForDefaultAudience(placementId: String, fetchPolicy: AdaptyPlacementFetchPolicy = AdaptyPlacementFetchPolicy.Default, callback: ResultCallback<AdaptyFlow>)
This method enables you to retrieve the flow from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Should not be called before activate
Parameters
placementId
The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard.
fetchPolicy
By default SDK will try to load data from the server and will return cached data in case of failure. Otherwise use AdaptyPlacementFetchPolicy.ReturnCacheDataElseLoad to return cached data if it exists.
callback
A result containing the AdaptyFlow object.