IDataShareWriteAdapter.OnWrite(ParcelFileDescriptor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.