withStorageFolder

Sets the root path for file transfer in Assist AR.

Return

This Builder object to allow for chaining of calls to setter methods.

To configure the FileProvider, define it in the app's manifest using your app package as the authority:

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="your.app.package.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/fileprovider" />
</provider>

Then, create an XML resource file named fileprovider.xml in the res/xml directory, and define the same folder name as a path:

<?xml version="1.0" encoding="utf-8"?>
<paths>
<!-- External storage path -->
<external-files-path
name="shared_files"
path="storageFolder" />
</paths>

Parameters

storageFolder

The name of the folder where delivered files will be stored. This folder must also be referenced in the app's FileProvider.