Journal 133 — Unity App Development, Finalize Recall of User Data from Amazon S3
Objective: To finish app UI and display user data file from Amazon S3
In the previous article, we were able to successfully download an xml data file from Amazon S3. In this article, I will go over the UI layout to present the data back on screen.
First, we can set the active case to the downloaded case, and we can watch in the inspector as all the user data is populated back in the active case.
Add Callback to Search Results
The next update is to add a callback function to change from the search screen to the search results, but only if successfully finding a result.
We can add an Action delegate to when we search the list, and run additional code if there’s a match during the data search. In this case we will switch to the results screen only if there’s a match.
Now on the Search screen, we will add this.
Now let’s see the results.
Display Search Results and all User Data
Now we can update the search results screen and then continue to the data Overview screen which shows all the found user data.
On the SelectCase screen, we will show the name in the case file that was found, and from there, the user can hit the “Accept” button, and be taken to the case Overview screen.
Now let’s see this in action.
I plan to finish out this app by filling in the rest of the UI navigation buttons. The basic content of the app and UI can be customized to whatever type of data collection app you’d like.
Thank you for your time!