Public Member Functions | |
RemoteMenuController | build () throws IOException |
boolean | attemptPairing (Optional< Consumer< AuthStatus >> maybePairingListener) throws IOException |
A base connection factory for client side remote connectors that can build connections and try to pair with a device. This is for client side connections such as embedCONTROL remote and RemoteConnectors.
boolean com.thecoderscorner.menu.remote.ConnectorFactory.attemptPairing | ( | Optional< Consumer< AuthStatus >> | maybePairingListener | ) | throws IOException |
Attempt to pair with a remote optionally providing a listener that gets notified of status for updating a UI for example. It returns when pairing is complete.
maybePairingListener | an optional pairing listener to listen for status updates |
IOException | if the pairing connection fails. |
Implemented in com.thecoderscorner.menu.remote.socket.SocketControllerBuilder.
RemoteMenuController com.thecoderscorner.menu.remote.ConnectorFactory.build | ( | ) | throws IOException |
Build a remote connection from the factory and return a controller that can be used to manage the menu on a remote device.
IOException | if the controller cannot be created |
Implemented in com.thecoderscorner.menu.remote.socket.SocketControllerBuilder.