Impl実装

This commit is contained in:
r-ca 2023-12-16 16:40:25 +09:00
parent 0f8cf3dca0
commit e8aab5e730
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -24,12 +24,22 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath(); return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath();
} }
@Override
public String getExternalStorageDirectoryString() {
return getExternalStorageDirectory().toString();
}
@Override @Override
public Path getExternalStorageDirectory(String type) { public Path getExternalStorageDirectory(String type) {
// TODO-rca: 結果がnullだった場合の処理を追加する // TODO-rca: 結果がnullだった場合の処理を追加する
return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath(); return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath();
} }
@Override
public String getExternalStorageDirectoryString(String type) {
return getExternalStorageDirectory(type).toString();
}
@Override @Override
public boolean hasPermission(String permission) { public boolean hasPermission(String permission) {
return false; return false;