File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/fragments/lib/storage/android Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ Amplify.Storage.getTransfer("TRANSFER_ID",
10
10
operation. setOnProgress( progress - > {});
11
11
operation. setOnSuccess( result - > {});
12
12
operation. setOnError(error - > {});
13
+
14
+ // possible actions
15
+ operation. pause();
16
+ operation. resume();
17
+ operation. start();
18
+ operation. cancel();
13
19
},
14
20
{
15
21
error - > Log . e(" MyAmplifyApp" , " Failed to query transfer" , error)
@@ -28,6 +34,12 @@ Amplify.Storage.getTransfer("TRANSFER_ID",
28
34
operation.setOnProgress { }
29
35
operation.setOnSuccess { }
30
36
operation.setOnError { }
37
+
38
+ // possible actions
39
+ operation.pause()
40
+ operation.resume()
41
+ operation.start()
42
+ operation.cancel()
31
43
},
32
44
{
33
45
error -> Log .e(" MyAmplifyApp" ," Failed to query transfer" , error)
46
58
operation.setOnProgress { }
47
59
operation.setOnSuccess { }
48
60
operation.setOnError { }
61
+
62
+ // possible actions
63
+ operation.pause()
64
+ operation.resume()
65
+ operation.start()
66
+ operation.cancel()
49
67
} catch (error: StorageException ) {
50
68
Log .e(" MyAmplifyApp" , " Failed to query transfer" , error)
51
69
}
@@ -64,6 +82,11 @@ RxAmplify.Storage.getTransfer("TRANSFER_ID")
64
82
operation. setOnSuccess( result - > {});
65
83
operation. setOnError(error - > {});
66
84
85
+ // possible actions
86
+ operation. pause();
87
+ operation. resume();
88
+ operation. start();
89
+ operation. cancel();
67
90
},
68
91
error - > Log . e(" MyAmplifyApp" , " Failed to query transfer" , error);
69
92
);
You can’t perform that action at this time.
0 commit comments