Dela via


IDataShareWriteAdapter.OnWrite(ParcelFileDescriptor) Method

Definition

Method invoked when the data share session has been started and the app needs to start writing into the file used for sharing.

[Android.Runtime.Register("onWrite", "(Landroid/os/ParcelFileDescriptor;)V", "GetOnWrite_Landroid_os_ParcelFileDescriptor_Handler:Android.Views.ContentCaptures.IDataShareWriteAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnWrite (Android.OS.ParcelFileDescriptor destination);
[<Android.Runtime.Register("onWrite", "(Landroid/os/ParcelFileDescriptor;)V", "GetOnWrite_Landroid_os_ParcelFileDescriptor_Handler:Android.Views.ContentCaptures.IDataShareWriteAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnWrite : Android.OS.ParcelFileDescriptor -> unit

Parameters

destination
ParcelFileDescriptor

file descriptor used to write data into.

Attributes

Remarks

Method invoked when the data share session has been started and the app needs to start writing into the file used for sharing.

App needs to handle explicitly cases when the file descriptor is closed and handle gracefully if IOExceptions happen.

Java documentation for android.view.contentcapture.DataShareWriteAdapter.onWrite(android.os.ParcelFileDescriptor).

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