public final enum

MAMIdentitySwitchResult

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

Class Overview

The result of an identity switch.

Summary

Enum Values
MAMIdentitySwitchResult  CANCELLED  The identity change was cancelled by the user. 
MAMIdentitySwitchResult  FAILED  The identity change was not successful for a reason not covered by any other enum variant. 
MAMIdentitySwitchResult  NOT_ALLOWED  Switching identity is not currently allowed by the SDK. 
MAMIdentitySwitchResult  SUCCEEDED  The identity change was successful. 
Public Methods
static MAMIdentitySwitchResult fromCode(int code)
Get the value that corresponds to the integral code, or null.
int getCode()
Get the encoded version of the enum.
static MAMIdentitySwitchResult valueOf(String name)
final static MAMIdentitySwitchResult[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final MAMIdentitySwitchResult CANCELLED

The identity change was cancelled by the user.

public static final MAMIdentitySwitchResult FAILED

The identity change was not successful for a reason not covered by any other enum variant.

public static final MAMIdentitySwitchResult NOT_ALLOWED

Switching identity is not currently allowed by the SDK. This will be returned if a thread identity is set on the main thread that does not match the identity passed into this method. If the thread identity on the main thread is different, it should be cleared before calling this method.

public static final MAMIdentitySwitchResult SUCCEEDED

The identity change was successful.

Public Methods

public static MAMIdentitySwitchResult 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 MAMIdentitySwitchResult valueOf (String name)

public static final MAMIdentitySwitchResult[] values ()