Udostępnij za pośrednictwem


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.

protected Entry (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.OS.DropBoxManager.Entry : nativeint * Android.Runtime.JniHandleOwnership -> Android.OS.DropBoxManager.Entry

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

DropBoxManager.Entry(String, Int64)

Create a new empty Entry with no contents.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "")]
public Entry (string tag, long millis);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "")>]
new Android.OS.DropBoxManager.Entry : string * int64 -> Android.OS.DropBoxManager.Entry

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

DropBoxManager.Entry(String, Int64, String)

Create a new Entry with plain text contents.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLjava/lang/String;)V", "")]
public Entry (string tag, long millis, string text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLjava/lang/String;)V", "")>]
new Android.OS.DropBoxManager.Entry : string * int64 * string -> Android.OS.DropBoxManager.Entry

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

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

Create a new Entry with streaming data contents.

[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);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLandroid/os/ParcelFileDescriptor;I)V", "")>]
new Android.OS.DropBoxManager.Entry : string * int64 * Android.OS.ParcelFileDescriptor * Android.OS.DropBoxManagerFlags -> Android.OS.DropBoxManager.Entry

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

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

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

[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);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;JLjava/io/File;I)V", "")>]
new Android.OS.DropBoxManager.Entry : string * int64 * Java.IO.File * Android.OS.DropBoxManagerFlags -> Android.OS.DropBoxManager.Entry

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

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

Create a new Entry with byte array contents.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J[BI)V", "")]
public Entry (string tag, long millis, byte[]? data, Android.OS.DropBoxManagerFlags flags);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;J[BI)V", "")>]
new Android.OS.DropBoxManager.Entry : string * int64 * byte[] * Android.OS.DropBoxManagerFlags -> Android.OS.DropBoxManager.Entry

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