public final class Context extends Object
LibUsb.setDebug(Context, int)
will not affect the other user of the
library, and LibUsb.exit(Context)
will not destroy resources that the
other user is still using.
Sessions are created by LibUsb.init(Context)
and destroyed through
LibUsb.exit(Context)
. If your application is guaranteed to only ever
include a single libusb user (i.e. you), you do not have to worry about
contexts: pass NULL in every function call where a context is required. The
default context will be used.Constructor and Description |
---|
Context()
Constructs a new libusb context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getPointer()
Returns the native pointer to the context structure.
|
int |
hashCode() |
String |
toString() |
public Context()
LibUsb.init(Context)
before passing it to any other method.Copyright © 2011–2018 usb4java Team. All rights reserved.