Skip to content

Most visited

Recently visited

navigation

LowpanManager

LowpanManager

public class LowpanManager
extends Object

java.lang.Object
   ↳ com.google.android.things.lowpan.LowpanManager


Manager object for looking up LoWPAN interfaces.

See also:

Summary

Nested classes

class LowpanManager.Callback

Callback base class for LowpanManager

Public methods

LowpanInterface getInterface()

Gets default LowpanInterface.

LowpanInterface getInterface(String name)

Returns a reference to the requested LowpanInterface object.

String[] getInterfaceList()

Returns a string array containing the names of LoWPAN interfaces.

static LowpanManager getManager()

Gets an instance of LowpanManager.

void registerCallback(LowpanManager.Callback cb)
void registerCallback(LowpanManager.Callback cb, Handler handler)

Registers a callback object to receive notifications when LoWPAN interfaces are added or removed.

void unregisterCallback(LowpanManager.Callback cb)

Unregisters a previously registered LowpanManager.Callback object.

Inherited methods

From class java.lang.Object

Public methods

getInterface

LowpanInterface getInterface ()

Gets default LowpanInterface.

Returns
LowpanInterface a reference to the first registered LowpanInterface object. If there are no LoWPAN interfaces registered, returns null.

getInterface

LowpanInterface getInterface (String name)

Returns a reference to the requested LowpanInterface object. If the given interface doesn't exist, or it is not a LoWPAN interface, returns null.

Parameters
name String
Returns
LowpanInterface

getInterfaceList

String[] getInterfaceList ()

Returns a string array containing the names of LoWPAN interfaces. This list may contain fewer interfaces if the calling process does not have permissions to see individual interfaces.

Returns
String[]

getManager

LowpanManager getManager ()

Gets an instance of LowpanManager.

Returns
LowpanManager An instance of the LowpanManager object, or null if this device does not support this feature.

registerCallback

void registerCallback (LowpanManager.Callback cb)

Parameters
cb LowpanManager.Callback
Throws
LowpanException

registerCallback

void registerCallback (LowpanManager.Callback cb, 
                Handler handler)

Registers a callback object to receive notifications when LoWPAN interfaces are added or removed.

Parameters
cb LowpanManager.Callback
handler Handler
Throws
LowpanException

unregisterCallback

void unregisterCallback (LowpanManager.Callback cb)

Unregisters a previously registered LowpanManager.Callback object.

Parameters
cb LowpanManager.Callback
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)