Interface HookedActivity
-
- All Implemented Interfaces:
-
com.microsoft.intune.mam.client.app.HookedContextWrapper,com.microsoft.intune.mam.client.app.MAMActivityBlockingListener,com.microsoft.intune.mam.client.app.MAMActivityIdentityRequirementListener,com.microsoft.intune.mam.client.app.MAMActivityIdentitySwitchListener
public interface HookedActivity implements HookedContextWrapper, MAMActivityBlockingListener, MAMActivityIdentityRequirementListener, MAMActivityIdentitySwitchListener
Allow access to an Activity's super class implementation.
-
-
Method Summary
Modifier and Type Method Description abstract voidonMAMCreate(@Nullable() Bundle savedInstanceState)MAM version of onCreate. abstract voidonMAMStart()MAM version of onStart. abstract voidonMAMResume()MAM version of onResume. abstract voidonMAMPause()MAM version of onPause. abstract voidonMAMStop()MAM version of onStop. abstract voidonMAMDestroy()MAM version of onDestroy. abstract voidonMAMPostCreate(@Nullable() Bundle savedInstanceState)MAM version of onPostCreate. abstract voidonMAMPostResume()MAM version of onPostResume. abstract voidonMAMNewIntent(Intent intent)MAM version of onNewIntent. abstract voidonMAMActivityResult(int requestCode, int resultCode, Intent data)MAM version of onActivityResult. abstract voidonMAMSaveInstanceState(@NonNull() Bundle outState)MAM version of onSaveInstanceState. abstract voidonMAMUserLeaveHint()MAM version of onUserLeaveHint. abstract booleanonMAMPictureInPictureRequested()MAM version of onPictureInPictureRequested. abstract voidonMAMRawProvideAssistContent(Object content)MAM version of onProvideAssistContent. abstract booleanonMAMRawSearchRequested(Object event)MAM version of onSearchRequested. abstract booleanonMAMPrepareOptionsMenu(Menu menu)MAM version of onPrepareOptionsMenu. abstract UrionMAMProvideReferrer()MAM version on onProviderReferrer. abstract voidonMAMStateNotSaved()MAM Version of onStateNotSaved. abstract ViewonMAMCreateView(View parent, String name, Context context, AttributeSet attrs)MAM version of onCreateView. voidswitchMAMIdentity(@Nullable() String newIdentity)Set new identity. voidswitchMAMIdentityOID(@Nullable() String newOid)Set new identity. abstract voidswitchMAMIdentity(@Nullable() String newIdentity, @NonNull() EnumSet<IdentitySwitchOption> options)Set new identity. abstract voidswitchMAMIdentityOID(@Nullable() String newOid, @NonNull() EnumSet<IdentitySwitchOption> options)Set new identity. -
Methods inherited from class com.microsoft.intune.mam.client.app.MAMActivityBlockingListener
onMAMCompanyPortalRequired, onMAMCompanyPortalRequired -
Methods inherited from class com.microsoft.intune.mam.client.app.MAMActivityIdentityRequirementListener
onMAMIdentitySwitchRequired, onMAMIdentitySwitchRequired -
Methods inherited from class com.microsoft.intune.mam.client.app.MAMActivityIdentitySwitchListener
onSwitchMAMIdentityComplete -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onMAMCreate
abstract void onMAMCreate(@Nullable() Bundle savedInstanceState)
MAM version of onCreate.
- Parameters:
savedInstanceState- Saved instance state.
-
onMAMStart
abstract void onMAMStart()
MAM version of onStart.
-
onMAMResume
abstract void onMAMResume()
MAM version of onResume.
-
onMAMPause
abstract void onMAMPause()
MAM version of onPause.
-
onMAMStop
abstract void onMAMStop()
MAM version of onStop.
-
onMAMDestroy
abstract void onMAMDestroy()
MAM version of onDestroy.
-
onMAMPostCreate
abstract void onMAMPostCreate(@Nullable() Bundle savedInstanceState)
MAM version of onPostCreate.
- Parameters:
savedInstanceState- Saved instance state.
-
onMAMPostResume
abstract void onMAMPostResume()
MAM version of onPostResume.
-
onMAMNewIntent
abstract void onMAMNewIntent(Intent intent)
MAM version of onNewIntent.
- Parameters:
intent- intent to process
-
onMAMActivityResult
abstract void onMAMActivityResult(int requestCode, int resultCode, Intent data)
MAM version of onActivityResult.
- Parameters:
requestCode- Request code.resultCode- Result code.data- Intent data.
-
onMAMSaveInstanceState
abstract void onMAMSaveInstanceState(@NonNull() Bundle outState)
MAM version of onSaveInstanceState.
- Parameters:
outState- Out state.
-
onMAMUserLeaveHint
abstract void onMAMUserLeaveHint()
MAM version of onUserLeaveHint.
-
onMAMPictureInPictureRequested
@RequiresApi(api = Build.VERSION_CODES.R) abstract boolean onMAMPictureInPictureRequested()
MAM version of onPictureInPictureRequested.
- Returns:
true if the activity received this callback regardless of if it acts on it or not. If false, the framework will assume the app hasn't been updated to leverage this callback and will in turn send a legacy callback of onUserLeaveHint() for the app to enter picture-in-picture mode.
-
onMAMRawProvideAssistContent
@RequiresApi(value = Build.VERSION_CODES.M) abstract void onMAMRawProvideAssistContent(Object content)
MAM version of onProvideAssistContent.
- Parameters:
content- AssistContent.
-
onMAMRawSearchRequested
@RequiresApi(value = Build.VERSION_CODES.M) abstract boolean onMAMRawSearchRequested(Object event)
MAM version of onSearchRequested.
- Parameters:
event- SearchEvent.- Returns:
false if activity blocks the search.
-
onMAMPrepareOptionsMenu
abstract boolean onMAMPrepareOptionsMenu(Menu menu)
MAM version of onPrepareOptionsMenu.
- Parameters:
menu- menu- Returns:
true to display the menu
-
onMAMProvideReferrer
@RequiresApi(value = Build.VERSION_CODES.M) abstract Uri onMAMProvideReferrer()
MAM version on onProviderReferrer.
- Returns:
URI representing referrer.
-
onMAMStateNotSaved
@RequiresApi(value = Build.VERSION_CODES.M) abstract void onMAMStateNotSaved()
MAM Version of onStateNotSaved.
-
onMAMCreateView
abstract View onMAMCreateView(View parent, String name, Context context, AttributeSet attrs)
MAM version of onCreateView. See Android documentation for more info.
- Parameters:
parent- parentname- namecontext- contextattrs- attrs- Returns:
view
-
switchMAMIdentity
@Deprecated() void switchMAMIdentity(@Nullable() String newIdentity)
Set new identity.
- Parameters:
newIdentity- New identity
-
switchMAMIdentityOID
void switchMAMIdentityOID(@Nullable() String newOid)
Set new identity.
- Parameters:
newOid- AAD OID of the new identity.
-
switchMAMIdentity
@Deprecated() abstract void switchMAMIdentity(@Nullable() String newIdentity, @NonNull() EnumSet<IdentitySwitchOption> options)
Set new identity.
- Parameters:
newIdentity- New identityoptions- Identity switch options.
-
switchMAMIdentityOID
abstract void switchMAMIdentityOID(@Nullable() String newOid, @NonNull() EnumSet<IdentitySwitchOption> options)
Set new identity.
- Parameters:
newOid- AAD OID of the new identity.options- Identity switch options.
-
-
-
-