Public Member Functions | |
void | changeRoleClicked (View view) |
void | leaveConcertClicked (View view) |
void | onActivityResult (int requestCode, int resultCode, Intent data) |
void | onBackPressed () |
void | onCreate (Bundle savedInstanceState) |
boolean | onCreateOptionsMenu (Menu menu) |
boolean | onOptionsItemSelected (MenuItem item) |
Remocon () | |
void | startMasterChooser () |
void | validateConcert (final MasterId id) |
Protected Member Functions | |
void | init () |
void | init (final NodeMainExecutor nodeMainExecutor) |
void | onStart () |
void | updateAppList (final ArrayList< Interaction > apps, final String master_name, final String role) |
Package Functions | |
void | init (Intent intent) |
Private Member Functions | |
void | chooseRole () |
Private Attributes | |
boolean | alreadyClicked = false |
ArrayList< Interaction > | availableAppsCache |
long | availableAppsCacheTime |
String | concertAppName = null |
TextView | concertNameView |
String | defaultConcertAppName = null |
AlertDialogWrapper | errorDialog |
AlertDialogWrapper | evictDialog |
boolean | fromApplication = false |
boolean | fromNfcLauncher = false |
InteractionsManager | interactionsManager |
LaunchInteractionDialog | launchInteractionDialog |
Button | leaveConcertButton |
NodeConfiguration | nodeConfiguration |
PairSubscriber | pairSubscriber |
ProgressDialogWrapper | progressDialog |
RoconDescription | roconDescription |
Interaction | selectedInteraction |
StatusPublisher | statusPublisher |
boolean | validatedConcert |
AlertDialogWrapper | wifiDialog |
Static Private Attributes | |
static final int | CONCERT_MASTER_CHOOSER_REQUEST_CODE = 1 |
An almost complete rewrite of RobotRemocon to work with rocon interactions.
References to concert below should be refactored to interactions so as not to be confusing (it is now concert agnostic) (Daniel Stonier).
Definition at line 96 of file Remocon.java.
Definition at line 128 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.changeRoleClicked | ( | View | view | ) | [inline] |
Choose a new role and get the apps associated to the new roll.
Definition at line 614 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.chooseRole | ( | ) | [inline, private] |
Definition at line 429 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.init | ( | ) | [inline, protected] |
Definition at line 138 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.init | ( | final NodeMainExecutor | nodeMainExecutor | ) | [inline, protected] |
This gets processed as soon as the application returns it with a uri - this is either as a result of the master chooser or as in the case when it has been relaunched by an application, from intents set by the application.
Here we configure the remocon environment for a particular concert, listing apps and providing the required triggers for interacting with that concert.
nodeMainExecutor |
Definition at line 346 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.init | ( | Intent | intent | ) | [inline, package] |
Initialise from an intent triggered by either the returning concert chooser or a concert app.
Validation will occur slightly differently in both cases - when returning from the app, it will assume its already in control and skip the invitation step (see validateConcert).
This eventually passes control back to the generic init function (TODO: can probably incorporate this into that function).
intent |
Definition at line 388 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.leaveConcertClicked | ( | View | view | ) | [inline] |
This returns the activity to the concert master chooser activity. It will get triggered via either a backpress or the button provided in the Remocon activity.
Definition at line 623 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.onActivityResult | ( | int | requestCode, |
int | resultCode, | ||
Intent | data | ||
) | [inline] |
The main result gathered here is that from the concert master chooser which is started on top of the initial Remocon Activity. This proceeds to then set the uri and trigger the init() calls.
requestCode | |
resultCode | |
data |
Definition at line 471 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.onBackPressed | ( | ) | [inline] |
Definition at line 652 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.onCreate | ( | Bundle | savedInstanceState | ) | [inline] |
Called when the activity is first created.
Definition at line 183 of file Remocon.java.
boolean com.github.rosjava.android_remocons.rocon_remocon.Remocon.onCreateOptionsMenu | ( | Menu | menu | ) | [inline] |
Definition at line 635 of file Remocon.java.
boolean com.github.rosjava.android_remocons.rocon_remocon.Remocon.onOptionsItemSelected | ( | MenuItem | item | ) | [inline] |
Definition at line 641 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.onStart | ( | ) | [inline, protected] |
Definition at line 157 of file Remocon.java.
This is an override which diverts the usual startup once a node is connected. Typically this would go to the master chooser, however here we are sometimes returning from one of its child apps (in which case it doesn't have to go choosing a concert). In that case, send it directly to the concert validation and initialisation steps.
Definition at line 498 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.updateAppList | ( | final ArrayList< Interaction > | apps, |
final String | master_name, | ||
final String | role | ||
) | [inline, protected] |
Definition at line 589 of file Remocon.java.
void com.github.rosjava.android_remocons.rocon_remocon.Remocon.validateConcert | ( | final MasterId | id | ) | [inline] |
Definition at line 506 of file Remocon.java.
boolean com.github.rosjava.android_remocons.rocon_remocon.Remocon.alreadyClicked = false [private] |
Definition at line 117 of file Remocon.java.
ArrayList<Interaction> com.github.rosjava.android_remocons.rocon_remocon.Remocon.availableAppsCache [private] |
Definition at line 106 of file Remocon.java.
Definition at line 119 of file Remocon.java.
final int com.github.rosjava.android_remocons.rocon_remocon.Remocon.CONCERT_MASTER_CHOOSER_REQUEST_CODE = 1 [static, private] |
Definition at line 99 of file Remocon.java.
String com.github.rosjava.android_remocons.rocon_remocon.Remocon.concertAppName = null [private] |
Definition at line 102 of file Remocon.java.
TextView com.github.rosjava.android_remocons.rocon_remocon.Remocon.concertNameView [private] |
Definition at line 107 of file Remocon.java.
String com.github.rosjava.android_remocons.rocon_remocon.Remocon.defaultConcertAppName = null [private] |
Definition at line 103 of file Remocon.java.
Definition at line 113 of file Remocon.java.
Definition at line 112 of file Remocon.java.
boolean com.github.rosjava.android_remocons.rocon_remocon.Remocon.fromApplication = false [private] |
Definition at line 125 of file Remocon.java.
boolean com.github.rosjava.android_remocons.rocon_remocon.Remocon.fromNfcLauncher = false [private] |
Definition at line 126 of file Remocon.java.
InteractionsManager com.github.rosjava.android_remocons.rocon_remocon.Remocon.interactionsManager [private] |
Definition at line 114 of file Remocon.java.
LaunchInteractionDialog com.github.rosjava.android_remocons.rocon_remocon.Remocon.launchInteractionDialog [private] |
Definition at line 109 of file Remocon.java.
Definition at line 108 of file Remocon.java.
NodeConfiguration com.github.rosjava.android_remocons.rocon_remocon.Remocon.nodeConfiguration [private] |
Definition at line 105 of file Remocon.java.
Definition at line 116 of file Remocon.java.
ProgressDialogWrapper com.github.rosjava.android_remocons.rocon_remocon.Remocon.progressDialog [private] |
Definition at line 110 of file Remocon.java.
RoconDescription com.github.rosjava.android_remocons.rocon_remocon.Remocon.roconDescription [private] |
Definition at line 104 of file Remocon.java.
Interaction com.github.rosjava.android_remocons.rocon_remocon.Remocon.selectedInteraction [private] |
Definition at line 101 of file Remocon.java.
Definition at line 115 of file Remocon.java.
Definition at line 118 of file Remocon.java.
Definition at line 111 of file Remocon.java.