|
2 | 2 | <!-- NewPage --> |
3 | 3 | <html lang="en"> |
4 | 4 | <head> |
5 | | -<!-- Generated by javadoc (1.8.0_152-release) on Mon May 21 12:31:34 CDT 2018 --> |
6 | | -<title>FsActivity (filestack 5.0.0-0.3.0 API)</title> |
7 | | -<meta name="date" content="2018-05-21"> |
| 5 | +<!-- Generated by javadoc (1.8.0_144) on Thu Sep 27 12:28:32 CEST 2018 --> |
| 6 | +<title>FsActivity (filestack 5.1.0 API)</title> |
| 7 | +<meta name="date" content="2018-09-27"> |
8 | 8 | <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
9 | 9 | <script type="text/javascript" src="../../../script.js"></script> |
10 | 10 | </head> |
11 | 11 | <body> |
12 | 12 | <script type="text/javascript"><!-- |
13 | 13 | try { |
14 | 14 | if (location.href.indexOf('is-external=true') == -1) { |
15 | | - parent.document.title="FsActivity (filestack 5.0.0-0.3.0 API)"; |
| 15 | + parent.document.title="FsActivity (filestack 5.1.0 API)"; |
16 | 16 | } |
17 | 17 | } |
18 | 18 | catch(err) { |
@@ -150,6 +150,27 @@ <h2 title="Class FsActivity" class="title">Class FsActivity</h2> |
150 | 150 | <pre>public class <span class="typeNameLabel">FsActivity</span> |
151 | 151 | extends android.support.v7.app.AppCompatActivity |
152 | 152 | implements io.reactivex.SingleObserver<com.filestack.CloudResponse>, io.reactivex.CompletableObserver, <a href="../../../com/filestack/android/internal/SelectionSaver.Listener.html" title="interface in com.filestack.android.internal">SelectionSaver.Listener</a>, android.support.design.widget.NavigationView.OnNavigationItemSelectedListener</pre> |
| 153 | +<div class="block">UI to select and upload files from local and cloud sources. |
| 154 | + |
| 155 | + This class should be launched through the creation and sending of an {<code>Intent</code>}. |
| 156 | + Options are set by passing values to <code>Intent.putExtra(String, String)</code>. |
| 157 | + The keys and descriptions for these options are defined in {<a href="../../../com/filestack/android/FsConstants.html" title="class in com.filestack.android"><code>FsConstants</code></a>}. |
| 158 | + |
| 159 | + There are two types of results from this activity, the files a user selects ({<a href="../../../com/filestack/android/Selection.html" title="class in com.filestack.android"><code>Selection</code></a>}) |
| 160 | + and the metadata returned when these selections are uploaded ({<code>FileLink</code>}). |
| 161 | + Automatic uploads can be disabled, in which case you will not receive any of the latter. |
| 162 | + |
| 163 | + User selections are returned as an {<code>ArrayList</code>} of {<a href="../../../com/filestack/android/Selection.html" title="class in com.filestack.android"><code>Selection</code></a>} objects to |
| 164 | + {<code>Activity.onActivityResult(int, int, Intent)</code>}. To receive upload metadata, |
| 165 | + you must define and register a {<code>BroadcastReceiver</code>}. The corresponding |
| 166 | + {<code>IntentFilter</code>} must be created to catch |
| 167 | + {<a href="../../../com/filestack/android/FsConstants.html#BROADCAST_UPLOAD"><code>FsConstants.BROADCAST_UPLOAD</code></a>}. Upload metadata is returned as |
| 168 | + {<code>FileLink</code>} objects passed to |
| 169 | + {<code>BroadcastReceiver.onReceive(Context, Intent)</code>}. The key strings needed to |
| 170 | + pull results from intents are defined in {<a href="../../../com/filestack/android/FsConstants.html" title="class in com.filestack.android"><code>FsConstants</code></a>}. |
| 171 | + |
| 172 | + The intent and broadcast mechanisms, and keys defined in {<a href="../../../com/filestack/android/FsConstants.html" title="class in com.filestack.android"><code>FsConstants</code></a>}, are the contract |
| 173 | + for this class. The actual code of this class should be considered internal implementation.</div> |
153 | 174 | </li> |
154 | 175 | </ul> |
155 | 176 | </div> |
|
0 commit comments