public interface UIManager
Modifier and Type | Interface and Description |
---|---|
static interface |
UIManager.UIManagerListener
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 |
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.
|
int |
getThemeId()
Returns the Resource ID for the Theme to be applied.
|
void |
onError(AccountKitError error)
Called when an error is encountered and should be displayed in the UI.
|
void |
setThemeId(int themeId)
Used to set the Resource ID for the Theme to be applied.
|
void |
setUIManagerListener(UIManager.UIManagerListener listener)
Sets the listener supplied by Account Kit, which can be used to send messages back to the
current state.
|
@StyleRes int getThemeId()
void setThemeId(@StyleRes int themeId)
themeId
- the Resource ID to be used.void setUIManagerListener(UIManager.UIManagerListener listener)
listener
- the listener object@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 onError(AccountKitError error)
error
- the error