public static interface

BluetoothConnector.OnConnectedListener

mobisocial.nfc.addon.BluetoothConnector.OnConnectedListener

Class Overview

A callback used when a Bluetooth connection has been established.

Summary

Public Methods
abstract void beforeConnect(boolean isServer)
Called before an attempt to set up a Bluetooth connection.
abstract void onConnectionEstablished(BluetoothSocket socket, boolean isServer)
The method called when a Bluetooth connection has been established.

Public Methods

public abstract void beforeConnect (boolean isServer)

Called before an attempt to set up a Bluetooth connection.

Parameters
isServer True if this connection is the "host" of this connection. Useful in establishing an asymmetric relationship between otherwise symmetric devices.

public abstract void onConnectionEstablished (BluetoothSocket socket, boolean isServer)

The method called when a Bluetooth connection has been established.

Parameters
socket The connected Bluetooth socket.
isServer True if this connection is the "host" of this connection. Useful in establishing an asymmetric relationship between otherwise symmetric devices.