SFSDKWindowManager Class Reference

Inherits from NSObject
Declared in SFSDKWindowManager.h

Other Methods

  userInterfaceStyle

Sets overrideUserInterfaceStyle on managed windows. Default is UIUserInterfaceStyleUnspecified.

@property (nonatomic, assign) UIUserInterfaceStyle userInterfaceStyle

Declared In

SFSDKWindowManager.h

– screenLockWindow

SDK uses this window to present the screen lock view.

- (nonnull SFSDKWindowContainer *)screenLockWindow

Declared In

SFSDKWindowManager.h

– authWindow:

SDK uses this window to present the login flow for the given scene. Defaults a connected scene if one isn’t provided.

- (nonnull SFSDKWindowContainer *)authWindow:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– snapshotWindow:

SDK uses this window to present the snapshot view for a given scene. Defaults to a connected scene if one isn’t provided.

- (nonnull SFSDKWindowContainer *)snapshotWindow:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– mainWindow:

Returns the SFSDKWindowContainer window representing the mainWindow that has been set for a given scene. Defaults to a connected scene if one isn’t provided.

- (nonnull SFSDKWindowContainer *)mainWindow:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– activeWindow:

Returns the SFSDKWindowContainer window representing the active presented window that has been set for a given scene. Defaults to a connected scene if one isn’t provided.

- (nullable SFSDKWindowContainer *)activeWindow:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– setMainUIWindow:

Used to setup the main application window.

- (void)setMainUIWindow:(UIWindow *_Nonnull)window

Declared In

SFSDKWindowManager.h

– setMainUIWindow:scene:

Used to setup the main window for a given scene. Defaults to a connected scene if one isn’t provided.

- (void)setMainUIWindow:(nonnull UIWindow *)window scene:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– createNewNamedWindow:

Used to create a new Window keyed by a specified name

- (SFSDKWindowContainer *_Nullable)createNewNamedWindow:(NSString *_Nonnull)windowName

Declared In

SFSDKWindowManager.h

– createNewNamedWindow:scene:

Used to create a new window keyed by a specified name for a given scene. Defaults to a connected scene if one isn’t provided.

- (nullable SFSDKWindowContainer *)createNewNamedWindow:(nonnull NSString *)windowName scene:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– removeNamedWindow:

Used to remove a Window by a specified name

- (BOOL)removeNamedWindow:(NSString *_Nonnull)windowName

Declared In

SFSDKWindowManager.h

– removeNamedWindow:scene:

Used to remove a window by a specified name for a given scene. Defaults to a connected scene if one isn’t provided.

- (BOOL)removeNamedWindow:(nonnull NSString *)windowName scene:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– windowWithName:

Used to retrieve a Window by a specified name

- (SFSDKWindowContainer *_Nullable)windowWithName:(NSString *_Nonnull)name

Declared In

SFSDKWindowManager.h

– windowWithName:scene:

Used to retrieve a window by a specified name for a given scene. Defaults to a connected scene if one isn’t provided.

- (nullable SFSDKWindowContainer *)windowWithName:(nonnull NSString *)name scene:(nullable UIScene *)scene

Declared In

SFSDKWindowManager.h

– addDelegate:

Add a Window Manager Delegate

- (void)addDelegate:(id<SFSDKWindowManagerDelegate> _Nonnull)delegate

Declared In

SFSDKWindowManager.h

– removeDelegate:

Remove a Window Manager Delegate

- (void)removeDelegate:(id<SFSDKWindowManagerDelegate> _Nonnull)delegate

Declared In

SFSDKWindowManager.h

+ sharedManager

+ (instancetype _Nonnull)sharedManager

Extension Methods

– defaultScene

- (UIScene *)defaultScene