public class Restate
extends Fragment
Data collected here includes the time the user spent on the screen.
Modifier and Type | Field and Description |
---|---|
(package private) Activity |
activity
The instance of the current Activity
|
(package private) SSCallback |
callback
The instance of the
SSCallback that allows this fragment to
communicate with the parent activity. |
(package private) SSJsonReader |
reader
The instance of the
SSJsonReader class that reads in the dynamic
content for the application. |
(package private) boolean |
temp1
boolean value indicating what template this fragment is currently apart
of.
|
(package private) SSTimer |
timer
The instance of the
SSTimer used for retrieving timing values for
this Fragment. |
(package private) MediaPlayer |
voMediaPlayer
The instance of voice over MediaPlayer
|
Constructor and Description |
---|
Restate(SSJsonReader reader,
int run)
The constructor saves what template type this Fragment is a part of and
copies the instance of the
SSJsonReader into memory. |
Modifier and Type | Method and Description |
---|---|
void |
onAttach(Activity activity)
This class uses the onAttach method of the android life cycle to save an
instance of the activity and to implement the interface between the main
activity and this fragment activity
|
void |
onCompletion(MediaPlayer mp)
Upon voice over completion, this method is called and the next button is
made available to the user.
|
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState)
This method is called by the system to inflate the layout for the Restate
screen.
|
void |
onDestroy()
All data is saved within this method and memory with the
voMediaPlayer is released. |
Activity activity
SSCallback callback
SSCallback
that allows this fragment to
communicate with the parent activity.SSJsonReader reader
SSJsonReader
class that reads in the dynamic
content for the application.boolean temp1
SSTimer timer
SSTimer
used for retrieving timing values for
this Fragment.MediaPlayer voMediaPlayer
public Restate(SSJsonReader reader, int run)
SSJsonReader
into memory.reader
- The instance of the SSJsonReader
run
- The integer representation of the corresponding Template the
Fragment is a part of.public void onAttach(Activity activity)
public void onCompletion(MediaPlayer mp)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
public void onDestroy()
voMediaPlayer
is released.