localResources
Register Android resources or file URIs so paywalls can load local media by resource ID.
Available in Android SDK 2.7.7+.
Purpose
localResources lets you map paywall asset IDs to local Android resources or file URIs. Paywalls can then request those assets with swlocal://resource-id instead of downloading them from a remote URL.
Signature
var localResources: Map<String, PaywallResource>public Map<String, PaywallResource> getLocalResources()
public void setLocalResources(Map<String, PaywallResource> localResources)Schema
Prop
Type
PaywallResource variants
Prop
Type
Returns / State
This is a mutable property on Superwall.instance. Set it before presenting paywalls that depend on local assets.
Related
How is this guide?