getFileFromApplicationUriAsync static method

Future<StorageFile?> getFileFromApplicationUriAsync(
  1. Uri uri
)

Implementation

static Future<StorageFile?> getFileFromApplicationUriAsync(Uri uri) {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IStorageFileStatics);
  final object = IStorageFileStatics.fromRawPointer(activationFactoryPtr);

  try {
    return object.getFileFromApplicationUriAsync(uri);
  } finally {
    object.release();
  }
}