@Deprecated
public abstract class SimpleGollumDongle
extends java.lang.Object
This class is a singleton
Constructor and Description |
---|
SimpleGollumDongle()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
closeDevice()
Deprecated.
Close PandwaRF connection
|
void |
destroy()
Deprecated.
Close all device connection.
|
abstract void |
getBatteryLevel()
Deprecated.
Read the current battery level
|
abstract java.lang.String |
getCurrentFirmwareVersion()
Deprecated.
|
abstract java.lang.String |
getCurrentSoftwareVersion()
Deprecated.
|
static GollumDongle |
getInstance(android.app.Activity parentActivity)
Deprecated.
|
static GollumDongle |
getInstance(android.content.Context context)
Deprecated.
|
abstract void |
getLastVersionCC1111(java.lang.String modelName,
java.lang.String hardwareRevision,
GollumCallbackGetString cb)
Deprecated.
Get the last version of CC1111
|
abstract void |
getLastVersionNordic(java.lang.String modelName,
java.lang.String hardwareRevision,
GollumCallbackGetString cb)
Deprecated.
Get the last version of nordic
|
abstract java.lang.String |
getLibGitHash()
Deprecated.
|
abstract java.lang.String |
getLibVersion()
Deprecated.
|
static boolean |
hasInstance()
Deprecated.
|
abstract void |
notifButtonPushed(boolean bool)
Deprecated.
Activate or desactivate to receive the notification when a button of the dongle is pushed.
|
abstract void |
openGollumBleDevice(ExtendedBluetoothDevice device,
boolean autoConnect,
boolean reconnectIfError,
boolean refreshDeviceCacheBeforeConnect)
Deprecated.
Open a given Gollum Device
|
abstract void |
openGollumBleDevice(ExtendedBluetoothDevice device,
boolean autoConnect,
boolean reconnectIfError,
boolean refreshDeviceCacheBeforeConnect,
GollumBleManagerCallbacks cb)
Deprecated.
Open a given Gollum Device
|
abstract void |
openGollumBleDeviceFirstFound(GollumBleManagerCallbacks bleManagerCallbacks,
ScannerListener scannerListener)
Deprecated.
Connect at the first device found
|
abstract void |
pause()
Deprecated.
Stop all connections.
|
abstract void |
readDeviceInformation()
Deprecated.
Allow to ask to received information about the dongle.
|
abstract void |
reconnect(java.lang.String address)
Deprecated.
Reconnect to a given BLE address, or last BLE address used if address is null.
|
abstract void |
searchDevice(ScannerListener scannerListener)
Deprecated.
To search for any Gollum device around.
|
abstract void |
signalBattery(boolean bool)
Deprecated.
Activate or desactivate to receive the level battery signal.
|
abstract void |
signalRssi(boolean bool)
Deprecated.
Activate or desactivate to receive the RSSI signal.
|
abstract void |
stopSearchDevice()
Deprecated.
To stop searching for any Gollum device around.
|
public static GollumDongle getInstance(android.app.Activity parentActivity)
parentActivity
- The calling activity being used to instantiate the SimpleGollumDongle.public static GollumDongle getInstance(android.content.Context context)
context
- The calling context being used to instantiate the SimpleGollumDongle.public static boolean hasInstance()
public abstract void searchDevice(ScannerListener scannerListener)
scannerListener
- callbacks to be called when new device is found or scan endsGollumCallback
public abstract void stopSearchDevice()
GollumCallback
public abstract void openGollumBleDevice(ExtendedBluetoothDevice device, boolean autoConnect, boolean reconnectIfError, boolean refreshDeviceCacheBeforeConnect)
device
- autoConnect
- reconnectIfError
- refreshDeviceCacheBeforeConnect
- public abstract void openGollumBleDevice(ExtendedBluetoothDevice device, boolean autoConnect, boolean reconnectIfError, boolean refreshDeviceCacheBeforeConnect, GollumBleManagerCallbacks cb)
device
- autoConnect
- reconnectIfError
- refreshDeviceCacheBeforeConnect
- cb
- public abstract void openGollumBleDeviceFirstFound(GollumBleManagerCallbacks bleManagerCallbacks, ScannerListener scannerListener)
bleManagerCallbacks
- : Callback to receive information about bluetooth notification.scannerListener
- : Callback to receive information about the scan.public abstract void closeDevice()
public void destroy()
public abstract void reconnect(java.lang.String address)
address
- public abstract void pause()
public abstract void signalRssi(boolean bool)
public abstract void signalBattery(boolean bool)
public abstract void notifButtonPushed(boolean bool)
public abstract void readDeviceInformation()
public abstract void getLastVersionCC1111(java.lang.String modelName, java.lang.String hardwareRevision, GollumCallbackGetString cb)
cb
- : Callback to call when the background task is terminatedpublic abstract void getLastVersionNordic(java.lang.String modelName, java.lang.String hardwareRevision, GollumCallbackGetString cb)
modelName
- model name of the PandwaRF to checkhardwareRevision
- HW revision of the PandwaRF to checkcb
- : Callback to call when the background task is terminatedpublic abstract java.lang.String getLibVersion()
public abstract java.lang.String getLibGitHash()
public abstract java.lang.String getCurrentSoftwareVersion()
public abstract java.lang.String getCurrentFirmwareVersion()
public abstract void getBatteryLevel()