public final enum

OpenLocation

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.microsoft.intune.mam.policy.OpenLocation

Class Overview

Known locations that can be restricted in MAM apps for opening data from.

Summary

Enum Values
OpenLocation  ACCOUNT_DOCUMENT  A location associated with an account within an app. 
OpenLocation  CAMERA  Camera. 
OpenLocation  LOCAL  Local device storage outside of private app storage. 
OpenLocation  ONEDRIVE_FOR_BUSINESS  OneDrive for Business. 
OpenLocation  OTHER  Other. 
OpenLocation  PHOTO_LIBRARY  Photo library. 
OpenLocation  SHAREPOINT  Sharepoint. 
Public Methods
static OpenLocation fromCode(int code)
Get the appropriate OpenLocation given an encoded value.
int getCode()
Get the encoded version of the enum.
static OpenLocation valueOf(String name)
final static OpenLocation[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final OpenLocation ACCOUNT_DOCUMENT

A location associated with an account within an app. Should be used to determine if data can be passed between accounts within a multi-identity app.

public static final OpenLocation CAMERA

Camera.

public static final OpenLocation LOCAL

Local device storage outside of private app storage.

public static final OpenLocation ONEDRIVE_FOR_BUSINESS

OneDrive for Business. For OneDrive for Personal, use OTHER

public static final OpenLocation OTHER

Other. For use with cloud storage providers that we know are not managed like OneDrive Personal.

public static final OpenLocation PHOTO_LIBRARY

Photo library. Images/videos under the domain of the Android MediaStore.

public static final OpenLocation SHAREPOINT

Sharepoint. Includes both Sharepoint Online and Sharepoint on-prem (if accessed with an AAD-based account).

Public Methods

public static OpenLocation fromCode (int code)

Get the appropriate OpenLocation given an encoded value.

Parameters
code Encoded value.
Returns
  • Appropriate OpenLocation.

public int getCode ()

Get the encoded version of the enum.

Returns
  • Integral form of the enum.

public static OpenLocation valueOf (String name)

public static final OpenLocation[] values ()