LibStorageUtils

public class LibStorageUtils

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

Constructors

Link copied to clipboard
public void LibStorageUtils()

Properties

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

Functions

Link copied to clipboard
public static String getAppName(Context context)
Retrieves the application name
Link copied to clipboard
public static String getFilesDir(Context pContext, String dir)
Link copied to clipboard
@Deprecated()
public static String getMediaDownloadDir(Context context)
Retrieves the storage path for media files.
public static String getMediaDownloadDir(Context context, String dir)
Retrieves the storage path for media files
Link copied to clipboard
public static boolean isBuildAndTargetForQ(Context context)
Indicates whether the Android SDK version is >= Build.VERSION_CODES.Q and the target SDK version is >= Build.VERSION_CODES.Q.
Link copied to clipboard
public static boolean isOsAndTargetForR(Context context)
Link copied to clipboard
public static boolean isScopedStorageMode(Context context)
Indicates whether the app is in partitioned storage mode.