public class BarcodeReaderService extends UsbService
getInstance().
Communication processing is the same as UsbService.
(Japanese)
[GoF] Singletonパターンを使って実装されているため、インスタンスは1つだけ生成されます。
インスタンスの取得には、getInstance()を使用してください。
基本的な通信の処理はUsbServiceと同じです。| Modifier and Type | Method and Description |
|---|---|
static BarcodeReaderService |
getInstance()
Get the only instance.
|
static BarcodeReaderService |
getInstance(android.content.Context context)
Get the only instance.
|
addObserver, clearCallback, close, getCharSet, getConnectedDevice, getState, onReceive, removeObserver, run, sendZ3, setCharSet, start, stop, writeabortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static BarcodeReaderService getInstance()
public static BarcodeReaderService getInstance(android.content.Context context)
context - context - コンテキスト