Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 82

javax.bluetooth
Class DiscoveryAgent

java.lang.Object
  extended by javax.bluetooth.DiscoveryAgent

public class DiscoveryAgent
extends java.lang.Object

This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.


Field Summary
static int CACHED
           
static int GIAC
           
static int LIAC
           
static int NOT_DISCOVERABLE
           
static int PREKNOWN
           
 
Method Summary
 boolean cancelInquiry(DiscoveryListener listener)
           
 boolean cancelServiceSearch(int transID)
           
 RemoteDevice[] retrieveDevices(int option)
           
 int searchServices(int[] attrSet, UUID[] uuidSet, RemoteDevice btDev, DiscoveryListener discListener)
           
 java.lang.String selectService(UUID uuid, int security, boolean master)
           
 boolean startInquiry(int accessCode, DiscoveryListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_DISCOVERABLE

public static final int NOT_DISCOVERABLE
See Also:
Constant Field Values

GIAC

public static final int GIAC
See Also:
Constant Field Values

LIAC

public static final int LIAC
See Also:
Constant Field Values

CACHED

public static final int CACHED
See Also:
Constant Field Values

PREKNOWN

public static final int PREKNOWN
See Also:
Constant Field Values
Method Detail

retrieveDevices

public RemoteDevice[] retrieveDevices(int option)

startInquiry

public boolean startInquiry(int accessCode,
                            DiscoveryListener listener)
                     throws BluetoothStateException
Throws:
BluetoothStateException

cancelInquiry

public boolean cancelInquiry(DiscoveryListener listener)

searchServices

public int searchServices(int[] attrSet,
                          UUID[] uuidSet,
                          RemoteDevice btDev,
                          DiscoveryListener discListener)
                   throws BluetoothStateException
Throws:
BluetoothStateException

cancelServiceSearch

public boolean cancelServiceSearch(int transID)

selectService

public java.lang.String selectService(UUID uuid,
                                      int security,
                                      boolean master)
                               throws BluetoothStateException
Throws:
BluetoothStateException

JSR 82

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 82 specification.