SFSDKLoginHostDelegate Protocol Reference

Conforms to NSObject
Declared in SFSDKLoginHostDelegate.h

Overview

Use the SFSDKLoginHostDelegate to be notified of the actions taken by the user on the login host list view controller.

– hostListViewController:willPresentLoginHostViewController:

Notifies the delegate that a new login host viewcontroller will be presented.

- (void)hostListViewController:(SFSDKLoginHostListViewController *)hostListViewController willPresentLoginHostViewController:(UIViewController *)loginHostViewController

Parameters

hostListViewController

The instance sending this message.

loginHostViewController

The view controller that will be presented.

Declared In

SFSDKLoginHostDelegate.h

– hostListViewControllerDidSelectLoginHost:

Notifies the delegate that a login host has been selected by the user. This will be a good time to dismiss the host list view controller.

- (void)hostListViewControllerDidSelectLoginHost:(SFSDKLoginHostListViewController *)hostListViewController

Parameters

hostListViewController

The instance sending this message.

Declared In

SFSDKLoginHostDelegate.h

– hostListViewControllerDidAddLoginHost:

Notifies the delegate that a login host has been added to the list of hosts.

- (void)hostListViewControllerDidAddLoginHost:(SFSDKLoginHostListViewController *)hostListViewController

Parameters

hostListViewController

The instance sending this message.

Declared In

SFSDKLoginHostDelegate.h

– hostListViewControllerDidCancelLoginHost:

Notifies the delegate that user cancels out from the login host picking flow

- (void)hostListViewControllerDidCancelLoginHost:(SFSDKLoginHostListViewController *)hostListViewController

Parameters

hostListViewController

The instance sending this message.

Declared In

SFSDKLoginHostDelegate.h

– hostListViewController:didChangeLoginHost:

Notifies the delegate that the login host has been changed in some capacity (user-selected, host entry edited, custom login host added, previous current login host deleted, etc.).

- (void)hostListViewController:(SFSDKLoginHostListViewController *)hostListViewController didChangeLoginHost:(SFSDKLoginHost *)newLoginHost

Parameters

hostListViewController

The instance sending this message.

newLoginHost

The updated login host.

Declared In

SFSDKLoginHostDelegate.h