java.lang.Object | ||||||
↳ | android.content.Context | |||||
↳ | android.content.ContextWrapper | |||||
↳ | android.view.ContextThemeWrapper | |||||
↳ | android.app.Activity | |||||
↳ | android.app.ActivityGroup | |||||
↳ | com.microsoft.intune.mam.client.app.MAMActivityGroup |
Managed version of android.app.ActivityGroup.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Activity
| |||||||||||
From class
android.content.Context
| |||||||||||
From interface
android.content.ComponentCallbacks2
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Activity
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MAMActivityGroup() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
defaultOnMAMIdentitySwitchRequired(Activity activity, String identity, AppIdentitySwitchReason reason, AppIdentitySwitchResultCallback callback)
This method is deprecated.
Use
defaultOnMAMIdentitySwitchRequired(Activity, String, String, AppIdentitySwitchReason, AppIdentitySwitchResultCallback) .
| ||||||||||
static void |
defaultOnMAMIdentitySwitchRequired(Activity activity, String upn, String oid, AppIdentitySwitchReason reason, AppIdentitySwitchResultCallback callback)
Expose default behavior for notifying the app that an incoming intent requires an identity switch for this Activity.
| ||||||||||
boolean | onCreateThumbnail(Bitmap outBitmap, Canvas canvas) | ||||||||||
View | onCreateView(View parent, String name, Context context, AttributeSet attrs) | ||||||||||
void |
onMAMActivityResult(int requestCode, int resultCode, Intent data)
MAM version of onActivityResult.
| ||||||||||
void |
onMAMCreate(Bundle savedInstanceState)
MAM version of onCreate.
| ||||||||||
View |
onMAMCreateView(View parent, String name, Context context, AttributeSet attrs)
MAM version of onCreateView.
| ||||||||||
void |
onMAMDestroy()
MAM version of onDestroy.
| ||||||||||
void |
onMAMIdentitySwitchRequired(String upn, String oid, AppIdentitySwitchReason reason, AppIdentitySwitchResultCallback callback)
Called by MAM to notify the app that an incoming intent requires an identity switch for this Activity.
| ||||||||||
void |
onMAMIdentitySwitchRequired(String identity, AppIdentitySwitchReason reason, AppIdentitySwitchResultCallback callback)
Called by MAM to notify the app that an incoming intent requires an identity switch for this Activity.
| ||||||||||
void |
onMAMNewIntent(Intent intent)
MAM version of onNewIntent.
| ||||||||||
void |
onMAMPause()
MAM version of onPause.
| ||||||||||
boolean |
onMAMPictureInPictureRequested()
MAM version of onPictureInPictureRequested.
| ||||||||||
void |
onMAMPostCreate(Bundle savedInstanceState)
MAM version of onPostCreate.
| ||||||||||
void |
onMAMPostResume()
MAM version of onPostResume.
| ||||||||||
boolean |
onMAMPrepareOptionsMenu(Menu menu)
MAM version of onPrepareOptionsMenu.
| ||||||||||
void |
onMAMProvideAssistContent(AssistContent content)
MAM version of onProvideAssistContent.
| ||||||||||
Uri |
onMAMProvideReferrer()
MAM version on onProviderReferrer.
| ||||||||||
final void |
onMAMRawProvideAssistContent(Object content)
MAM version of onProvideAssistContent.
| ||||||||||
final boolean |
onMAMRawSearchRequested(Object event)
MAM version of onSearchRequested.
| ||||||||||
void |
onMAMResume()
MAM version of onResume.
| ||||||||||
void |
onMAMSaveInstanceState(Bundle outState)
MAM version of onSaveInstanceState.
| ||||||||||
boolean |
onMAMSearchRequested(SearchEvent event)
MAM version of onSearchRequested.
| ||||||||||
void |
onMAMStateNotSaved()
MAM Version of onStateNotSaved.
| ||||||||||
void |
onMAMUserLeaveHint()
MAM version of onUserLeaveHint.
| ||||||||||
boolean | onPictureInPictureRequested() | ||||||||||
boolean | onPictureInPictureRequestedReal() | ||||||||||
final boolean | onPrepareOptionsMenu(Menu menu) | ||||||||||
final void | onProvideAssistContent(AssistContent content) | ||||||||||
Uri | onProvideReferrer() | ||||||||||
final void | onSaveInstanceState(Bundle outState) | ||||||||||
final boolean | onSearchRequested(SearchEvent event) | ||||||||||
void | onStateNotSaved() | ||||||||||
void |
onSwitchMAMIdentityComplete(MAMIdentitySwitchResult result)
Called by MAM to notify the app that the identity switch for this Activity has completed.
| ||||||||||
void | registerActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callback) | ||||||||||
void | startActivities(Intent[] intents, Bundle options) | ||||||||||
void | startActivityForResult(Intent intent, int requestCode) | ||||||||||
void | startActivityForResult(Intent intent, int requestCode, Bundle options) | ||||||||||
void | startActivityFromFragment(Fragment fragment, Intent intent, int requestCode) | ||||||||||
void | startActivityFromFragment(Fragment fragment, Intent intent, int requestCode, Bundle options) | ||||||||||
boolean | startActivityIfNeeded(Intent intent, int requestCode) | ||||||||||
boolean | startActivityIfNeeded(Intent intent, int requestCode, Bundle options) | ||||||||||
final void |
switchMAMIdentity(String newIdentity, EnumSet<IdentitySwitchOption> options)
Set new identity.
| ||||||||||
final void |
switchMAMIdentityOID(String newOid, EnumSet<IdentitySwitchOption> options)
Set new identity.
| ||||||||||
void | unregisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callback) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | attachBaseContext(Context context) | ||||||||||
final void | onActivityResult(int requestCode, int resultCode, Intent data) | ||||||||||
final void | onCreate(Bundle savedInstanceState) | ||||||||||
final void | onDestroy() | ||||||||||
final void | onNewIntent(Intent intent) | ||||||||||
final void | onPause() | ||||||||||
final void | onPostCreate(Bundle savedInstanceState) | ||||||||||
final void | onPostResume() | ||||||||||
final void | onResume() | ||||||||||
void | onUserLeaveHint() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.ActivityGroup
| |||||||||||
From class
android.app.Activity
| |||||||||||
From class
android.view.ContextThemeWrapper
| |||||||||||
From class
android.content.ContextWrapper
| |||||||||||
From class
android.content.Context
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.content.ComponentCallbacks2
| |||||||||||
From interface
android.view.KeyEvent.Callback
| |||||||||||
From interface
android.view.LayoutInflater.Factory
| |||||||||||
From interface
android.view.LayoutInflater.Factory2
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
| |||||||||||
From interface
android.view.Window.Callback
| |||||||||||
From interface
com.microsoft.intune.mam.client.app.HookedActivity
| |||||||||||
From interface
com.microsoft.intune.mam.client.app.MAMActivityBlockingListener
| |||||||||||
From interface
com.microsoft.intune.mam.client.app.MAMActivityIdentityRequirementListener
| |||||||||||
From interface
com.microsoft.intune.mam.client.app.MAMActivityIdentitySwitchListener
|
This method is deprecated.
Use defaultOnMAMIdentitySwitchRequired(Activity, String, String, AppIdentitySwitchReason, AppIdentitySwitchResultCallback)
.
Expose default behavior for notifying the app that an incoming intent requires an identity switch for this Activity. The Activity will be checked if it is MAM-integrated and, if so, the default onMAMIdentitySwitchRequired behavior will be called.
activity | The activity to perform an identity switch for. |
---|---|
identity | identity being switched to |
reason | reason identity is being switched. |
callback | must be called to notify MAM whether to allow the switch. |
Expose default behavior for notifying the app that an incoming intent requires an identity switch for this Activity. The Activity will be checked if it is MAM-integrated and, if so, the default onMAMIdentitySwitchRequired behavior will be called.
activity | The activity to perform an identity switch for. |
---|---|
upn | UPN of the identity being switched to. |
oid | AAD OID of the identity being switched to. |
reason | reason identity is being switched. |
callback | must be called to notify MAM whether to allow the switch. |
MAM version of onActivityResult.
requestCode | Request code. |
---|---|
resultCode | Result code. |
data | Intent data. |
MAM version of onCreate.
savedInstanceState | Saved instance state. |
---|
MAM version of onCreateView. See Android documentation for more info.
parent | parent |
---|---|
name | name |
context | context |
attrs | attrs |
MAM version of onDestroy.
Called by MAM to notify the app that an incoming intent requires an identity switch for this Activity. This can occur during
activity creation or when a new intent is sent to an existing activity. The application must call
callback.reportIdentitySwitchResult to tell MAM whether the identity switch is allowed. In general, applications should
allow identity switches. The default implementation allows all identity switches. When using the build plugin,
the default implementation can be accessed by calling MAMctivity.defaultOnMAMIdentitySwitchRequired
.
The most common case for this method to be called is before onMAMCreate. The application is allowed to show UI to confirm
the identity switch, but it must show the UI using a different activity as onMAMCreate will not be called for this activity
until the identity switch is allowed.
Special care must be taken with single-top activities when a new intent can cause an identity switch. If a new intent causes
an identity switch, after the switch is approved by this method, onMAMNewIntent will be called and then recreate() will be
called which is necessary to enforce screenshot restrictions from the new policy. It is strongly recommended that the
implementation of onMAMNewIntent call setIntent, as otherwise the following recreate may cause the original intent rather
than the new intent to be displayed.
upn | UPN of the identity being switched to |
---|---|
oid | AAD OID of the identity being switched to |
reason | reason identity is being switched |
callback | must be called to notify MAM whether to allow the switch. |
Called by MAM to notify the app that an incoming intent requires an identity switch for this Activity. This can occur during
activity creation or when a new intent is sent to an existing activity. The application must call
callback.reportIdentitySwitchResult to tell MAM whether the identity switch is allowed. In general, applications should
allow identity switches. The default implementation allows all identity switches. When using the build plugin,
the default implementation can be accessed by calling MAMctivity.defaultOnMAMIdentitySwitchRequired
.
The most common case for this method to be called is before onMAMCreate. The application is allowed to show UI to confirm
the identity switch, but it must show the UI using a different activity as onMAMCreate will not be called for this activity
until the identity switch is allowed.
Special care must be taken with single-top activities when a new intent can cause an identity switch. If a new intent causes
an identity switch, after the switch is approved by this method, onMAMNewIntent will be called and then recreate() will be
called which is necessary to enforce screenshot restrictions from the new policy. It is strongly recommended that the
implementation of onMAMNewIntent call setIntent, as otherwise the following recreate may cause the original intent rather
than the new intent to be displayed.
identity | identity being switched to |
---|---|
reason | reason identity is being switched |
callback | must be called to notify MAM whether to allow the switch. |
MAM version of onNewIntent.
intent | intent to process |
---|
MAM version of onPause.
MAM version of onPictureInPictureRequested.
MAM version of onPostCreate.
savedInstanceState | Saved instance state. |
---|
MAM version of onPostResume.
MAM version of onPrepareOptionsMenu.
menu | menu |
---|
MAM version of onProvideAssistContent.
content | content |
---|
MAM version on onProviderReferrer.
MAM version of onProvideAssistContent.
content | AssistContent. We use raw object type, otherwise InterProxy will throw class not found errors on downlevel devices. |
---|
MAM version of onSearchRequested.
event | SearchEvent. We use raw object type, otherwise InterProxy will throw class not found errors on downlevel devices. |
---|
MAM version of onResume.
MAM version of onSaveInstanceState.
outState | Out state. |
---|
MAM version of onSearchRequested.
event | event |
---|
MAM Version of onStateNotSaved.
MAM version of onUserLeaveHint.
Called by MAM to notify the app that the identity switch for this Activity has completed.
result | Result of the MAM identity switch. |
---|
Set new identity.
newIdentity | New identity |
---|---|
options | Identity switch options. |
Set new identity.
newOid | AAD OID of the new identity. |
---|---|
options | Identity switch options. |