File tree 7 files changed +16
-14
lines changed
src/main/java/io/appium/java_client
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) {
32
32
}
33
33
34
34
/**
35
+ * Is airplane mode enabled or not.
36
+ *
35
37
* @return true if airplane mode is enabled.
36
38
*/
37
39
public boolean isAirplaneModeEnabled () {
38
40
return (bitMask & AIRPLANE_MODE_MASK ) != 0 ;
39
41
}
40
42
41
43
/**
44
+ * Is Wi-Fi connection enabled or not.
45
+ *
42
46
* @return true if Wi-Fi connection is enabled.
43
47
*/
44
48
public boolean isWiFiEnabled () {
45
49
return (bitMask & WIFI_MASK ) != 0 ;
46
50
}
47
51
48
52
/**
53
+ * Is data connection enabled or not.
54
+ *
49
55
* @return true if data connection is enabled.
50
56
*/
51
57
public boolean isDataEnabled () {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ default void setClipboardImage(BufferedImage img) throws IOException {
48
48
}
49
49
50
50
/**
51
- * Get an image from the clipboard
51
+ * Get an image from the clipboard.
52
52
*
53
53
* @return the actual image instance.
54
54
* @throws IOException If the returned image cannot be decoded or if the clipboard is empty.
@@ -72,7 +72,7 @@ default void setClipboardUrl(URL url) {
72
72
}
73
73
74
74
/**
75
- * Get an URL from the clipboard
75
+ * Get an URL from the clipboard.
76
76
*
77
77
* @return the actual URL instance.
78
78
* @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 21
21
public interface CanHandleConnects {
22
22
23
23
/**
24
+ * Returns a list of all registered web socket connection handlers.
25
+ *
24
26
* @return The list of web socket connection handlers.
25
27
*/
26
28
List <Runnable > getConnectionHandlers ();
Original file line number Diff line number Diff line change 21
21
public interface CanHandleDisconnects {
22
22
23
23
/**
24
+ * Returns a list of all registered web socket disconnection handlers.
25
+ *
24
26
* @return The list of web socket disconnection handlers.
25
27
*/
26
28
List <Runnable > getDisconnectionHandlers ();
Original file line number Diff line number Diff line change 22
22
public interface CanHandleErrors {
23
23
24
24
/**
25
+ * Returns a list of all registered web socket error handlers.
26
+ *
25
27
* @return The list of web socket error handlers.
26
28
*/
27
29
List <Consumer <Throwable >> getErrorHandlers ();
Original file line number Diff line number Diff line change 21
21
22
22
public interface CanHandleMessages <T > {
23
23
/**
24
+ * Returns a list of all registered web socket messages handlers.
25
+ *
24
26
* @return The list of web socket message handlers.
25
27
*/
26
28
List <Consumer <T >> getMessageHandlers ();
Original file line number Diff line number Diff line change @@ -104,33 +104,21 @@ public void onMessage(String message) {
104
104
getMessageHandlers ().forEach (x -> x .accept (message ));
105
105
}
106
106
107
- /**
108
- * @return The list of all registered web socket messages handlers.
109
- */
110
107
@ Override
111
108
public List <Consumer <String >> getMessageHandlers () {
112
109
return messageHandlers ;
113
110
}
114
111
115
- /**
116
- * @return The list of all registered web socket error handlers.
117
- */
118
112
@ Override
119
113
public List <Consumer <Throwable >> getErrorHandlers () {
120
114
return errorHandlers ;
121
115
}
122
116
123
- /**
124
- * @return The list of all registered web socket connection handlers.
125
- */
126
117
@ Override
127
118
public List <Runnable > getConnectionHandlers () {
128
119
return connectHandlers ;
129
120
}
130
121
131
- /**
132
- * @return The list of all registered web socket disconnection handlers.
133
- */
134
122
@ Override
135
123
public List <Runnable > getDisconnectionHandlers () {
136
124
return disconnectHandlers ;
You can’t perform that action at this time.
0 commit comments