public interface AdvancedUIManager
extends android.os.Parcelable
Modifier and Type | Interface and Description |
---|---|
static interface |
AdvancedUIManager.AdvancedUIManagerListener
Listener that is supplied by Account Kit to allow messages to be sent to the current state.
|
Modifier and Type | Method and Description |
---|---|
android.app.Fragment |
getActionBarFragment(LoginFlowState state)
Returns a custom fragment for the action bar above the scrollable content.
|
android.app.Fragment |
getBodyFragment(LoginFlowState state)
Returns a custom fragment for the body in the middle of the scrollable container.
|
ButtonType |
getButtonType(LoginFlowState state)
Returns the button type for the given login state.
|
android.app.Fragment |
getFooterFragment(LoginFlowState state)
Returns a custom fragment for the bottom of the content in the scrollable container.
|
android.app.Fragment |
getHeaderFragment(LoginFlowState state)
Returns a custom fragment for the top of the content in the scrollable container.
|
TextPosition |
getTextPosition(LoginFlowState state)
Returns the position of the text relative to the content body fragment.
|
void |
onError(AccountKitError error)
Called when an error is encountered and should be displayed in the UI.
|
void |
setAdvancedUIManagerListener(AdvancedUIManager.AdvancedUIManagerListener listener)
Sets the listener supplied by Account Kit, which can be used to send messages back to the
current state.
|
@Nullable android.app.Fragment getActionBarFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable android.app.Fragment getBodyFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable ButtonType getButtonType(LoginFlowState state)
state
- the current state of the login flow@Nullable android.app.Fragment getFooterFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable android.app.Fragment getHeaderFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable TextPosition getTextPosition(LoginFlowState state)
state
- the current state of the login flowvoid setAdvancedUIManagerListener(AdvancedUIManager.AdvancedUIManagerListener listener)
listener
- the listener objectvoid onError(AccountKitError error)
error
- the error