| com.sun.kvem.jsr082.bluetooth.NativeBCC
NativeBCC | public class NativeBCC extends BCC (Code) | | Native-based Bluetooth Control Center. For many operations, this
implementation relies on BluetoothStack class.
|
Constructor Summary | |
protected | NativeBCC() Constructs the only instance of this class. |
NativeBCC | protected NativeBCC()(Code) | | Constructs the only instance of this class.
|
authenticate | public boolean authenticate(String address)(Code) | | Authenticates remote device.
Parameters: address - Bluetooth address of a remote device true if the device was authenticated, false otherwise |
authorize | native public boolean authorize(String address, int handle)(Code) | | Authorizes a Bluetooth connection.
Parameters: address - Bluetooth address of a remote device Parameters: handle - handle for the service record of the srvice the remotedevice is trying to access true if authorization succeeded, false otherwise |
bond | native public boolean bond(String address, String pin)(Code) | | Initiates pairing with a remote device.
Parameters: address - the Bluetooth address of the device with which to pair Parameters: pin - an array containing the PIN code true if the device was authenticated, false otherwise |
confirmEnable | native public boolean confirmEnable()(Code) | | Asks user whether Bluetooth radio is allowed to be turned on.
true if user has allowed to enable Bluetooth, false otherwise |
enableBluetooth | public boolean enableBluetooth()(Code) | | Enables Bluetooth radio and the Bluetooth protocol stack for use.
true if the operation succeeded, false otherwise |
encrypt | public boolean encrypt(String address, boolean enable)(Code) | | Enables or disables encryption of data exchanges.
Parameters: address - the Bluetooth address of the remote device Parameters: enable - indicated whether the encryption needs to be enabled true if the encryption has been changed, false otherwise |
getAccessCode | public int getAccessCode()(Code) | | |
getBluetoothAddress | public String getBluetoothAddress()(Code) | | Returns local Bluetooth address.
local Bluetooth address. |
getFriendlyName | public String getFriendlyName()(Code) | | Returns user-friendly name for the local device.
user-friendly name for the local device, ornull if the name could not be retrieved See Also: LocalDevice.getFriendlyName |
getFriendlyName | public String getFriendlyName(String address)(Code) | | Retrieves the user-friendly name for specified remote device.
Parameters: address - Bluetooth address of a remote device name of the remote device, ornull if the name could not be retrieved See Also: RemoteDevice.getFriendlyName |
getPasskey | native public String getPasskey(String address)(Code) | | Retrieves PIN code to use for pairing with a remote device. If the
PIN code is not known, PIN entry dialog is displayed.
Parameters: address - the Bluetooth address of the remote device string containing the PIN code |
getPreknownDevices | public Vector getPreknownDevices()(Code) | | Returns list of preknown devices in a packed string.
vector containing preknown devices |
isAuthenticated | native public boolean isAuthenticated(String address)(Code) | | Checks if a remote device was authenticated.
Parameters: address - Bluetooth address of a remote device true if the device was authenticated, false otherwise |
isBluetoothEnabled | public boolean isBluetoothEnabled()(Code) | | Queries the power state of the Bluetooth device.
true is the Bluetooth device is on,false otherwise. |
isConnectable | native public boolean isConnectable()(Code) | | Determines if the local device is in connectable mode.
true if the device is connectable, false otherwise |
isConnected | native public boolean isConnected(String address)(Code) | | Checks if there is a connection to the remote device.
Parameters: address - the Bluetooth address of the remote device true if connection is established with the remote device |
isEncrypted | native public boolean isEncrypted(String address)(Code) | | Checks if connections to a remote device are encrypted.
Parameters: address - Bluetooth address of the remote device true if connections to the device are encrypted, false otherwise |
isPaired | native public boolean isPaired(String address)(Code) | | Checks if the local device has a bond with a remote device.
Parameters: address - Bluetooth address of a remote device true if the two devices were paired, false otherwise |
isTrusted | native public boolean isTrusted(String address)(Code) | | Checks if a remote device is trusted (authorized for all services).
Parameters: address - Bluetooth address of a remote device true if the device is trusted, false otherwise |
setAccessCode | public boolean setAccessCode(int accessCode)(Code) | | |
setEncryption | native public boolean setEncryption(String address, boolean enable)(Code) | | Increases or decreases encryption request counter for a remote device.
Parameters: address - the Bluetooth address of the remote device Parameters: enable - indicated whether the encryption needs to be enabled true if the encryption needs to been changed, false otherwise |
setServiceClasses | public boolean setServiceClasses(int classes)(Code) | | |
|
|