Default implementation of IUgiConfigurationDelegate, default UI for housekeeping functions.
|
static void | HideUI (object o) |
| Hide an alert More...
|
|
static void | UpdateAlert (object o, string message) |
| Hide an alert More...
|
|
static object | ShowOk (string title, string message, string okButtonTitle="", Action okDelegate=null) |
| Show an alert dialog with ok button More...
|
|
static object | ShowOkCancel (string title, string message, Action okDelegate, string okButtonTitle="", string cancelButtonTitle="", Action cancelDelegate=null) |
| Show an alert dialog with ok and cancel buttons More...
|
|
static object | ShowChoices (string[] choices, int initialSelectedIndex, string title, string actionButtonTitle, bool canCancel, Action< int, string > actionDelegate, Action< int, string, Action > confirmationDelegate=null, Action cancelDelegate=null) |
| Show UI to choose from a list of choices More...
|
|
static void | ShowWaiting (string message, Action cancelDelegate=null) |
| Show a waiting alert More...
|
|
static void | UpdateWaiting (string message) |
| Updat the message in a waiting alert More...
|
|
static void | HideWaiting () |
| Hide the waiting alert More...
|
|
|
bool | SendGrokkerSerialNumber [get, set] |
| true if the Grokker serial number should ever be sent to the U Grok It server More...
|
|
bool | UseHeadphoneAudioDevice [get, set] |
| If true, try to use the headphone audio device instead of the default device, and use the plugged/unplugged state of the headphone audio device to know whether a Grokker is connected. The default is FALSE. More...
|
|
bool | DoAutomaticFirmwareUpdate [get, set] |
| See whether automatic firmware update checks will be run More...
|
|
bool | SendGrokkerSerialNumber [get, set] |
| true if the Grokker serial number should ever be sent to the U Grok It server More...
|
|
bool | UseHeadphoneAudioDevice [get, set] |
| If true, try to use the headphone audio device instead of the default device, and use the plugged/unplugged state of the headphone audio device to know whether a Grokker is connected. The default is TRUE. More...
|
|
bool | DoAutomaticFirmwareUpdate [get, set] |
| true to run automatic firmware update checks More...
|
|
void UGrokItApi.UgiDefaultConfigurationUi.CheckSampleRates |
( |
Action |
del | ) |
|
|
inline |
void UGrokItApi.UgiDefaultConfigurationUi.PromptForFirmwareUpdate |
( |
UgiFirmwareUpdateInfo |
info, |
|
|
Action |
updateDelegate, |
|
|
Action |
cancelDelegate, |
|
|
Action |
postponeDelegate |
|
) |
| |
|
inline |
A firmware update is available. Prompt the user for whether to update. If the app does not want to update now, return NO call the Ugi method repromptForAutomaticFirmwareUpdateIfAvailable at some point.
- Parameters
-
info | Information about the firmware update that is available |
updateDelegate | Delegate to execute to do the update |
cancelDelegate | Delegate to execute if the user cancels |
postponeDelegate | Delegate to to postpone until later |
Implements UGrokItApi.IUgiConfigurationDelegate.
void UGrokItApi.UgiDefaultConfigurationUi.NotifyFirmwareUpdateErrorLoadingUpdate |
( |
Action |
del | ) |
|
|
inline |
void UGrokItApi.UgiDefaultConfigurationUi.DisplayFirmwareUpdateProgress |
( |
Action |
cancelDelegate | ) |
|
|
inline |
void UGrokItApi.UgiDefaultConfigurationUi.UpdateFirmwareUpdateProgress |
( |
int |
amountDone, |
|
|
int |
amountTotal, |
|
|
bool |
canCancel |
|
) |
| |
|
inline |
Update the progress notification about the firmware update
- Parameters
-
amountDone | Ammount of the firmware update that is done |
amountTotal | Ammount of the firmware update total |
canCancel | true if the user can cancel at this point |
Implements UGrokItApi.IUgiConfigurationDelegate.
void UGrokItApi.UgiDefaultConfigurationUi.NotifyFirmwareUpdateSuccess |
( |
int |
seconds, |
|
|
Action |
del |
|
) |
| |
|
inline |
Notify the user the firmware update completed successfully
- Parameters
-
seconds | Number of seconds that the update took |
del | Delegate to execute after notification |
Implements UGrokItApi.IUgiConfigurationDelegate.
void UGrokItApi.UgiDefaultConfigurationUi.NotifyFirmwareUpdateFailure |
( |
bool |
mustRetry, |
|
|
Action |
retryDelegate, |
|
|
Action |
cancelDelegate |
|
) |
| |
|
inline |
Notify the user that the firmware update failed
- Parameters
-
mustRetry | true if the user must retry (do not present a Cancel option) |
retryDelegate | Delegate to execute to retry the update 9nil if the update cannot be retried) |
cancelDelegate | Delegate to execute if the user cancels |
Implements UGrokItApi.IUgiConfigurationDelegate.
void UGrokItApi.UgiDefaultConfigurationUi.AbortFirmwareUpdateInteraction |
( |
| ) |
|
|
inline |
void UGrokItApi.UgiDefaultConfigurationUi.AfterFirmwareUpdate |
( |
bool |
updated | ) |
|
|
inline |
void UGrokItApi.UgiDefaultConfigurationUi.FinishBackgroundAction |
( |
| ) |
|
|
inline |
static void UGrokItApi.UgiDefaultConfigurationUi.HideUI |
( |
object |
o | ) |
|
|
inlinestatic |
static void UGrokItApi.UgiDefaultConfigurationUi.UpdateAlert |
( |
object |
o, |
|
|
string |
message |
|
) |
| |
|
inlinestatic |
Hide an alert
- Parameters
-
o | Token for alert to hide |
message | Text for the body of the alert dialog |
static object UGrokItApi.UgiDefaultConfigurationUi.ShowOk |
( |
string |
title, |
|
|
string |
message, |
|
|
string |
okButtonTitle = "" , |
|
|
Action |
okDelegate = null |
|
) |
| |
|
inlinestatic |
Show an alert dialog with ok button
- Returns
- Token for the alert dialog
- Parameters
-
title | Title for the alert |
message | Text for the body of the alert |
okButtonTitle | Text for the "ok" button, or "" for the defualt, or null for no ok button |
okDelegate | Code to execute for "ok" |
static object UGrokItApi.UgiDefaultConfigurationUi.ShowOkCancel |
( |
string |
title, |
|
|
string |
message, |
|
|
Action |
okDelegate, |
|
|
string |
okButtonTitle = "" , |
|
|
string |
cancelButtonTitle = "" , |
|
|
Action |
cancelDelegate = null |
|
) |
| |
|
inlinestatic |
Show an alert dialog with ok and cancel buttons
- Returns
- Token for the alert dialog
- Parameters
-
title | Title for the alert |
message | Text for the body of the alert |
okDelegate | Code to execute for "ok" |
okButtonTitle | Text for the "ok" button, or "" for the defualt, or null for no ok button |
cancelButtonTitle | Text for the "cancel" button, or "" for the defualt, or null for no cancel button |
cancelDelegate | Code to execute for "cancel" |
static object UGrokItApi.UgiDefaultConfigurationUi.ShowChoices |
( |
string[] |
choices, |
|
|
int |
initialSelectedIndex, |
|
|
string |
title, |
|
|
string |
actionButtonTitle, |
|
|
bool |
canCancel, |
|
|
Action< int, string > |
actionDelegate, |
|
|
Action< int, string, Action > |
confirmationDelegate = null , |
|
|
Action |
cancelDelegate = null |
|
) |
| |
|
inlinestatic |
Show UI to choose from a list of choices
- Returns
- Token for the UI
- Parameters
-
choices | Choices to choose from |
initialSelectedIndex | Choice to select initially |
title | Title for the alert |
actionButtonTitle | Text for the "ok" button, or "" for the defualt, or null for no ok button |
canCancel | true if the user can cancel |
actionDelegate | Code to execute if the user makes a choice |
confirmationDelegate | Code to execute to confirm the choice, or null of no confirmation |
cancelDelegate | Code to execute for "cancel" |
static void UGrokItApi.UgiDefaultConfigurationUi.ShowWaiting |
( |
string |
message, |
|
|
Action |
cancelDelegate = null |
|
) |
| |
|
inlinestatic |
Show a waiting alert
- Parameters
-
message | Message |
cancelDelegate | Code to execute if the user cancels. If null then no cancel button is shown |
static void UGrokItApi.UgiDefaultConfigurationUi.UpdateWaiting |
( |
string |
message | ) |
|
|
inlinestatic |
Updat the message in a waiting alert
- Parameters
-
static void UGrokItApi.UgiDefaultConfigurationUi.HideWaiting |
( |
| ) |
|
|
inlinestatic |
bool UGrokItApi.UgiDefaultConfigurationUi.SendGrokkerSerialNumber |
|
getset |
true if the Grokker serial number should ever be sent to the U Grok It server
bool UGrokItApi.UgiDefaultConfigurationUi.UseHeadphoneAudioDevice |
|
getset |
If true, try to use the headphone audio device instead of the default device, and use the plugged/unplugged state of the headphone audio device to know whether a Grokker is connected. The default is FALSE.
bool UGrokItApi.UgiDefaultConfigurationUi.DoAutomaticFirmwareUpdate |
|
getset |
See whether automatic firmware update checks will be run
- Returns
- true to run automatic firmware update checks
UGrokItApi.UgiDefaultConfigurationUi.UgiDefaultConfigurationUi |
( |
| ) |
|
|
inline |