Public Member Functions | |
String | getName () |
AuthStatus | currentState () |
RemoteMenuController | start () throws Exception |
boolean | attemptPairing (Consumer< AuthStatus > statusConsumer) throws Exception |
A connection creator is responsible for creating a remote connection. Once created the start method needs to be called in order to actually get hold of the remote controller object. It can also handle the pairing with a device. It is mainly used by embedCONTROL remote to both present and deal with new connections.
boolean com.thecoderscorner.embedcontrol.core.creators.ConnectionCreator.attemptPairing | ( | Consumer< AuthStatus > | statusConsumer | ) | throws Exception |
Attempt to pair with the remote, this method is synchronous and should never be called on the UI thread. Usually prefer to run through an executor. The provide consumer will be called back during the process with status updates suitable for presenting on the UI. This will not be called on the UI thread however.
statusConsumer | the consumer of update events, not on UI thread. |
Exception | in the event pairing was not possible |
Implemented in com.thecoderscorner.embedcontrol.core.creators.SimulatorConnectionCreator, com.thecoderscorner.embedcontrol.core.creators.Rs232ConnectionCreator, and com.thecoderscorner.embedcontrol.core.creators.ManualLanConnectionCreator.
AuthStatus com.thecoderscorner.embedcontrol.core.creators.ConnectionCreator.currentState | ( | ) |
Implemented in com.thecoderscorner.embedcontrol.core.creators.SimulatorConnectionCreator, com.thecoderscorner.embedcontrol.core.creators.Rs232ConnectionCreator, and com.thecoderscorner.embedcontrol.core.creators.ManualLanConnectionCreator.
String com.thecoderscorner.embedcontrol.core.creators.ConnectionCreator.getName | ( | ) |
Implemented in com.thecoderscorner.embedcontrol.core.creators.SimulatorConnectionCreator, com.thecoderscorner.embedcontrol.core.creators.Rs232ConnectionCreator, and com.thecoderscorner.embedcontrol.core.creators.ManualLanConnectionCreator.
RemoteMenuController com.thecoderscorner.embedcontrol.core.creators.ConnectionCreator.start | ( | ) | throws Exception |
Use this method to start the underlying connection and get hold a controller object.
Exception | if unable to create the controller |
Implemented in com.thecoderscorner.embedcontrol.core.creators.SimulatorConnectionCreator, com.thecoderscorner.embedcontrol.core.creators.Rs232ConnectionCreator, and com.thecoderscorner.embedcontrol.core.creators.ManualLanConnectionCreator.