Läs på engelska

Dela via


DropBoxManager.Entry Constructors

Definition

Overloads

DropBoxManager.Entry(IntPtr, JniHandleOwnership)

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

DropBoxManager.Entry(String, Int64)

Create a new empty Entry with no contents.

DropBoxManager.Entry(String, Int64, String)

Create a new Entry with plain text contents.

DropBoxManager.Entry(String, Int64, ParcelFileDescriptor, DropBoxManagerFlags)

Create a new Entry with streaming data contents.

DropBoxManager.Entry(String, Int64, File, DropBoxManagerFlags)

Create a new Entry with the contents read from a file.

DropBoxManager.Entry(String, Int64, Byte[], DropBoxManagerFlags)

Create a new Entry with byte array contents.

DropBoxManager.Entry(IntPtr, JniHandleOwnership)

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

C#
protected Entry(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);

Parameters

javaReference
IntPtr

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

DropBoxManager.Entry(String, Int64)

Create a new empty Entry with no contents.

C#
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "")]
public Entry(string tag, long millis);

Parameters

tag
String
millis
Int64
Attributes

Remarks

Create a new empty Entry with no contents.

Java documentation for android.os.DropBoxManager.Entry.DropBoxManager$Entry(java.lang.String, 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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

DropBoxManager.Entry(String, Int64, String)

Create a new Entry with plain text contents.

C#
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLjava/lang/String;)V", "")]
public Entry(string tag, long millis, string text);

Parameters

tag
String
millis
Int64
text
String
Attributes

Remarks

Create a new Entry with plain text contents.

Java documentation for android.os.DropBoxManager.Entry.DropBoxManager$Entry(java.lang.String, long, java.lang.String).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

DropBoxManager.Entry(String, Int64, ParcelFileDescriptor, DropBoxManagerFlags)

Create a new Entry with streaming data contents.

C#
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLandroid/os/ParcelFileDescriptor;I)V", "")]
public Entry(string tag, long millis, Android.OS.ParcelFileDescriptor? data, Android.OS.DropBoxManagerFlags flags);

Parameters

tag
String
millis
Int64
Attributes

Remarks

Create a new Entry with streaming data contents. Takes ownership of the ParcelFileDescriptor.

Java documentation for android.os.DropBoxManager.Entry.DropBoxManager$Entry(java.lang.String, long, android.os.ParcelFileDescriptor, int).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

DropBoxManager.Entry(String, Int64, File, DropBoxManagerFlags)

Create a new Entry with the contents read from a file.

C#
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLjava/io/File;I)V", "")]
public Entry(string tag, long millis, Java.IO.File data, Android.OS.DropBoxManagerFlags flags);

Parameters

tag
String
millis
Int64
data
File
Attributes

Exceptions

Remarks

Create a new Entry with the contents read from a file. The file will be read when the entry's contents are requested.

Java documentation for android.os.DropBoxManager.Entry.DropBoxManager$Entry(java.lang.String, long, java.io.File, int).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

DropBoxManager.Entry(String, Int64, Byte[], DropBoxManagerFlags)

Create a new Entry with byte array contents.

C#
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J[BI)V", "")]
public Entry(string tag, long millis, byte[]? data, Android.OS.DropBoxManagerFlags flags);

Parameters

tag
String
millis
Int64
data
Byte[]
Attributes

Remarks

Create a new Entry with byte array contents. The data array must not be modified after creating this entry.

Java documentation for android.os.DropBoxManager.Entry.DropBoxManager$Entry(java.lang.String, long, byte[], int).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35