# LibStorageUtils

public class LibStorageUtils

Created by Android Studio. User: lvhongzhen Date: 2019-12-02 Time: 14:49

## Constructors

LibStorageUtils
Link copied to clipboard
public void LibStorageUtils()

## Properties

AUDIO
Link copied to clipboard
public final static String AUDIO
DB_STORAGE
Link copied to clipboard
public final static String DB_STORAGE
DB_STORAGE_PRIVATE
Link copied to clipboard
public final static String DB_STORAGE_PRIVATE
DIR
Link copied to clipboard
public final static String DIR
FILE
Link copied to clipboard
public final static String FILE
IMAGE
Link copied to clipboard
public final static String IMAGE
MEDIA
Link copied to clipboard
public final static String MEDIA
VIDEO
Link copied to clipboard
public final static String VIDEO

## Functions

getAppName
Link copied to clipboard
public static String getAppName(Context context)
获取应用名称
getFilesDir
Link copied to clipboard
public static String getFilesDir(Context pContext, String dir)
getMediaDownloadDir
Link copied to clipboard
@Deprecated()
public static String getMediaDownloadDir(Context context)
public static String getMediaDownloadDir(Context context, String dir)
获取媒体文件存储路径
isBuildAndTargetForQ
Link copied to clipboard
public static boolean isBuildAndTargetForQ(Context context)
是否 Android SDK 版本号 `>= Build.VERSION_CODES.Q` 且 目标软件开发版本 `>= Build.VERSION_CODES.Q`
isOsAndTargetForR
Link copied to clipboard
public static boolean isOsAndTargetForR(Context context)
isScopedStorageMode
Link copied to clipboard
public static boolean isScopedStorageMode(Context context)
是否处于分区存储模式 在以Android 11 为目标平台的应用上`targetSdkVersion>=30`,必须设置`rc_q_storage_mode_enable` 为 `true`， 否则会导致图片，文件等媒体文件发送失败）