次の方法で共有


AssetFileDescriptor Constructors

Definition

Overloads

AssetFileDescriptor(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AssetFileDescriptor(ParcelFileDescriptor, Int64, Int64)

Create a new AssetFileDescriptor from the given values.

AssetFileDescriptor(ParcelFileDescriptor, Int64, Int64, Bundle)

Create a new AssetFileDescriptor from the given values.

AssetFileDescriptor(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AssetFileDescriptor (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Res.AssetFileDescriptor : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Res.AssetFileDescriptor

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

AssetFileDescriptor(ParcelFileDescriptor, Int64, Int64)

Create a new AssetFileDescriptor from the given values.

[Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJ)V", "")]
public AssetFileDescriptor (Android.OS.ParcelFileDescriptor? fd, long startOffset, long length);
[<Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJ)V", "")>]
new Android.Content.Res.AssetFileDescriptor : Android.OS.ParcelFileDescriptor * int64 * int64 -> Android.Content.Res.AssetFileDescriptor

Parameters

fd
ParcelFileDescriptor

The underlying file descriptor.

startOffset
Int64

The location within the file that the asset starts. This must be 0 if length is UNKNOWN_LENGTH.

length
Int64

The number of bytes of the asset, or #UNKNOWN_LENGTH if it extends to the end of the file.

Attributes

Remarks

Create a new AssetFileDescriptor from the given values.

Java documentation for android.content.res.AssetFileDescriptor.AssetFileDescriptor(android.os.ParcelFileDescriptor, long, long).

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

AssetFileDescriptor(ParcelFileDescriptor, Int64, Int64, Bundle)

Create a new AssetFileDescriptor from the given values.

[Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJLandroid/os/Bundle;)V", "")]
public AssetFileDescriptor (Android.OS.ParcelFileDescriptor? fd, long startOffset, long length, Android.OS.Bundle? extras);
[<Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJLandroid/os/Bundle;)V", "")>]
new Android.Content.Res.AssetFileDescriptor : Android.OS.ParcelFileDescriptor * int64 * int64 * Android.OS.Bundle -> Android.Content.Res.AssetFileDescriptor

Parameters

fd
ParcelFileDescriptor

The underlying file descriptor.

startOffset
Int64

The location within the file that the asset starts. This must be 0 if length is UNKNOWN_LENGTH.

length
Int64

The number of bytes of the asset, or #UNKNOWN_LENGTH if it extends to the end of the file.

extras
Bundle

additional details that can be used to interpret the underlying file descriptor. May be null.

Attributes

Remarks

Create a new AssetFileDescriptor from the given values.

Java documentation for android.content.res.AssetFileDescriptor.AssetFileDescriptor(android.os.ParcelFileDescriptor, long, long, android.os.Bundle).

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