AdvancedUIManager
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป

Manager for custom UI fragments.

การนำไปใช้:Parcelable
แพ็คเกจ:ui
วิธีการแบบอินสแตนซ์
getActionBarFragment(LoginFlowState)

Returns a custom fragment for the action bar above the scrollable content.

This method will be called when the UI state is updating, after stateDidUpdate.

public Fragment getActionBarFragment(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A Fragment or null for the default fragment
getBodyFragment(LoginFlowState)

Returns a custom fragment for the body in the middle of the scrollable container.

This method will be called when the UI state is updating, after stateDidUpdate.

public Fragment getBodyFragment(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A Fragment or null for the default fragment
getButtonType(LoginFlowState)

Returns the button type for the given login state.

This method is only called for PhoneLogin, EmailLogin, and ConfirmationCode fragments.

public ButtonType getButtonType(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A ButtonType or null for the default button for that flow
getFooterFragment(LoginFlowState)

Returns a custom fragment for the bottom of the content in the scrollable container.

This method will be called when the UI state is updating, after stateDidUpdate.

public Fragment getFooterFragment(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A Fragment or null for the default fragment
getHeaderFragment(LoginFlowState)

Returns a custom fragment for the top of the content in the scrollable container.

This method will be called when the UI state is updating, after stateDidUpdate.

public Fragment getHeaderFragment(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A Fragment or null for the default fragment
getTextPosition(LoginFlowState)

Returns the position of the text relative to the content body fragment.

This method will be called when the UI state is updating, after stateDidUpdate.

public TextPosition getTextPosition(LoginFlowState state)
พารามิเตอร์คำอธิบาย
stateThe current state of the login flow
Returns
A TextPosition or null for the default position
setAdvancedUIManagerListener(AdvancedUIManagerListener)

Sets the listener supplied by Account Kit, which can be used to send messages back to the current state.

public void setAdvancedUIManagerListener(AdvancedUIManagerListener listener)
พารามิเตอร์คำอธิบาย
listenerThe listener object
onError(AccountKitError)

Called when an error is encountered and should be displayed in the UI.

This method will be called before the fragments are retrieved.

public void onError(AccountKitError error)
พารามิเตอร์คำอธิบาย
errorThe error