Resources.OpenRawResource Resources.OpenRawResource Method

Definition

Overloads

OpenRawResource(Int32) OpenRawResource(Int32)

Open a data stream for reading a raw resource.

OpenRawResource(Int32, TypedValue) OpenRawResource(Int32, TypedValue)

Open a data stream for reading a raw resource.

OpenRawResource(Int32) OpenRawResource(Int32)

Open a data stream for reading a raw resource.

[Android.Runtime.Register("openRawResource", "(I)Ljava/io/InputStream;", "GetOpenRawResource_IHandler")]
public virtual System.IO.Stream OpenRawResource (int id);
abstract member OpenRawResource : int -> System.IO.Stream
override this.OpenRawResource : int -> System.IO.Stream

Parameters

id
Int32 Int32

The resource identifier to open, as generated by the appt tool.

Returns

Exceptions

Throws NotFoundException if the given ID does not exist.

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.

OpenRawResource(Int32, TypedValue) OpenRawResource(Int32, TypedValue)

Open a data stream for reading a raw resource.

[Android.Runtime.Register("openRawResource", "(ILandroid/util/TypedValue;)Ljava/io/InputStream;", "GetOpenRawResource_ILandroid_util_TypedValue_Handler", ApiSince=3)]
public virtual System.IO.Stream OpenRawResource (int id, Android.Util.TypedValue value);
abstract member OpenRawResource : int * Android.Util.TypedValue -> System.IO.Stream
override this.OpenRawResource : int * Android.Util.TypedValue -> System.IO.Stream

Parameters

id
Int32 Int32

The resource identifier to open, as generated by the appt tool.

value
TypedValue TypedValue

The TypedValue object to hold the resource information.

Returns

Exceptions

Throws NotFoundException if the given ID does not exist.

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.

Applies to