|
LISNR Radius Android SDK 2.0.0
|
Class used to manage instances of Transmitter and Receiver objects.. More...
Classes | |
| interface | ErrorEventCallback |
| Callback interface that contains callbacks for additional error events. More... | |
Public Member Functions | |
| Radius (Context context, String sdkToken, StreamBuilder outputStreamParameters, StreamBuilder inputStreamParameters, ErrorEventCallback errorEventCallback) throws InvalidTokenException, AuthorizationDeniedException, AudioSystemException | |
| Radius (Context context, String sdkToken, ErrorEventCallback errorEventCallback) throws InvalidTokenException, AuthorizationDeniedException, AudioSystemException | |
| Radius (Lifecycle lifecycle, Context context, String sdkToken, StreamBuilder outputStreamParameters, StreamBuilder inputStreamParameters, ErrorEventCallback errorEventCallback) throws InvalidTokenException, AuthorizationDeniedException, AudioSystemException | |
| Radius (Lifecycle lifecycle, Context context, String sdkToken, ErrorEventCallback errorEventCallback) throws InvalidTokenException, AuthorizationDeniedException, AudioSystemException | |
| void | updateStreamBuilder (StreamBuilder.Direction direction, StreamBuilder streamBuilder) |
| void | registerTransmitter (Transmitter transmitter) throws InvalidArgumentException, RadiusDestroyedException |
| void | registerReceiver (Receiver receiver) throws InvalidArgumentException, RadiusDestroyedException |
| void | registerTransceiver (Transceiver transceiver) throws InvalidArgumentException, RadiusDestroyedException |
| void | unregisterTransmitter (Transmitter transmitter) throws InvalidArgumentException, RadiusDestroyedException |
| void | unregisterReceiver (Receiver receiver) throws InvalidArgumentException, RadiusDestroyedException |
| void | unregisterTransceiver (Transceiver transceiver) throws InvalidArgumentException, RadiusDestroyedException |
| void | unregisterAll () throws RadiusDestroyedException |
| void | setTransmissionVolume (int volumeLevel) throws InvalidArgumentException, RadiusDestroyedException |
| void | shutdown () |
| void | setLoggingLevels (boolean enableTrace, boolean enableFatal, boolean enableError, boolean enableWarning, boolean enableInfo, boolean enableDebug, boolean enableVerbose, int verboseLevel) throws RadiusDestroyedException |
Static Public Member Functions | |
| static String | getVersion () |
| static void | validateToken (String sdkToken) throws InvalidTokenException |
| static String | getTokenExpiration (String sdkToken) throws InvalidTokenException |
Static Public Attributes | |
| static final String | PROFILE_STANDARD2 = "standard2" |
| static final String | PROFILE_STANDARD2_WIDEBAND = "standard2_wideband" |
| static final String | PROFILE_PKAB2 = "pkab2" |
| static final String | PROFILE_PKAB2_WIDEBAND = "pkab2_wideband" |
Class used to manage instances of Transmitter and Receiver objects..
|
inline |
Constructor for the Radius object. Use this constructor to use the specified audio stream (com.lisnr.radius.StreamBuilder) settings for input and output (see Audio System Configuration).
| context | Context for the Radius object (must be non-null) |
| sdkToken | LISNR SDK token from the developer portal (https://portal.lisnr.com) (must be non-null) |
| outputStreamParameters | Output com.lisnr.radius.StreamBuilder for configuring audio output behavior (must be non-null) |
| inputStreamParameters | Input com.lisnr.radius.StreamBuilder for configuring audio input behavior (must be non-null) |
| errorEventCallback | The implemented ErrorEventCallback interface that will be invoked by this Radius object if an internal error occurs (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTokenException | if the provided token is invalid |
| com.lisnr.radius.exceptions.AuthorizationDeniedException | if the provided token is not authorized for Radius |
| com.lisnr.radius.exceptions.AudioSystemException | if there is an audio system error |
| NullPointerException | if any of the provided arguments are null |
|
inline |
Constructor for the Radius object. Use this constructor to use the default audio stream (com.lisnr.radius.StreamBuilder) settings for input and output (see Audio System Configuration).
| context | Context for the Radius object (must be non-null) |
| sdkToken | LISNR SDK token from the developer portal (https://portal.lisnr.com) (must be non-null) |
| errorEventCallback | The implemented ErrorEventCallback interface that will be invoked by this Radius object if an internal error occurs (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTokenException | if the provided token is invalid |
| com.lisnr.radius.exceptions.AuthorizationDeniedException | if the provided token is not authorized for Radius |
| com.lisnr.radius.exceptions.AudioSystemException | if there is an audio system error |
| NullPointerException | if any of the provided arguments are null |
|
inline |
Constructor for the Radius object. Use this constructor to use the specified audio stream (com.lisnr.radius.StreamBuilder) settings for input and output (see Audio System Configuration).
| lifecycle | The Android Lifecycle Radius will monitor in order to shutdown when an ON_STOP event occurs, like a screen turning off (must be non-null) |
| context | Context for the Radius object (must be non-null) |
| sdkToken | LISNR SDK token from the developer portal (https://portal.lisnr.com) (must be non-null) |
| outputStreamParameters | Output com.lisnr.radius.StreamBuilder for configuring audio output behavior (must be non-null) |
| inputStreamParameters | Input com.lisnr.radius.StreamBuilder for configuring audio input behavior (must be non-null) |
| errorEventCallback | The implemented ErrorEventCallback interface that will be invoked by this Radius object if an internal error occurs (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTokenException | if the provided token is invalid |
| com.lisnr.radius.exceptions.AuthorizationDeniedException | if the provided token is not authorized for Radius |
| com.lisnr.radius.exceptions.AudioSystemException | if there is an audio system error |
| NullPointerException | if any of the provided arguments are null |
|
inline |
Constructor for the Radius object. Use this constructor to use the default audio stream (com.lisnr.radius.StreamBuilder) settings for input and output (see Audio System Configuration).
| lifecycle | The Android Lifecycle Radius will monitor in order to shutdown on certain events, like a screen turning off (must be non-null) |
| context | Context for the Radius object (must be non-null) |
| sdkToken | LISNR SDK token from the developer portal (https://portal.lisnr.com) (must be non-null) |
| errorEventCallback | The implemented ErrorEventCallback interface that will be invoked by this Radius object if an internal error occurs (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTokenException | if the provided token is invalid |
| com.lisnr.radius.exceptions.AuthorizationDeniedException | if the provided token is not authorized for Radius |
| com.lisnr.radius.exceptions.AudioSystemException | if there is an audio system error |
| NullPointerException | if any of the provided arguments are null |
|
inlinestatic |
Returns a well-formatted expiration date for the token in format MM/dd/YYYY @params sdkToken The token to parse for expiration date
| com.lisnr.point.exceptions.InvalidTokenException | if the token is not formatted properly |
|
inlinestatic |
Get the version of the SDK
|
inline |
Register a Receiver object. This must be done prior to the Receiver object being used.
| receiver | A non-null Receiver object |
| com.lisnr.radius.exceptions.InvalidArgumentException | if an invalid Receiver object is provided OR if there is already a Receiver registered with the same profile as that of the provided Receiver |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
| NullPointerException | if a null Receiver object is provided |
|
inline |
Register a Transceiver object. This must be done prior to the Transceiver object being used.
| transceiver | A non-null Transceiver object |
| com.lisnr.radius.exceptions.InvalidArgumentException | if an invalid Transceiver object is provided OR if there is already a Transceiver registered with the same profile as that of the provided Receiver |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
| NullPointerException | if a null Transceiver object is provided |
|
inline |
Register a Transmitter object. This must be done prior to the Transmitter object being used.
| transmitter | A non-null Transmitter object |
| com.lisnr.radius.exceptions.InvalidArgumentException | if an invalid Transmitter object is provided OR if there is already a Transmitter registered with the same profile as that of the provided Transmitter |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
| NullPointerException | if a null Transmitter object is provided |
|
inline |
Sets the active logging levels to the provided values
| enableTrace | true to enable TRACE level |
| enableFatal | true to enable FATAL level |
| enableError | true to enable ERROR level |
| enableWarning | true to enable WARNING level |
| enableInfo | true to enable INFO level |
| enableDebug | true to enable DEBUG level |
| enableVerbose | true to enable VERBOSE levels |
| verboseLevel | level of verbosity, 1-9 are valid (anything lower than 1 will set to 1, higher than 9 will set to 9) |
|
inline |
Set volume of all transmissions using this Radius object.
| volumeLevel | The percentage of volume to transmit |
| InvalidArgumentException | if a volumeLevel below 0 or above 100 is provided |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
|
inline |
|
inline |
Unregisters all currently registered Transmitter and Receiver objects. This will also cancel & remove any Tone objects that are set to transmit but have not yet been transmitted.
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
|
inline |
|
inline |
Unregister a Transceiver object. This will cause the Transceiver object to no longer function. All Tone objects set to be transmitted by this Transceiver will be cancelled and removed.
| transceiver | A non-null Transceiver object |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
| NullPointerException | if a null Transceiver object is provided |
|
inline |
Unregister a Transmitter object. This will cause the Transmitter object to no longer function. All Tone objects set to be transmitted by this Transmitter will be cancelled and removed.
| transmitter | A non-null Transmitter object |
| com.lisnr.radius.exceptions.RadiusDestroyedException | if the Radius object is not usable due to an ON_STOP event |
| NullPointerException | if a null Transmitter object is provided |
|
inline |
Update the StreamBuilder settings for input or output
| direction | StreamBuilder.Direction.INPUT or StreamBuilder.Direction.OUTPUT |
| streamBuilder | The new StreamBuilder settings to update to (must be non-null) |
|
inlinestatic |
Validates the provided SDK token
| sdkToken | The token to be validated |
| com.lisnr.point.exceptions.InvalidTokenException | on failure |
|
static |
Profile string for the Precision KAB2 profile
|
static |
Profile string for the wideband Precision KAB2 profile
|
static |
Profile string for the Standard2 profile
|
static |
Profile string for the wideband Standard2 profile