public class MetaWearBleService
extends Service
Modifier and Type | Class and Description |
---|---|
class |
MetaWearBleService.LocalBinder
Dummy class for getting the MetaWear BLE service from its binder
|
Constructor and Description |
---|
MetaWearBleService() |
Modifier and Type | Method and Description |
---|---|
void |
clearLocalBroadcastManager()
Clears the stored local broadcast manager, which reverts to using the Service's intent broadcaster
|
void |
close()
Deprecated.
As of v1.3. Use
MetaWearController.close(boolean) and retrieve
a MetaWearController with getMetaWearController(BluetoothDevice) |
void |
close(boolean notify)
Deprecated.
As of v1.3. Use
MetaWearController.close(boolean) and retrieve
a MetaWearController with getMetaWearController(BluetoothDevice) |
void |
connect(BluetoothDevice metaWearBoard)
Deprecated.
As of v1.3. Use
MetaWearController.connect() and retrieve a MetaWearController
with getMetaWearController(BluetoothDevice) |
void |
disconnect()
Deprecated.
As of v1.3. Use
MetaWearController.close(boolean) and
retrieve a MetaWearController with getMetaWearController(BluetoothDevice) |
static BroadcastReceiver |
getMetaWearBroadcastReceiver()
Get the broadcast receiver for MetaWear intents.
|
MetaWearController |
getMetaWearController()
Deprecated.
As of v1.3. Use
getMetaWearController(BluetoothDevice) instead |
MetaWearController |
getMetaWearController(BluetoothDevice mwBoard)
Gets a controller for a specific MetaWear board.
|
static IntentFilter |
getMetaWearIntentFilter()
Get the IntentFilter for actions broadcasted by the MetaWear service
|
IBinder |
onBind(Intent intent) |
void |
onDestroy() |
void |
reconnect()
Deprecated.
As of v1.3. Use
MetaWearController.reconnect(boolean) and retrieve a MetaWearController
with getMetaWearController(BluetoothDevice) |
void |
useLocalBroadcasterManager(boolean useFlag)
Deprecated.
As of v1.4, use
clearLocalBroadcastManager() and
useLocalBroadcastManager(LocalBroadcastManager) instead |
void |
useLocalBroadcastManager(LocalBroadcastManager localBroadcastMngr)
Has the service broadcast intents with a
android.support.v4.content.LocalBroadcastManager |
public static IntentFilter getMetaWearIntentFilter()
MetaWearController.ModuleCallbacks
,
MetaWearController.DeviceCallbacks
public static BroadcastReceiver getMetaWearBroadcastReceiver()
@Deprecated public MetaWearController getMetaWearController()
getMetaWearController(BluetoothDevice)
insteadMetaWearController.connect()
,
MetaWearController.close(boolean)
, and MetaWearController.reconnect(boolean)
functions.
You will need to use the deprecated variants of those functions to modify the connection state.public MetaWearController getMetaWearController(BluetoothDevice mwBoard)
MetaWearController.connect()
, MetaWearController.close(boolean)
, and
MetaWearController.reconnect(boolean)
functions rather
than their deprecated variantsmwBoard
- MetaWear board to interact with@Deprecated public void useLocalBroadcasterManager(boolean useFlag)
clearLocalBroadcastManager()
and
useLocalBroadcastManager(LocalBroadcastManager)
insteaduseFlag
- True if android.support.v4.content.LocalBroadcastManager
should
be used to broadcast intentspublic void clearLocalBroadcastManager()
public void useLocalBroadcastManager(LocalBroadcastManager localBroadcastMngr)
android.support.v4.content.LocalBroadcastManager
localBroadcastMngr
- Local broadcast manager to use@Deprecated public void connect(BluetoothDevice metaWearBoard)
MetaWearController.connect()
and retrieve a MetaWearController
with getMetaWearController(BluetoothDevice)
metaWearBoard
- MetaWear board to connect to@Deprecated public void reconnect()
MetaWearController.reconnect(boolean)
and retrieve a MetaWearController
with getMetaWearController(BluetoothDevice)
@Deprecated public void disconnect()
MetaWearController.close(boolean)
and
retrieve a MetaWearController with getMetaWearController(BluetoothDevice)
@Deprecated public void close(boolean notify)
MetaWearController.close(boolean)
and retrieve
a MetaWearController with getMetaWearController(BluetoothDevice)
notify
- True if the MetaWearController.DeviceCallbacks.disconnected()
function should be calledpublic void close()
MetaWearController.close(boolean)
and retrieve
a MetaWearController with getMetaWearController(BluetoothDevice)
public IBinder onBind(Intent intent)
public void onDestroy()