Manager for advanced UI configuration.
Extends Protocol: | NSObject |
Declared in: | AKFAdvancedUIManager.h |
actionBarViewForState:
Returns a custom view to use above the scrollable content.
Parameter | Description |
---|---|
state | The current state of the login flow |
- (nullable UIView *)
actionBarViewForState:(AKFLoginFlowState)state;
AKFAdvancedUIManager.h
bodyViewForState:
Returns a custom view for the body in the middle of the scrollable container.
Parameter | Description |
---|---|
state | The current state of the login flow |
- (nullable UIView *)
bodyViewForState:(AKFLoginFlowState)state;
AKFAdvancedUIManager.h
buttonTypeForState:
Returns the button type for the given login state.
Parameter | Description |
---|---|
state | The current state of the login flow |
- (AKFButtonType)
buttonTypeForState:(AKFLoginFlowState)state;
This method is only called for PhoneLogin, EmailLogin and ConfirmationCode states.
AKFAdvancedUIManager.h
headerViewForState:
Returns a custom view for the top of the content in the scrollable container.
Parameter | Description |
---|---|
state | The current state of the login flow |
- (nullable UIView *)
headerViewForState:(AKFLoginFlowState)state;
AKFAdvancedUIManager.h
setActionController:
Provides a controller for the receiver that can send messages back to the current controller.
Parameter | Description |
---|---|
actionController | The action controller |
- (void)
setActionController:(nonnull id<AKFAdvancedUIActionController>)actionController;
This method will be called before any views are retrieved.
AKFAdvancedUIManager.h
setError:
Called when an error is encountered and should be displayed in the UI.
Parameter | Description |
---|---|
error | The error |
- (void)
setError:(nonnull NSError *)error;
This method will be called before the views are retrieved.
AKFAdvancedUIManager.h
textPositionForState:
Returns the position of the text relative to the content body view.
Parameter | Description |
---|---|
state | The current state of the login flow |
- (AKFTextPosition)
textPositionForState:(AKFLoginFlowState)state;
AKFAdvancedUIManager.h