public class OAuthWebView extends WebView implements IAuthFlowUI
Constructor and Description |
---|
OAuthWebView(Context context,
AttributeSet attrs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowShowRedirectPage() |
void |
authenticate(IAuthFlowListener listener)
Authenticate.
|
void |
destroy() |
void |
initializeAuthFlow(java.lang.Object activity,
java.lang.String clientId,
java.lang.String clientSecret)
Initialize the UI for OAuth flow.
|
void |
setAllowShowingRedirectPage(boolean allowShowingRedirectPage) |
void |
setOptionalState(java.lang.String optionalState)
Set the state, this is optional.
|
public OAuthWebView(Context context, AttributeSet attrs)
context
- contextattrs
- attrspublic void setOptionalState(java.lang.String optionalState)
optionalState
- statepublic void initializeAuthFlow(java.lang.Object activity, java.lang.String clientId, java.lang.String clientSecret)
IAuthFlowUI
initializeAuthFlow
in interface IAuthFlowUI
public void authenticate(IAuthFlowListener listener)
IAuthFlowUI
authenticate
in interface IAuthFlowUI
listener
- listener listening to events/messages fired during authentication process.public void destroy()
public boolean allowShowRedirectPage()
public void setAllowShowingRedirectPage(boolean allowShowingRedirectPage)
allowShowingRedirectPage
- the allowShowingRedirectPage to set