Language

IBrailleDisplayController.Connect Method

Definition

Overloads

Name Description
Connect(BluetoothDevice, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

Connect(UsbDevice, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

Connect(BluetoothDevice, IExecutor, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

Connect(UsbDevice, IExecutor, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

Connect(BluetoothDevice, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

[Android.Runtime.Register("connect", "(Landroid/bluetooth/BluetoothDevice;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_bluetooth_BluetoothDevice_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void Connect(Android.Bluetooth.BluetoothDevice bluetoothDevice, Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback callback);
[<Android.Runtime.Register("connect", "(Landroid/bluetooth/BluetoothDevice;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_bluetooth_BluetoothDevice_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
abstract member Connect : Android.Bluetooth.BluetoothDevice * Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback -> unit

Parameters

bluetoothDevice
BluetoothDevice

The Braille display device. This value cannot be null.

callback
IBrailleDisplayController.IBrailleDisplayCallback

Callbacks used to provide connection results. This value cannot be null.

Attributes

Remarks

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

If successful then the HID report descriptor will be provided to BrailleDisplayCallback.onConnected and the Braille display will start sending incoming input bytes to BrailleDisplayCallback.onInput. If there is an error in reading input then the system will disconnect the Braille display.

Note that the callbacks will be executed on the main thread using AccessibilityService.getMainExecutor(). To specify the execution thread, use connect(BluetoothDevice,Executor,BrailleDisplayCallback). Requires Manifest.permission.BLUETOOTH_CONNECT

Android reference for android.accessibilityservice.BrailleDisplayController.connect.

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

Connect(UsbDevice, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

[Android.Runtime.Register("connect", "(Landroid/hardware/usb/UsbDevice;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_hardware_usb_UsbDevice_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public void Connect(Android.Hardware.Usb.UsbDevice usbDevice, Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback callback);
[<Android.Runtime.Register("connect", "(Landroid/hardware/usb/UsbDevice;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_hardware_usb_UsbDevice_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member Connect : Android.Hardware.Usb.UsbDevice * Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback -> unit

Parameters

usbDevice
UsbDevice

The Braille display device. This value cannot be null.

callback
IBrailleDisplayController.IBrailleDisplayCallback

Callbacks used to provide connection results. This value cannot be null.

Attributes

Remarks

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

If successful then the HID report descriptor will be provided to BrailleDisplayCallback.onConnected and the Braille display will start sending incoming input bytes to BrailleDisplayCallback.onInput. If there is an error in reading input then the system will disconnect the Braille display.

The accessibility service app must already have approval to access the USB device from the standard UsbManager access approval process.

Note that the callbacks will be executed on the main thread using AccessibilityService.getMainExecutor(). To specify the execution thread, use connect(UsbDevice,Executor,BrailleDisplayCallback).

Android reference for android.accessibilityservice.BrailleDisplayController.connect.

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

Connect(BluetoothDevice, IExecutor, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

[Android.Runtime.Register("connect", "(Landroid/bluetooth/BluetoothDevice;Ljava/util/concurrent/Executor;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_bluetooth_BluetoothDevice_Ljava_util_concurrent_Executor_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void Connect(Android.Bluetooth.BluetoothDevice bluetoothDevice, Java.Util.Concurrent.IExecutor callbackExecutor, Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback callback);
[<Android.Runtime.Register("connect", "(Landroid/bluetooth/BluetoothDevice;Ljava/util/concurrent/Executor;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_bluetooth_BluetoothDevice_Ljava_util_concurrent_Executor_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
abstract member Connect : Android.Bluetooth.BluetoothDevice * Java.Util.Concurrent.IExecutor * Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback -> unit

Parameters

bluetoothDevice
BluetoothDevice

The Braille display device. This value cannot be null.

callbackExecutor
IExecutor

Executor for executing the provided callbacks. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
IBrailleDisplayController.IBrailleDisplayCallback

Callbacks used to provide connection results. This value cannot be null.

Attributes

Remarks

Connects to the requested bluetooth Braille display using the Braille display HID standard (usage page 0x41).

If successful then the HID report descriptor will be provided to BrailleDisplayCallback.onConnected and the Braille display will start sending incoming input bytes to BrailleDisplayCallback.onInput. If there is an error in reading input then the system will disconnect the Braille display. Requires Manifest.permission.BLUETOOTH_CONNECT

Android reference for android.accessibilityservice.BrailleDisplayController.connect.

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

Connect(UsbDevice, IExecutor, IBrailleDisplayController+IBrailleDisplayCallback)

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

[Android.Runtime.Register("connect", "(Landroid/hardware/usb/UsbDevice;Ljava/util/concurrent/Executor;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_hardware_usb_UsbDevice_Ljava_util_concurrent_Executor_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public void Connect(Android.Hardware.Usb.UsbDevice usbDevice, Java.Util.Concurrent.IExecutor callbackExecutor, Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback callback);
[<Android.Runtime.Register("connect", "(Landroid/hardware/usb/UsbDevice;Ljava/util/concurrent/Executor;Landroid/accessibilityservice/BrailleDisplayController$BrailleDisplayCallback;)V", "GetConnect_Landroid_hardware_usb_UsbDevice_Ljava_util_concurrent_Executor_Landroid_accessibilityservice_BrailleDisplayController_BrailleDisplayCallback_Handler:Android.AccessibilityServices.IBrailleDisplayControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member Connect : Android.Hardware.Usb.UsbDevice * Java.Util.Concurrent.IExecutor * Android.AccessibilityServices.IBrailleDisplayController.IBrailleDisplayCallback -> unit

Parameters

usbDevice
UsbDevice

The Braille display device. This value cannot be null.

callbackExecutor
IExecutor

Executor for executing the provided callbacks. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
IBrailleDisplayController.IBrailleDisplayCallback

Callbacks used to provide connection results. This value cannot be null.

Attributes

Remarks

Connects to the requested USB Braille display using the Braille display HID standard (usage page 0x41).

If successful then the HID report descriptor will be provided to BrailleDisplayCallback.onConnected and the Braille display will start sending incoming input bytes to BrailleDisplayCallback.onInput. If there is an error in reading input then the system will disconnect the Braille display.

The accessibility service app must already have approval to access the USB device from the standard UsbManager access approval process.

Android reference for android.accessibilityservice.BrailleDisplayController.connect.

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