SFSDKWindowContainer Class Reference

Inherits from NSObject
Declared in SFSDKWindowContainer.h

  window

Underlying Window that is wrapped by this container

@property (nonatomic, strong) UIWindow *window

Declared In

SFSDKWindowContainer.h

  windowType

@property (nonatomic, assign) SFSDKWindowType windowType

Declared In

SFSDKWindowContainer.h

  windowName

SFSDKWindowType windowName

@property (nonatomic, copy, readonly) NSString *windowName

Declared In

SFSDKWindowContainer.h

  windowLevel

@property (nonatomic) UIWindowLevel windowLevel

  viewController

UIViewController viewController

@property (nonatomic, strong) UIViewController *viewController

Declared In

SFSDKWindowContainer.h

  windowDelegate

@property (nonatomic, weak) id<SFSDKWindowContainerDelegate> _Nullable windowDelegate

Declared In

SFSDKWindowContainer.h

– initWithWindow:name:

Create an instance of a Window

- (instancetype)initWithWindow:(UIWindow *)window name:(NSString *)windowName

Parameters

window

An instance of UIWindow

windowName

key for the UIWindow

Return Value

SFSDKWindowComtainer

Declared In

SFSDKWindowContainer.h

– initWithName:

Create an instance of a Window

- (instancetype)initWithName:(NSString *)windowName

Parameters

windowName

key for the UIWindow

Return Value

SFSDKWindowComtainer

Declared In

SFSDKWindowContainer.h

– isEnabled

Returns true if window alpha is set to 1.0

- (BOOL)isEnabled

Declared In

SFSDKWindowContainer.h

– presentWindow

Make window visible, set alpha to 1.0

- (void)presentWindow

Declared In

SFSDKWindowContainer.h

– presentWindowAnimated:withCompletion:

Make window visible, set alpha to 1.0 invoke completion block

- (void)presentWindowAnimated:(BOOL)animated withCompletion:(void ( ^ _Nullable ) ( void ))completion

Declared In

SFSDKWindowContainer.h

– dismissWindowAnimated:withCompletion:

Make window visible

- (void)dismissWindowAnimated:(BOOL)animated withCompletion:(void ( ^ _Nullable ) ( void ))completion

Declared In

SFSDKWindowContainer.h

– dismissWindow

Make window invisible

- (void)dismissWindow

Declared In

SFSDKWindowContainer.h

– isMainWindow

Convenience API returns true if the SFSDKWindowType is main

- (BOOL)isMainWindow

Return Value

YES if this is the main Window

Declared In

SFSDKWindowContainer.h

– isAuthWindow

Convenience API returns true if the SFSDKWindowType is auth

- (BOOL)isAuthWindow

Return Value

YES if this is the auth Window

Declared In

SFSDKWindowContainer.h

– isSnapshotWindow

Convenience API returns true if the SFSDKWindowType is snapshot

- (BOOL)isSnapshotWindow

Return Value

YES if this is the snapshot Window

Declared In

SFSDKWindowContainer.h

– isScreenLockWindow

Convenience API returns true if the SFSDKWindowType is screen lock

- (BOOL)isScreenLockWindow

Return Value

YES if this is the screen lock Window

Declared In

SFSDKWindowContainer.h

– topViewController

Tries to return top view controller of this window

- (UIViewController *)topViewController

Declared In

SFSDKWindowContainer.h

+ topViewControllerWithRootViewController:

Tries to return top view controller given a rootViewcontroller

+ (UIViewController *)topViewControllerWithRootViewController:(UIViewController *)viewController

Declared In

SFSDKWindowContainer.h