A Log In/Log Out button that maintains login state and logs in/out for the app.
This control requires the app ID and client token to be specified in the AndroidManifest.xml.
Mở rộng: | LoginButton |
Gói: | widget |
DeviceLoginButton(Context, AttributeSet, int)
Create the LoginButton by inflating from XML
public DeviceLoginButton(Context context, AttributeSet attrs, int defStyle)
Thông số | Mô tả |
---|---|
context | |
attrs | |
defStyle |
DeviceLoginButton(Context, AttributeSet)
Create the LoginButton by inflating from XML
public DeviceLoginButton(Context context, AttributeSet attrs)
Thông số | Mô tả |
---|---|
context | |
attrs |
DeviceLoginButton(Context)
Create the LoginButton by inflating from XML and applying a style.
public DeviceLoginButton(Context context)
Thông số | Mô tả |
---|---|
context |
setDeviceRedirectUri(Uri)
Set uri to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
public void setDeviceRedirectUri(Uri uri)
Thông số | Mô tả |
---|---|
uri | The URI to set. |
getDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
public Uri getDeviceRedirectUri()