UgiViewController Class Reference
Overview
UgiViewController adds some convenient functionality to UIViewController
Instance Methods | |
| (void) | - connectionStateChanged |
Notification that the Grokker connection state changed | |
| (void) | - inventoryStateChanged |
Notification that the Grokker inventory state changed | |
| (void) | - disconnectedDialogCancelled |
Notification that the user has pressed "cancel" in the disconnected dialog. More... | |
| (void) | - backButtonPressed |
Notification that the back buton was pressed. More... | |
| (void) | - goBack |
Go back a screen | |
| (void) | - goBackWithCompletion: |
Go back a screen More... | |
| (void) | - appDidBecomeActive |
Notification that the app has become active | |
| (void) | - appWillResignActive |
Notification that the app has become not active | |
| (void) | - titleViewTapped |
Called when the title view is tapped | |
| (void) | - titleViewLongPressed |
Called when the title view is long pressed | |
| (void) | - performSegueWithIdentifier:withConfigCallback: |
Perform a segue with code to initialize the new view controller More... | |
Properties | |
| BOOL | hidesBackButton |
| Hide the back button. | |
| BOOL | hidesTitleBar |
| Hide the title bar. | |
| BOOL | displayDialogIfDisconnected |
| Display disconnected dialog if Grokker is not connected, if inventory is running. | |
| BOOL | displayDialogIfDisconnectedEvenIfNotRunningInventory |
| Display disconnected dialog if Grokker is not connected, regardless of whether inventory is running. | |
| BOOL | allowRotationIfTablet |
| Allow screen to rotate if this is a tablet. | |
| UgiTitleView * | titleView |
| Title view. | |
| UIColor * | themeColor |
| Color for the view controller, defaults to themeColor (UgiUiUtil). | |
| UIColor * | textColorOnThemeColor |
| Color for the view controller, defaults to textColorOnThemeColor (UgiUiUtil). | |
| UIColor * | buttonColor |
| Color for the view controller, defaults to buttonColor (UgiUiUtil). | |
| UIColor * | buttonPressedColor |
| Color for the view controller, defaults to buttonPressedColor (UgiUiUtil). | |
| UIColor * | textColorOnBackground |
| Color for the view controller, defaults to textColorOnBackground (UgiUiUtil). | |
Types | |
| typedef void(^ | PerformSegueWithIdentifierCompletion) (UIViewController *_Nonnull vc) |
Prototype for completion method for performSegueWithIdentifier:withConfigCallback More... | |
Instance Method Documentation
◆ disconnectedDialogCancelled()
| - (void) disconnectedDialogCancelled |
Notification that the user has pressed "cancel" in the disconnected dialog.
The default action is to pop this view controller
◆ backButtonPressed()
| - (void) backButtonPressed |
Notification that the back buton was pressed.
The default action is to pop this view controller
◆ goBackWithCompletion:()
| - (void) goBackWithCompletion: | (nullable VoidBlock) | completion |
Go back a screen
- Parameters
-
completion Code to run after animation is complete
◆ performSegueWithIdentifier:withConfigCallback:()
| - (void) performSegueWithIdentifier: | (NSString *_Nonnull) | identifier | |
| withConfigCallback: | (nonnull PerformSegueWithIdentifierCompletion) | configCompletion | |
Perform a segue with code to initialize the new view controller
- Parameters
-
identifier Segue to invoke configCompletion Code to run after animation is complete
Member Typedef Documentation
◆ PerformSegueWithIdentifierCompletion
| - (typedef void(^ PerformSegueWithIdentifierCompletion) (UIViewController *_Nonnull vc)) |
Prototype for completion method for performSegueWithIdentifier:withConfigCallback
- Parameters
-
vc view controller
|
Copyright © 2012-2017 U Grok It, Inc. connect@UGrokIt.com U Grok It and the U Grok It logo are registered trademarks of U Grok It, Inc. All other trademarks and copyrights are the property of their respective owners |
