SFDefaultUserManagementViewController Class Reference

Inherits from UINavigationController
Declared in SFDefaultUserManagementViewController.h

Overview

View controller for managing the different users of the app.

Other Methods

– initWithCompletionBlock:

Creates an instance with the given completion block.

- (id)initWithCompletionBlock:(SFUserManagementCompletionBlock)completionBlock

Parameters

completionBlock

The (optional) completion block to execute once action has been taken.

Declared In

SFDefaultUserManagementViewController.h

Extension Methods

  action

The action to take, once the user interface has been cleared by the consumer.

@property (nonatomic, assign) SFUserManagementAction action

Declared In

SFDefaultUserManagementViewController+Internal.h

  actionAccount

The optional account associated with the action to take.

@property (nonatomic, strong) SFUserAccount *actionAccount

Declared In

SFDefaultUserManagementViewController+Internal.h

  completionBlock

Completion block to execute, once a user management action has been selected.

@property (nonatomic, copy) SFUserManagementCompletionBlock completionBlock

Declared In

SFDefaultUserManagementViewController+Internal.h

– actionLogout

Logs out the current user, once the user interface is cleared.

- (void)actionLogout

Declared In

SFDefaultUserManagementViewController+Internal.h

– actionSwitchUser:

Switches to the given user, once the user interface is cleared.

- (void)actionSwitchUser:(SFUserAccount *)user

Parameters

user

The user to switch to.

Declared In

SFDefaultUserManagementViewController+Internal.h

– actionCreateNewUser

Creates a new user and switches to that user, once the user interface is cleared.

- (void)actionCreateNewUser

Declared In

SFDefaultUserManagementViewController+Internal.h

– execCompletionBlock:account:

Executes the completion block.

- (void)execCompletionBlock:(SFUserManagementAction)action account:(SFUserAccount *)actionAccount

Parameters

action

The user management action to pass to the completion block.

actionAccount

The optional account on which the action will be taken.

Declared In

SFDefaultUserManagementViewController+Internal.h