IUriToStreamResolver
IUriToStreamResolver
IUriToStreamResolver
IUriToStreamResolver
Interface
Definition
Provides a method to translate a URI to a content stream for use by the WebView.NavigateToLocalStreamUri method.
public : interface IUriToStreamResolverpublic interface IUriToStreamResolverPublic Interface IUriToStreamResolver// You can use this interface in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
UriToStreamAsync(Uri) UriToStreamAsync(Uri) UriToStreamAsync(Uri) UriToStreamAsync(Uri)
Translates a URI to a content stream for use by the WebView.NavigateToLocalStreamUri method.
public : IAsyncOperation<IInputStream> UriToStreamAsync(Uri uri)public IAsyncOperation<IInputStream> UriToStreamAsync(Uri uri)Public Function UriToStreamAsync(uri As Uri) As IAsyncOperation( Of IInputStream )// You can use this method in JavaScript.
Parameters
- uri
- Uri Uri Uri Uri
The URI to translate.
Returns
IAsyncOperation<IInputStream>
IAsyncOperation<IInputStream>
IAsyncOperation<IInputStream>
IAsyncOperation<IInputStream>
When this method returns, the content stream.
Remarks
If you need to perform a seek operation on the content stream, be sure to return an IRandomAccessStream. For example, suppose the stream represents a page with embedded media, and you return the result of a GetInputStreamAt call, which is an IInputStream, but not an IRandomAccessStream. In this case, the media will play, but the user will not be able to change the playback position.