MobileMapPackage.withFileUri constructor
- Uri fileUri
Create a MobileMapPackage with a path.
The path can refer to a file with an .mmpk extension or a directory containing an unpacked mobile map package.
Parameters:
fileUri
— A path to mobile map package.
Implementation
factory MobileMapPackage.withFileUri(
Uri fileUri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreFileUri = _CString(fileUri.toFilePath());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_MobileMapPackage_createWithPath(
coreFileUri.bytes,
errorHandler,
);
});
final MobileMapPackage object = MobileMapPackage._withHandle(handle);
object._fileUri.cache(fileUri);
return object;
}