UsbManager.OpenAccessoryOutputStream(UsbAccessory) 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.
Opens an output stream for writing to the USB accessory.
[Android.Runtime.Register("openAccessoryOutputStream", "(Landroid/hardware/usb/UsbAccessory;)Ljava/io/OutputStream;", "GetOpenAccessoryOutputStream_Landroid_hardware_usb_UsbAccessory_Handler", ApiSince=36)]
public virtual System.IO.Stream OpenAccessoryOutputStream(Android.Hardware.Usb.UsbAccessory accessory);
[<Android.Runtime.Register("openAccessoryOutputStream", "(Landroid/hardware/usb/UsbAccessory;)Ljava/io/OutputStream;", "GetOpenAccessoryOutputStream_Landroid_hardware_usb_UsbAccessory_Handler", ApiSince=36)>]
abstract member OpenAccessoryOutputStream : Android.Hardware.Usb.UsbAccessory -> System.IO.Stream
override this.OpenAccessoryOutputStream : Android.Hardware.Usb.UsbAccessory -> System.IO.Stream
Parameters
- accessory
- UsbAccessory
the USB accessory to open an output stream for
Returns
output stream to write to given USB accessory
- Attributes
Remarks
Opens an output stream for writing to the USB accessory. If accessory is not open at this point, accessory will first be opened.
The caller is responsible for ensuring that the returned stream is closed.
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.