public final enum

AppIdentitySwitchReason

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.microsoft.intune.mam.client.app.AppIdentitySwitchReason

Class Overview

Value passed to an activity's onMAMIdentitySwitchRequired callback to provide information on why the identity switch is occurring.

Summary

Enum Values
AppIdentitySwitchReason  CREATE  The switch is occurring because of an activity creation. 
AppIdentitySwitchReason  NEW_INTENT  The switch is occurring because a new intent is being assigned to an activity. 
AppIdentitySwitchReason  RESUME_CANCELLED  The switch is occurring because a resume was cancelled. 
Public Methods
static AppIdentitySwitchReason fromCode(int code)
Get the value that corresponds to the integral code, or null.
int getCode()
Get the encoded version of the enum.
static AppIdentitySwitchReason valueOf(String name)
final static AppIdentitySwitchReason[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final AppIdentitySwitchReason CREATE

The switch is occurring because of an activity creation.

public static final AppIdentitySwitchReason NEW_INTENT

The switch is occurring because a new intent is being assigned to an activity.

public static final AppIdentitySwitchReason RESUME_CANCELLED

The switch is occurring because a resume was cancelled.

Public Methods

public static AppIdentitySwitchReason fromCode (int code)

Get the value that corresponds to the integral code, or null.

Parameters
code Encoded value.
Returns
  • Appropriate value or null.

public int getCode ()

Get the encoded version of the enum.

Returns
  • Integral form of the enum.

public static AppIdentitySwitchReason valueOf (String name)

public static final AppIdentitySwitchReason[] values ()