UgiTitleView Class Reference

Overview

Title bar object including the a title and a UgiStatusImageView.

Instance Methods

(void) - setRightButtonImage:withColor:withHighlightedImage:withHighlightedColor:withCompletion:
 
Set the right button image and handler More...
 
(void) - tapped
 
Called when the title view is tapped
 
(void) - longPressed
 
Called when the title view is long pressed
 

Properties

UIColor * themeColorOverride
 Override to color in UgiViewController (default = nil)
 
UIColor * textColorOnThemeColorOverride
 Override to color in UgiViewController (default = nil)
 
UIColor * textColorOnBackgroundOverride
 Override to color in UgiViewController (default = nil)
 
UIImage * backgroundImage
 Background to display in header, should be 160x88 (a 2x image, will be used as 80x44)
 
VoidBlock backButtonCompletion
 Code to execute for Back, or nil for no back button.
 
BOOL useBackgroundBasedOnThemeColor
 YES to use a background.
 
BOOL displayWaveAnimationWhileScanning
 Display wave animation while scanning.
 
BOOL hideBatteryStatusIndicator
 Do not display the battery status indicator.
 
BOOL batteryStatusIndicatorDisplayVersionInfoOnTouch
 show version information alert when battery status indicator is touched
 
UIImage *_Nullable titleImage
 Image to display in header, should be 180x80 (a 2x image, will be used as 90x40)
 
NSString *_Nullable title
 Title. If nil the use the ViewController's title, if nil then use app name.
 
BOOL setUseAppNameAsTitle
 If YES then use the app name if available.
 

Instance Method Documentation

◆ setRightButtonImage:withColor:withHighlightedImage:withHighlightedColor:withCompletion:()

- (void) setRightButtonImage: (UIImage *_Nullable)  image
withColor: (UIColor *_Nullable)  color
withHighlightedImage: (UIImage *_Nullable)  highlightedImage
withHighlightedColor: (UIColor *_Nullable)  highlightedColor
withCompletion: (nullable VoidBlock)  completion 


Set the right button image and handler

Parameters
imageButton image
colorColor for the right button (or nil to not alter the image)
highlightedImageButton image when highlighted
highlightedColorColor for the right button when highlighted (or nil to not alter the image)
completionClick handler