Package | com.myflashlab.air.extensions.richWebView |
Class | public class HtmlDataSettings |
Inheritance | HtmlDataSettings Object |
Loads the given data into this WebView, using baseUrl as the base URL for the content. The base URL is used both to resolve relative URLs and when applying JavaScript's same origin policy.
Note that content specified in this way can access local device files (via 'file' scheme URLs) only if baseUrl specifies a scheme other than 'http', 'https', 'ftp', 'ftps', 'about' or 'javascript'.
If the base URL uses any other scheme, then the data will be loaded into the WebView as a plain string (i.e. not part of a data URL) and any URL-encoded entities in the string will not be decoded.
Note that the baseUrl is sent in the 'Referer' HTTP header when requesting subresources (images, etc.) of the page loaded using this method.
Property | Defined By | ||
---|---|---|---|
baseUrl : String [write-only]
The URL to use as the page's base URL. | HtmlDataSettings | ||
data : String [write-only]
A String of data in the given encoding
| HtmlDataSettings | ||
encoding : String [write-only]
The encoding of the data
| HtmlDataSettings | ||
mimeType : String [write-only]
The MIMEType of the data, e.g. | HtmlDataSettings |
Method | Defined By | ||
---|---|---|---|
Initialize a new instance of HtmlDataSettings class. | HtmlDataSettings |
baseUrl | property |
baseUrl:String
[write-only] The URL to use as the page's base URL. If null defaults to 'about:blank'.
public function set baseUrl(value:String):void
data | property |
data:String
[write-only] A String of data in the given encoding
public function set data(value:String):void
encoding | property |
encoding:String
[write-only] The encoding of the data
public function set encoding(value:String):void
mimeType | property |
mimeType:String
[write-only] The MIMEType of the data, e.g. 'text/html'. If null, defaults to 'text/html'.
public function set mimeType(value:String):void
HtmlDataSettings | () | Constructor |
public function HtmlDataSettings()
Initialize a new instance of HtmlDataSettings class.