Braze iOS SDK
Documentation for the Braze iOS SDK
 All Classes Functions Properties
Instance Methods | Class Methods | Properties | List of all members
ABKUIUtils Class Reference

Instance Methods

(UIWindowScene *activeWindowScene) - API_AVAILABLE
 

Class Methods

(NSBundle *) + bundle:channel:
 
(NSString *) + getLocalizedString:inAppboyBundle:table:
 
(BOOL) + objectIsValidAndNotEmpty:
 
(Class) + getModalFeedViewControllerClass
 
(BOOL) + isNotchedPhone
 
(UIImage *) + getImageWithName:type:inAppboyBundle:
 
(UIInterfaceOrientation) + getInterfaceOrientation
 
(CGSize) + getStatusBarSize
 
(UIColor *) + dynamicColorForLightColor:darkColor:
 
(BOOL) + string:isEqualToString:
 
(BOOL) + responderChainOf:hasKindOfClass:
 
(BOOL) + responderChainOf:hasClassPrefixedWith:
 
(UIFont *) + preferredFontForTextStyle:weight:
 

Properties

UIWindow * activeApplicationWindow
 
UIViewController * activeApplicationViewController
 
BOOL applicationStatusBarHidden
 
UIStatusBarStyle applicationStatusBarStyle
 

Method Documentation

- (UIWindowScene* activeWindowScene) API_AVAILABLE (ios(13.0)) 

The currently active UIWindowScene.

+ (NSBundle *) bundle: (Class)  bundleClass
channel: (ABKChannel)  channel 

Given a class and a channel, this method searches across multiple locations and returns the appropriate bundle.

Parameters
bundleClassThe class associated with the bundle.
channelThe channel associated with the bundle.
Returns
The bundle if available, nil otherwise.
+ (UIFont *) preferredFontForTextStyle: (UIFontTextStyle)  textStyle
weight: (UIFontWeight)  weight 

Creates an instance of the font associated with the text style and scaled appropriately for the user's selected content size category.

Warning
On iOS 10 / tvOS 10 and below, this method does not apply the text style to the resulting font. The font size is chosen according to https://apple.co/3snncd9 (Large / Default).
Parameters
textStyleThe text style to use
weightThe weight of the font
Returns
The font corresponding to the text style with weight applied to it.
+ (BOOL) responderChainOf: (UIResponder *)  responder
hasClassPrefixedWith: (NSString *)  prefix 

Verifies that one of the responders in the responder chain is prefixed by prefix.

Parameters
responderThe start of the UIResponder chain.
prefixThe prefix looked for in the responder chain.
Returns
YES if a class prefixed by prefix is found in the responder chain, NO otherwise.
+ (BOOL) responderChainOf: (UIResponder *)  responder
hasKindOfClass: (Class)  aClass 

Verifies that one of the responders in the responder chain is kind of class aClass.

Parameters
responderThe start of the UIResponder chain.
aClassThe UIResponder subclass looked for in the responder chain.
Returns
YES if aClass is found in the responder chain, NO otherwise.

Property Documentation

- (UIViewController*) activeApplicationViewController
readnonatomicassign

The currently active application UIViewController.

- (UIWindow*) activeApplicationWindow
readnonatomicassign

The currently active application UIWindow.

- (BOOL) applicationStatusBarHidden
readatomicassign

The current application status bar hidden state.

- (UIStatusBarStyle) applicationStatusBarStyle
readatomicassign

The current application status bar style.