AccountKitActivity
最新版本的 SDK 已不再提供此課程。
延伸:AppCompatActivity
套件:ui
建構函式
AccountKitActivity()
public AccountKitActivity()
執行個體方法
onBackPressed()
public void onBackPressed()
onBackPressed(View)
public void onBackPressed(View view)
參數說明
view
onCancelPressed(View)
public void onCancelPressed(View view)
參數說明
view
onCreate(Bundle)
public void onCreate(Bundle savedInstanceState)
參數說明
savedInstanceState
onPause()
public void onPause()
onSaveInstanceState(Bundle)
public void onSaveInstanceState(Bundle outState)
參數說明
outState
onViewReadyWithState(Bundle, boolean)
protected void onViewReadyWithState(Bundle viewState, boolean restored)
參數說明
viewState
restored
onResume()
protected void onResume()
onDestroy()
protected void onDestroy()
onOptionsItemSelected(MenuItem)
public boolean onOptionsItemSelected(MenuItem item)
參數說明
item
onKeyDown(int, KeyEvent)
public boolean onKeyDown(int keyCode, KeyEvent event)
參數說明
keyCode
event
sendResult()
public void sendResult()
setAuthorizationCode(String)
protected void setAuthorizationCode(String authorizationCode)
參數說明
authorizationCode
setFinalAuthState(String)
protected void setFinalAuthState(String finalAuthState)
參數說明
finalAuthState
setAccessToken(AccessToken)
protected void setAccessToken(AccessToken accessToken)
參數說明
accessToken
setTokenRefreshIntervalInSeconds(long)
protected void setTokenRefreshIntervalInSeconds(long tokenRefreshIntervalInSeconds)
參數說明
tokenRefreshIntervalInSeconds
setLoginResult(LoginResult)
protected void setLoginResult(LoginResult result)
參數說明
result
pushError(AccountKitError)
public void pushError(AccountKitError error)
參數說明
error
pushError(AccountKitException)
public void pushError(AccountKitException exception)
參數說明
exception
常數
ACCOUNT_KIT_ACTIVITY_CONFIGURATION
public static final String ACCOUNT_KIT_ACTIVITY_CONFIGURATION