public class BaseUIManager extends java.lang.Object implements UIManager, android.os.Parcelable
UIManager.UIManagerListener
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BaseUIManager> |
CREATOR |
protected UIManager.UIManagerListener |
listener |
static int |
THEME_ID_NOT_SET |
Modifier | Constructor and Description |
---|---|
|
BaseUIManager(int themeId) |
protected |
BaseUIManager(android.os.Parcel source) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
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.
|
protected void |
updateFlowState(LoginFlowState state) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int THEME_ID_NOT_SET
protected UIManager.UIManagerListener listener
public static final android.os.Parcelable.Creator<BaseUIManager> CREATOR
public BaseUIManager(@StyleRes int themeId)
protected BaseUIManager(android.os.Parcel source)
public int getThemeId()
UIManager
getThemeId
in interface UIManager
public void setThemeId(@StyleRes int themeId)
UIManager
setThemeId
in interface UIManager
themeId
- the Resource ID to be used.protected void updateFlowState(LoginFlowState state)
@Nullable public android.app.Fragment getBodyFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable public ButtonType getButtonType(LoginFlowState state)
state
- the current state of the login flow@Nullable public android.app.Fragment getFooterFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable public android.app.Fragment getHeaderFragment(LoginFlowState state)
state
- the current state of the login flow@Nullable public TextPosition getTextPosition(LoginFlowState state)
state
- the current state of the login flowpublic void setUIManagerListener(UIManager.UIManagerListener listener)
UIManager
setUIManagerListener
in interface UIManager
listener
- the listener objectpublic void onError(AccountKitError error)
error
- the errorpublic int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable