public class OAuthActivity
extends Activity
Activity#RESULT_CANCELED
together will a error message in
intent extra.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOX_CLIENT_OAUTH |
static java.lang.String |
ERROR_MESSAGE |
Constructor and Description |
---|
OAuthActivity() |
Modifier and Type | Method and Description |
---|---|
static Intent |
createOAuthActivityIntent(Context context,
java.lang.String clientId,
java.lang.String clientSecret)
Create intent to launch OAuthActivity
|
static Intent |
createOAuthActivityIntent(Context context,
java.lang.String clientId,
java.lang.String clientSecret,
boolean allowShowRedirectPage)
Create intent to launch OAuthActivity
|
void |
onCreate(Bundle savedInstanceState) |
public static final java.lang.String ERROR_MESSAGE
public static final java.lang.String BOX_CLIENT_OAUTH
public void onCreate(Bundle savedInstanceState)
public static Intent createOAuthActivityIntent(Context context, java.lang.String clientId, java.lang.String clientSecret)
context
- contextclientId
- your box client idclientSecret
- your box client secretpublic static Intent createOAuthActivityIntent(Context context, java.lang.String clientId, java.lang.String clientSecret, boolean allowShowRedirectPage)
context
- contextclientId
- your box client idclientSecret
- your box client secretallowShowRedirectPage
- Whether you want to load/show redirected page after OAuth flow is done.