AssetManager.Open AssetManager.Open Method

Definition

Overloads

Open(String) Open(String)

Open an asset using ACCESS_STREAMING mode.

Open(String, Access) Open(String, Access)

Open an asset using an explicit access mode, returning an InputStream to read its contents.

Open(String) Open(String)

Open an asset using ACCESS_STREAMING mode.

[Android.Runtime.Register("open", "(Ljava/lang/String;)Ljava/io/InputStream;", "")]
public System.IO.Stream Open (string fileName);
member this.Open : string -> System.IO.Stream

Parameters

fileName
String String

The name of the asset to open. This name can be hierarchical.

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Open(String, Access) Open(String, Access)

Open an asset using an explicit access mode, returning an InputStream to read its contents.

[Android.Runtime.Register("open", "(Ljava/lang/String;I)Ljava/io/InputStream;", "")]
public System.IO.Stream Open (string fileName, Android.Content.Res.Access accessMode);
member this.Open : string * Android.Content.Res.Access -> System.IO.Stream

Parameters

fileName
String String

The name of the asset to open. This name can be hierarchical.

accessMode
Access Access

Desired access mode for retrieving the data.

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to