Interface HookedActivity

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onMAMCreate(@Nullable() Bundle savedInstanceState) MAM version of onCreate.
      abstract void onMAMStart() MAM version of onStart.
      abstract void onMAMResume() MAM version of onResume.
      abstract void onMAMPause() MAM version of onPause.
      abstract void onMAMStop() MAM version of onStop.
      abstract void onMAMDestroy() MAM version of onDestroy.
      abstract void onMAMPostCreate(@Nullable() Bundle savedInstanceState) MAM version of onPostCreate.
      abstract void onMAMPostResume() MAM version of onPostResume.
      abstract void onMAMNewIntent(Intent intent) MAM version of onNewIntent.
      abstract void onMAMActivityResult(int requestCode, int resultCode, Intent data) MAM version of onActivityResult.
      abstract void onMAMSaveInstanceState(@NonNull() Bundle outState) MAM version of onSaveInstanceState.
      abstract void onMAMUserLeaveHint() MAM version of onUserLeaveHint.
      abstract boolean onMAMPictureInPictureRequested() MAM version of onPictureInPictureRequested.
      abstract void onMAMRawProvideAssistContent(Object content) MAM version of onProvideAssistContent.
      abstract boolean onMAMRawSearchRequested(Object event) MAM version of onSearchRequested.
      abstract boolean onMAMPrepareOptionsMenu(Menu menu) MAM version of onPrepareOptionsMenu.
      abstract Uri onMAMProvideReferrer() MAM version on onProviderReferrer.
      abstract void onMAMStateNotSaved() MAM Version of onStateNotSaved.
      abstract View onMAMCreateView(View parent, String name, Context context, AttributeSet attrs) MAM version of onCreateView.
      void switchMAMIdentity(@Nullable() String newIdentity) Set new identity.
      void switchMAMIdentityOID(@Nullable() String newOid) Set new identity.
      abstract void switchMAMIdentity(@Nullable() String newIdentity, @NonNull() EnumSet<IdentitySwitchOption> options) Set new identity.
      abstract void switchMAMIdentityOID(@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
    • Constructor Detail

    • 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.
      • 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 - parent
        name - name
        context - context
        attrs - attrs
        Returns:

        view

      • switchMAMIdentityOID

         void switchMAMIdentityOID(@Nullable() String newOid)

        Set new identity.

        Parameters:
        newOid - AAD OID of the new identity.