|
LISNR Radius Android SDK 2.0.0
|
Class used transmit ultrasonic data. More...
Classes | |
| interface | TransmitterCallback |
| Callback interface that contains callbacks for the Transmitter object. More... | |
Public Member Functions | |
| Transmitter (String profile, TransmitterCallback callback) throws InvalidProfileException | |
| void | transmit (Tone tone) throws InvalidTonePayloadException, TransmitterNotRegisteredException |
| void | transmit (ArrayList< Tone > tones) throws InvalidTonePayloadException, TransmitterNotRegisteredException |
| void | beacon (Tone tone) throws InvalidTonePayloadException, TransmitterNotRegisteredException, BeaconNotPermittedException |
| void | clear () throws TransmitterNotRegisteredException |
| String | getProfile () |
| int | getMaxPayloadSizeBytes () |
| boolean | isEmpty () throws TransmitterNotRegisteredException |
Class used transmit ultrasonic data.
|
inline |
Constructor for the Transmitter object. After construction, the Transmitter object must be registered with a valid Radius object prior to any calls to transmit(), beacon(), clear(), or isEmpty().
| profile | The Radius profile used for all tones transmitted from this Transmitter (must be non-null) |
| callback | The implemented TransmitterCallback interface that will be invoked by this Transmitter (must be non-null) |
| com.lisnr.radius.exceptions.InvalidProfileException | if the provided profile is not valid |
| NullPointerException | if any of the provided arguments are null |
|
inline |
Continuously broadcast a tone. To end the beacon, perform any of the following:
| tone | The tone to use as a beacon |
| com.lisnr.radius.exceptions.InvalidTonePayloadException | if the provided Tone payload is empty or too large for the Transmitter (based on Transmitter profile) |
| com.lisnr.radius.exceptions.TransmitterNotRegisteredException | if the Transmitter has not been registered with a valid Radius object |
| com.lisnr.radius.exceptions.BeaconNotPermittedException | if other Transmitter objects are registered to the Radius object |
| NullPointerException | if a null Tone object is provided |
|
inline |
Remove all remaining Tone objects for this Transmitter that have not yet been transmitted.
| com.lisnr.radius.exceptions.TransmitterNotRegisteredException | if the Transmitter has not been registered with a valid Radius object |
|
inline |
Returns the max payload size (in bytes) for a Tone for the Transmitter. This is determined by the Transmitter's profile.
|
inline |
Get the profile of the Transmitter.
|
inline |
Determine if the Transmitter has any Tone objects queued.
| com.lisnr.radius.exceptions.TransmitterNotRegisteredException | if the Transmitter has not been registered with a valid Radius object |
|
inline |
Transmit a list of Tones. Tones will be transmitted in the order they are presented in the provided list. If the associated Radius object has any Tone objects queued or is actively transmitting, the Tone is queued for transmission.
| tones | List of Tones to be transmitted (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTonePayloadException | if any of the provided Tone payloads are empty or too large for the Transmitter (based on Transmitter profile) |
| com.lisnr.radius.exceptions.TransmitterNotRegisteredException | if the Transmitter has not been registered with a valid Radius object |
| NullPointerException | if a null ArrayList is provided, or if any Tone object within the ArrayList is null |
|
inline |
Transmit a single Tone. If the associated Radius object has any Tone objects queued or is actively transmitting, the Tone is queued for transmission.
| tone | Tone to be transmitted (must be non-null) |
| com.lisnr.radius.exceptions.InvalidTonePayloadException | if Tone payload is empty or too large for the Transmitter (based on Transmitter profile) |
| com.lisnr.radius.exceptions.TransmitterNotRegisteredException | if the Transmitter has not been registered with a valid Radius object |
| NullPointerException | if a null Tone object is provided |