public class LoginManager extends Object
Copyright (c) 2011-2014 Bit Stadium GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Modifier and Type | Field and Description |
---|---|
static int |
LOGIN_MODE_ANONYMOUS |
static int |
LOGIN_MODE_EMAIL_ONLY |
static int |
LOGIN_MODE_EMAIL_PASSWORD |
static int |
LOGIN_MODE_VALIDATE |
Constructor and Description |
---|
LoginManager() |
Modifier and Type | Method and Description |
---|---|
static void |
register(android.content.Context context,
String appIdentifier,
String appSecret,
int mode,
Class<?> activity)
Registers new LoginManager.
|
static void |
register(android.content.Context context,
String appIdentifier,
String appSecret,
int mode,
LoginManagerListener listener)
Registers new LoginManager.
|
static void |
register(android.content.Context context,
String appIdentifier,
String appSecret,
String urlString,
int mode,
Class<?> activity)
Registers new LoginManager.
|
static void |
verifyLogin(android.app.Activity context,
android.content.Intent intent)
Checks the authentication status.
|
public static final int LOGIN_MODE_ANONYMOUS
public static final int LOGIN_MODE_EMAIL_ONLY
public static final int LOGIN_MODE_EMAIL_PASSWORD
public static final int LOGIN_MODE_VALIDATE
public static void register(android.content.Context context, String appIdentifier, String appSecret, int mode, LoginManagerListener listener)
context
- the context to use. Usually your Activity object.appIdentifier
- the App ID of your app on HockeyApp.appSecret
- the App Secret of your app on HockeyApp.mode
- the login mode.listener
- instance of LoginListenerpublic static void register(android.content.Context context, String appIdentifier, String appSecret, int mode, Class<?> activity)
context
- The context to use. Usually your Activity object.appIdentifier
- App ID of your app on HockeyApp.appSecret
- The App Secret of your app on HockeyApp.mode
- The Login Mode.activity
- The first activity to be started by your app.public static void register(android.content.Context context, String appIdentifier, String appSecret, String urlString, int mode, Class<?> activity)
context
- The context to use. Usually your Activity object.appIdentifier
- App ID of your app on HockeyApp.appSecret
- The App Secret of your app on HockeyApp.urlString
- The URL of the HockeyApp servicemode
- The Login Mode.activity
- The first activity to be started by your app.public static void verifyLogin(android.app.Activity context, android.content.Intent intent)
context
- The activity from which this method is called.intent
- The intent that the activity has been created with.Copyright © 2015. All Rights Reserved.