File tree Expand file tree Collapse file tree 4 files changed +36
-2
lines changed
ble/src/main/java/no/nordicsemi/android/ble Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 33import android .os .Handler ;
44import android .util .Log ;
55
6+ import androidx .annotation .IntRange ;
67import androidx .annotation .NonNull ;
78import androidx .annotation .Nullable ;
9+
810import no .nordicsemi .android .ble .callback .AfterCallback ;
911import no .nordicsemi .android .ble .callback .BeforeCallback ;
1012import no .nordicsemi .android .ble .callback .FailCallback ;
@@ -49,6 +51,13 @@ public ConditionalWaitRequest<T> setHandler(@Nullable final Handler handler) {
4951 return this ;
5052 }
5153
54+ @ NonNull
55+ @ Override
56+ public ConditionalWaitRequest <T > timeout (@ IntRange (from = 0 ) final long timeout ) {
57+ super .timeout (timeout );
58+ return this ;
59+ }
60+
5261 @ Override
5362 @ NonNull
5463 public ConditionalWaitRequest <T > done (@ NonNull final SuccessCallback callback ) {
Original file line number Diff line number Diff line change 2929import android .os .Handler ;
3030import android .util .Log ;
3131
32+ import androidx .annotation .IntRange ;
3233import androidx .annotation .NonNull ;
3334import androidx .annotation .Nullable ;
35+
3436import no .nordicsemi .android .ble .callback .AfterCallback ;
3537import no .nordicsemi .android .ble .callback .BeforeCallback ;
3638import no .nordicsemi .android .ble .callback .DataReceivedCallback ;
@@ -86,6 +88,13 @@ public ReadRequest setHandler(@Nullable final Handler handler) {
8688 return this ;
8789 }
8890
91+ @ NonNull
92+ @ Override
93+ public ReadRequest timeout (@ IntRange (from = 0 ) final long timeout ) {
94+ super .timeout (timeout );
95+ return this ;
96+ }
97+
8998 @ Override
9099 @ NonNull
91100 public ReadRequest done (@ NonNull final SuccessCallback callback ) {
Original file line number Diff line number Diff line change 99import androidx .annotation .IntRange ;
1010import androidx .annotation .NonNull ;
1111import androidx .annotation .Nullable ;
12+
1213import no .nordicsemi .android .ble .callback .AfterCallback ;
1314import no .nordicsemi .android .ble .callback .BeforeCallback ;
1415import no .nordicsemi .android .ble .callback .DataSentCallback ;
@@ -80,6 +81,13 @@ public WaitForReadRequest setHandler(@Nullable final Handler handler) {
8081 return this ;
8182 }
8283
84+ @ NonNull
85+ @ Override
86+ public WaitForReadRequest timeout (@ IntRange (from = 0 ) final long timeout ) {
87+ super .timeout (timeout );
88+ return this ;
89+ }
90+
8391 @ Override
8492 @ NonNull
8593 public WaitForReadRequest done (@ NonNull final SuccessCallback callback ) {
Original file line number Diff line number Diff line change 2929import android .os .Handler ;
3030import android .util .Log ;
3131
32- import java .util .Arrays ;
33-
3432import androidx .annotation .IntRange ;
3533import androidx .annotation .NonNull ;
3634import androidx .annotation .Nullable ;
35+
36+ import java .util .Arrays ;
37+
3738import no .nordicsemi .android .ble .annotation .WriteType ;
3839import no .nordicsemi .android .ble .callback .AfterCallback ;
3940import no .nordicsemi .android .ble .callback .BeforeCallback ;
@@ -111,6 +112,13 @@ public WriteRequest setHandler(@Nullable final Handler handler) {
111112 return this ;
112113 }
113114
115+ @ NonNull
116+ @ Override
117+ public WriteRequest timeout (@ IntRange (from = 0 ) final long timeout ) {
118+ super .timeout (timeout );
119+ return this ;
120+ }
121+
114122 @ Override
115123 @ NonNull
116124 public WriteRequest done (@ NonNull final SuccessCallback callback ) {
You can’t perform that action at this time.
0 commit comments