public final enum

SaveLocation

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

Class Overview

Known cloud storage locations that can be restricted in MAM apps. For use with getIsSaveToLocationAllowed(SaveLocation, String)

Summary

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

Enum Values

public static final SaveLocation 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 SaveLocation BOX

Box.

public static final SaveLocation DROPBOX

Dropbox.

public static final SaveLocation GOOGLE_DRIVE

Google Drive.

public static final SaveLocation LOCAL

Local device storage for use with 1. Files saved outside of private app storage. 2. Files downloaded to private app storage that are not necessary for app operation (e.g. user deliberately choosing to download to the device). Files necessary for app operation or downloaded temporarily for display are always allowed and should not check policy for permission.

public static final SaveLocation ONEDRIVE_FOR_BUSINESS

OneDrive for Business. For OneDrive for Personal, use OTHER

public static final SaveLocation OTHER

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

public static final SaveLocation PHOTO_LIBRARY

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

public static final SaveLocation SHAREPOINT

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

Public Methods

public static SaveLocation fromCode (int code)

Get the appropriate SaveLocation given an encoded value.

Parameters
code Encoded value.
Returns
  • Appropriate SaveLocation.

public int getCode ()

Get the encoded version of the enum.

Returns
  • Integral form of the enum.

public static SaveLocation valueOf (String name)

public static final SaveLocation[] values ()