Method IsDirectReadSupportedAsync
IsDirectReadSupportedAsync(String)
Checks if the mobile scene package (.mspk) can be read directly without requiring to be unpacked.
Always returns true after deprecation in version 100.7.
Declaration
public static Task<bool> IsDirectReadSupportedAsync(string mobileScenePackageFilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| String | mobileScenePackageFilePath | the path to a mobile scene package file (.mspk) |
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> | A |
Remarks
Prior to ArcGIS Runtime version 100.7, some data formats (such as RasterLayer) could only be accessed if they were unpacked from a mobile scene package file (.mspk). In these situations, this method would return false and you would need to call UnpackAsync(String, String) to unpack the mspk file.
From version 100.7 and onwards this limitation has been removed allowing the data to be read directly
from the mobile scene package. This method always returns a result of true.
Since this method is no longer required it can be removed from calling code including any subsequent use of UnpackAsync(String, String).
Exceptions
| Type | Condition |
|---|---|
| ExpiredException | Package was authored to prevent expired access. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.5 - 100.13 |
| .NET Framework | 100.5 - 100.8 |
| .NET 5 | 100.11 |
| .NET Core 3.1 | 100.7 - 100.8 |
| Xamarin.Android | 100.5 - 100.13 |
| Xamarin.iOS | 100.5 - 100.8 |
| UWP | 100.5 - 100.15 |