Show / Hide Table of Contents

Class AndroidAssetResolver

Resolves an asset on the Android platform.

Inheritance
System.Object
AndroidAssetResolver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: BlazorWebView.Android
Assembly: BlazorWebView.Android.dll
Syntax
public class AndroidAssetResolver

Constructors

| Improve this Doc View Source

AndroidAssetResolver(AssetManager, String)

Initializes a new instance of the AndroidAssetResolver class.

Declaration
public AndroidAssetResolver(AssetManager assetManager, string hostHtmlPath)
Parameters
Type Name Description
Android.Content.Res.AssetManager assetManager

The asset manager to use.

System.String hostHtmlPath

The path to the index.html file on the "Host".

Methods

| Improve this Doc View Source

Resolve(String, out String, out Encoding)

Resolve an asset specified by the given URL.

Declaration
public Stream Resolve(string url, out string contentType, out Encoding encoding)
Parameters
Type Name Description
System.String url

The Url to resolve.

System.String contentType

The content type of the resource.

System.Text.Encoding encoding

The encoding of the resource.

Returns
Type Description
System.IO.Stream

A stream with the resource data.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX