Share via


ContentProvider.IPipeDataWriter.WriteDataToPipe Method

Definition

Called from a background thread to stream data out to a pipe.

[Android.Runtime.Register("writeDataToPipe", "(Landroid/os/ParcelFileDescriptor;Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;Ljava/lang/Object;)V", "GetWriteDataToPipe_Landroid_os_ParcelFileDescriptor_Landroid_net_Uri_Ljava_lang_String_Landroid_os_Bundle_Ljava_lang_Object_Handler:Android.Content.ContentProvider/IPipeDataWriterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteDataToPipe (Android.OS.ParcelFileDescriptor output, Android.Net.Uri uri, string mimeType, Android.OS.Bundle? opts, Java.Lang.Object? args);
[<Android.Runtime.Register("writeDataToPipe", "(Landroid/os/ParcelFileDescriptor;Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;Ljava/lang/Object;)V", "GetWriteDataToPipe_Landroid_os_ParcelFileDescriptor_Landroid_net_Uri_Ljava_lang_String_Landroid_os_Bundle_Ljava_lang_Object_Handler:Android.Content.ContentProvider/IPipeDataWriterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteDataToPipe : Android.OS.ParcelFileDescriptor * Android.Net.Uri * string * Android.OS.Bundle * Java.Lang.Object -> unit

Parameters

output
ParcelFileDescriptor

The pipe where data should be written. This will be closed for you upon returning from this function.

uri
Uri

The URI whose data is to be written.

mimeType
String

The desired type of data to be written.

opts
Bundle

Options supplied by caller.

args
Object

Your own custom arguments.

Attributes

Remarks

Called from a background thread to stream data out to a pipe. Note that the pipe is blocking, so this thread can block on writes for an arbitrary amount of time if the client is slow at reading.

Java documentation for android.content.ContentProvider.PipeDataWriter.writeDataToPipe(android.os.ParcelFileDescriptor, android.net.Uri, java.lang.String, android.os.Bundle, T).

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