Resources.OpenRawResourceFd(Int32) Resources.OpenRawResourceFd(Int32) Method

Definition

Open a file descriptor for reading a raw resource.

[Android.Runtime.Register("openRawResourceFd", "(I)Landroid/content/res/AssetFileDescriptor;", "GetOpenRawResourceFd_IHandler")]
public virtual Android.Content.Res.AssetFileDescriptor OpenRawResourceFd (int id);
abstract member OpenRawResourceFd : int -> Android.Content.Res.AssetFileDescriptor
override this.OpenRawResourceFd : int -> Android.Content.Res.AssetFileDescriptor

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.

Applies to