File tree Expand file tree Collapse file tree 7 files changed +16
-14
lines changed
src/main/java/io/appium/java_client Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,26 @@ public ConnectionState(long bitMask) {
3232 }
3333
3434 /**
35+ * Is airplane mode enabled or not.
36+ *
3537 * @return true if airplane mode is enabled.
3638 */
3739 public boolean isAirplaneModeEnabled () {
3840 return (bitMask & AIRPLANE_MODE_MASK ) != 0 ;
3941 }
4042
4143 /**
44+ * Is Wi-Fi connection enabled or not.
45+ *
4246 * @return true if Wi-Fi connection is enabled.
4347 */
4448 public boolean isWiFiEnabled () {
4549 return (bitMask & WIFI_MASK ) != 0 ;
4650 }
4751
4852 /**
53+ * Is data connection enabled or not.
54+ *
4955 * @return true if data connection is enabled.
5056 */
5157 public boolean isDataEnabled () {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ default void setClipboardImage(BufferedImage img) throws IOException {
4848 }
4949
5050 /**
51- * Get an image from the clipboard
51+ * Get an image from the clipboard.
5252 *
5353 * @return the actual image instance.
5454 * @throws IOException If the returned image cannot be decoded or if the clipboard is empty.
@@ -72,7 +72,7 @@ default void setClipboardUrl(URL url) {
7272 }
7373
7474 /**
75- * Get an URL from the clipboard
75+ * Get an URL from the clipboard.
7676 *
7777 * @return the actual URL instance.
7878 * @throws MalformedURLException if the URL in the clipboard is not valid or if the clipboard is empty.
Original file line number Diff line number Diff line change 2121public interface CanHandleConnects {
2222
2323 /**
24+ * Returns a list of all registered web socket connection handlers.
25+ *
2426 * @return The list of web socket connection handlers.
2527 */
2628 List <Runnable > getConnectionHandlers ();
Original file line number Diff line number Diff line change 2121public interface CanHandleDisconnects {
2222
2323 /**
24+ * Returns a list of all registered web socket disconnection handlers.
25+ *
2426 * @return The list of web socket disconnection handlers.
2527 */
2628 List <Runnable > getDisconnectionHandlers ();
Original file line number Diff line number Diff line change 2222public interface CanHandleErrors {
2323
2424 /**
25+ * Returns a list of all registered web socket error handlers.
26+ *
2527 * @return The list of web socket error handlers.
2628 */
2729 List <Consumer <Throwable >> getErrorHandlers ();
Original file line number Diff line number Diff line change 2121
2222public interface CanHandleMessages <T > {
2323 /**
24+ * Returns a list of all registered web socket messages handlers.
25+ *
2426 * @return The list of web socket message handlers.
2527 */
2628 List <Consumer <T >> getMessageHandlers ();
Original file line number Diff line number Diff line change @@ -104,33 +104,21 @@ public void onMessage(String message) {
104104 getMessageHandlers ().forEach (x -> x .accept (message ));
105105 }
106106
107- /**
108- * @return The list of all registered web socket messages handlers.
109- */
110107 @ Override
111108 public List <Consumer <String >> getMessageHandlers () {
112109 return messageHandlers ;
113110 }
114111
115- /**
116- * @return The list of all registered web socket error handlers.
117- */
118112 @ Override
119113 public List <Consumer <Throwable >> getErrorHandlers () {
120114 return errorHandlers ;
121115 }
122116
123- /**
124- * @return The list of all registered web socket connection handlers.
125- */
126117 @ Override
127118 public List <Runnable > getConnectionHandlers () {
128119 return connectHandlers ;
129120 }
130121
131- /**
132- * @return The list of all registered web socket disconnection handlers.
133- */
134122 @ Override
135123 public List <Runnable > getDisconnectionHandlers () {
136124 return disconnectHandlers ;
You can’t perform that action at this time.
0 commit comments