net.yura.mobile.io
Class BTDiscovery
java.lang.Object
net.yura.mobile.io.BTDiscovery
- All Implemented Interfaces:
- javax.bluetooth.DiscoveryListener
public abstract class BTDiscovery
- extends Object
- implements javax.bluetooth.DiscoveryListener
- Author:
- MarkH
Fields inherited from interface javax.bluetooth.DiscoveryListener |
INQUIRY_COMPLETED, INQUIRY_ERROR, INQUIRY_TERMINATED, SERVICE_SEARCH_COMPLETED, SERVICE_SEARCH_DEVICE_NOT_REACHABLE, SERVICE_SEARCH_ERRO, SERVICE_SEARCH_NO_RECORDS, SERVICE_SEARCH_TERMINATED |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BTDiscovery
public BTDiscovery()
deviceDiscovered
public void deviceDiscovered(javax.bluetooth.RemoteDevice device,
javax.bluetooth.DeviceClass deviceClass)
- Specified by:
deviceDiscovered
in interface javax.bluetooth.DiscoveryListener
handleInquiryCompleted
public abstract void handleInquiryCompleted()
handleMyId
public abstract void handleMyId(String name,
String address)
handleRemoteId
public abstract void handleRemoteId(String name,
String address)
inquiryCompleted
public void inquiryCompleted(int discoveryType)
- Specified by:
inquiryCompleted
in interface javax.bluetooth.DiscoveryListener
isSupported
protected static boolean isSupported()
servicesDiscovered
public void servicesDiscovered(int transId,
javax.bluetooth.ServiceRecord[] serviceRecords)
- Specified by:
servicesDiscovered
in interface javax.bluetooth.DiscoveryListener
serviceSearchCompleted
public void serviceSearchCompleted(int transId,
int responseCode)
- Specified by:
serviceSearchCompleted
in interface javax.bluetooth.DiscoveryListener
start
public boolean start(int accessCode)