ExperimentalExperimentalallowSet an allow list of websites that can be loaded.
Note: Default is to allow any website.
Note: The platform may block websites.
Note: A platform blocked website may not be overridden using this property.
ExperimentalblockSet a block list of websites that will not be loaded.
Note: Default is to not block any website.
Note: A platform allowed website can be blocked by this property.
ExperimentalReturns the name of this object's type.
ExperimentalReturns true if the object matches or derives from the passed in type.
ExperimentalReturns true if this object is the same as other. Useful for checking if two references point to the same thing.
WebViewPolicy allows creators to control what websites are allowed to be loaded in the WebView. This can be helpful to prevent users from navigating away from your desired webpage through external links.
Note: Partial matches are now currently supported but subdomains are.
*snap.comis not supported.*.snap.comis supported.Note:
*is not supported for complex patterns but a single*on its own can be used to represent "all".Note:
snap.comwould be the same as*.snap.com.See
Used By: WebViewOptions#requestPolicy
Example