SFLoginViewController Class Reference

Inherits from SFSDKViewController : UIViewController
Declared in SFLoginViewController.h

Overview

The Salesforce login screen view.

  delegate

The delegate representing the owner of this object.

@property (nonatomic, weak, nullable) id<SFLoginViewControllerDelegate> delegate

Declared In

SFLoginViewController.h

  oauthView

Outlet to the OAuth web view.

@property (nonatomic, strong, nullable) IBOutlet UIView *oauthView

Declared In

SFLoginViewController.h

  )

Specify the font to use for navigation bar header text.

@property (nonatomic, strong, nullable) UIFont *NS_SWIFT_NAME ( navigationBarFont )

Declared In

SFLoginViewController.h

  config

Specify all display properties in a config. All the above properties are backed by a config object

@property (nonatomic, strong, nonnull) SFSDKLoginViewControllerConfig *config

Declared In

SFLoginViewController.h

  navBar

Get the instance of nav bar. Use this property to get the instance of navBar

@property (nonatomic, strong, readonly, nullable) UINavigationBar *navBar

Declared In

SFLoginViewController.h

  loginHostListViewController

Get the refrence to the SFSDKLoginHostListViewController

@property (nonatomic, strong) SFSDKLoginHostListViewController *loginHostListViewController

Declared In

SFLoginViewController.h

– styleNavigationBar:

Applies the view’s style attributes to the given navigation bar.

- (void)styleNavigationBar:(nullable UINavigationBar *)navigationBar

Parameters

navigationBar

The navigation bar that the style is applied to.

Declared In

SFLoginViewController.h

– showHostListView

Present the Host List View.

- (void)showHostListView

Declared In

SFLoginViewController.h

– hideHostListView:

Hide the Host List View.

- (void)hideHostListView:(BOOL)animated

Parameters

animated

Indicates whether or not the hiding should be animated.

Declared In

SFLoginViewController.h

– createBackButton

Factory Method to create the back button.

- (nonnull UIBarButtonItem *)createBackButton

Declared In

SFLoginViewController.h

– createSettingsButton

Factory Method to create the settings button.

- (nonnull UIBarButtonItem *)createSettingsButton

Declared In

SFLoginViewController.h

– createTitleItem

Factory Method to create the navigation title.

- (nonnull UIView *)createTitleItem

Declared In

SFLoginViewController.h

– createLoginHostListViewController

Factory Method to create the hostListView Controller.

- (nonnull SFSDKLoginHostListViewController *)createLoginHostListViewController

Declared In

SFLoginViewController.h

– shouldShowBackButton

Logic to show back button.

- (BOOL)shouldShowBackButton

Declared In

SFLoginViewController.h

– handleBackButtonAction

Back Button was pressed by user

- (void)handleBackButtonAction

Declared In

SFLoginViewController.h

– handleLoginHostSelectedAction:

User Selected a host from the host list

- (void)handleLoginHostSelectedAction:(nonnull SFSDKLoginHost *)host

Parameters

host

SFSDKLoginHost

Declared In

SFLoginViewController.h