public static interface ContentProvider.PipeDataWriter<T>
ContentProvider.openPipeHelper(android.net.Uri, java.lang.String, android.os.Bundle, T, android.content.ContentProvider.PipeDataWriter<T>)
.Modifier and Type | Method and Description |
---|---|
void |
writeDataToPipe(ParcelFileDescriptor output,
Uri uri,
String mimeType,
Bundle opts,
T args)
Called from a background thread to stream data out to a pipe.
|
void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, T args)
output
- The pipe where data should be written. This will be
closed for you upon returning from this function.uri
- The URI whose data is to be written.mimeType
- The desired type of data to be written.opts
- Options supplied by caller.args
- Your own custom arguments.