mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-08-31 10:56:21 +00:00
24 lines
530 B
Haxe
24 lines
530 B
Haxe
package funkin.external.android;
|
|
|
|
#if android
|
|
/**
|
|
* A Utility class to manage the Application's Data folder on Android.
|
|
*/
|
|
@:unreflective
|
|
class DataFolderUtil
|
|
{
|
|
/**
|
|
* Opens the data folder on an Android device using JNI.
|
|
*/
|
|
public static function openDataFolder():Void
|
|
{
|
|
final openDataFolderJNI:Null<Dynamic> = JNIUtil.createStaticMethod('funkin/util/DataFolderUtil', 'openDataFolder', '(I)V');
|
|
|
|
if (openDataFolderJNI != null)
|
|
{
|
|
openDataFolderJNI(CallbackUtil.DATA_FOLDER_CLOSED);
|
|
}
|
|
}
|
|
}
|
|
#end
|