com.microsoft.aad.adal
Class ApplicationReceiver
java.lang.Object
android.content.BroadcastReceiver
com.microsoft.aad.adal.ApplicationReceiver
public class ApplicationReceiver
- extends android.content.BroadcastReceiver
Receives system broadcast message for application install events. You need to
register this receiver in your manifest for PACKAGE_INSTALL and
PACKAGE_ADDED.
| Nested classes/interfaces inherited from class android.content.BroadcastReceiver |
android.content.BroadcastReceiver.PendingResult |
|
Method Summary |
static void |
clearUserName(android.content.Context ctx)
Clear the username after resuming login. |
static String |
getInstallRequestInthisApp(android.content.Context ctx)
|
static String |
getUserName(android.content.Context ctx)
Get username that started the install flow. |
void |
onReceive(android.content.Context context,
android.content.Intent intent)
This method receives message for any application status based on filters
defined in your manifest. |
static void |
saveRequest(android.content.Context ctx,
com.microsoft.aad.adal.AuthenticationRequest request,
String url)
|
| Methods inherited from class android.content.BroadcastReceiver |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTALL_REQUEST_TRACK_FILE
public static final String INSTALL_REQUEST_TRACK_FILE
- See Also:
- Constant Field Values
INSTALL_REQUEST_KEY
public static final String INSTALL_REQUEST_KEY
- See Also:
- Constant Field Values
INSTALL_URL_KEY
public static final String INSTALL_URL_KEY
- See Also:
- Constant Field Values
ApplicationReceiver
public ApplicationReceiver()
onReceive
public void onReceive(android.content.Context context,
android.content.Intent intent)
- This method receives message for any application status based on filters
defined in your manifest.
- Specified by:
onReceive in class android.content.BroadcastReceiver
saveRequest
public static void saveRequest(android.content.Context ctx,
com.microsoft.aad.adal.AuthenticationRequest request,
String url)
getUserName
public static String getUserName(android.content.Context ctx)
- Get username that started the install flow.
- Parameters:
ctx -
- Returns:
clearUserName
public static void clearUserName(android.content.Context ctx)
- Clear the username after resuming login.
- Parameters:
ctx -
getInstallRequestInthisApp
public static String getInstallRequestInthisApp(android.content.Context ctx)
Copyright © 2003–2015. All rights reserved.