| java.lang.Object | |
| ↳ | org.ocast.referencedriver.ReferenceDriver |
Defines a driver implementing communications layers with a remote device
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | ReferenceDriver.ReferenceFactory | A Driver.Factory for driver creation
|
|||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | SEARCH_TARGET | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ReferenceDriver(Device device, Driver.DriverListener listener) | |||||||||||
| ReferenceDriver(Device device, Driver.DriverListener listener, SSLConfig sslConfig) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
connect(Driver.Module module, Runnable onSuccess, Consumer<Throwable> onFailure)
Establish a network communication channel with the given
Module | ||||||||||
| void |
connect(Driver.Module module, AdditionalData additionalData, Runnable onSuccess, Consumer<Throwable> onFailure)
Establish a network communication channel with the given
Module | ||||||||||
| void |
disconnect(Driver.Module module, Runnable onSuccess)
Disconnects the given
Module | ||||||||||
| PublicSettings | getPublicSettings() | ||||||||||
| void |
onEvent(DriverEvent driverEvent)
an unsollicited event has been reported on the Link (could be a playback status update)
| ||||||||||
| void |
onFailure(Throwable t)
Invoked when an error occured
| ||||||||||
| void | registerBrowser(Driver.BrowserListener browser) | ||||||||||
| void |
sendBrowserData(JSONObject data, Consumer<JSONObject> onSuccess, Consumer<Throwable> onFailure)
Sends data the the remote application browser
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.ocast.core.Driver
| |||||||||||
From interface
org.ocast.core.Link.LinkListener
| |||||||||||
Establish a network communication channel with the given Module
| module | the targeted Module |
|---|---|
| onSuccess | to be called in case of success. |
| onFailure | to be called in case of error. |
| DriverException |
|---|
Establish a network communication channel with the given Module
| module | the targeted Module |
|---|---|
| onSuccess | to be called in case of success. |
| onFailure | to be called in case of error. |
| DriverException |
|---|
Disconnects the given Module
| module | the module to be disconnected |
|---|---|
| onSuccess | to be called in case of success. |
an unsollicited event has been reported on the Link (could be a playback status update)
Invoked when an error occured
| t | the cause of the error |
|---|
Sends data the the remote application browser