IBrailleDisplayController.Write(Byte[]) Method

Definition

Writes a HID report to the currently connected Braille display.

[Android.Runtime.Register("write", "([B)V", "GetWrite_arrayBHandler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public void Write (byte[] buffer);
[<Android.Runtime.Register("write", "([B)V", "GetWrite_arrayBHandler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member Write : byte[] -> unit

Parameters

buffer
Byte[]

The bytes to write to the Braille display. These bytes should be formatted according to the HID report descriptor and the HIDRAW kernel driver.

Attributes

Remarks

Writes a HID report to the currently connected Braille display.

This method returns immediately after dispatching the write request to the system. If the system experiences an error in writing output (e.g. the Braille display is unplugged after the system receives the write request but before writing the bytes to the Braille display) then the system will disconnect the Braille display, which calls BrailleDisplayCallback#onDisconnected().

Java documentation for android.accessibilityservice.BrailleDisplayController.write(byte[]).

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