PhotoImportManager
PhotoImportManager
PhotoImportManager
PhotoImportManager
Class
Definition
Provides APIs for determining if photo import is supported on the current device, finding sources from which to import photos, and getting references to any pending photo import operations.
public : static class PhotoImportManagerpublic static class PhotoImportManagerPublic Static Class PhotoImportManager// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
FindAllSourcesAsync() FindAllSourcesAsync() FindAllSourcesAsync() FindAllSourcesAsync()
Finds all currently available sources from which photos can be imported.
public : static IAsyncOperation<IVectorView<PhotoImportSource>> FindAllSourcesAsync()public static IAsyncOperation<IReadOnlyList<PhotoImportSource>> FindAllSourcesAsync()Public Static Function FindAllSourcesAsync() As IAsyncOperation( Of IReadOnlyListPhotoImportSource )// You can use this method in JavaScript.
Returns
IAsyncOperation<IVectorView<PhotoImportSource>>
IAsyncOperation<IReadOnlyList<PhotoImportSource>>
IAsyncOperation<IReadOnlyList<PhotoImportSource>>
IAsyncOperation<IReadOnlyList<PhotoImportSource>>
An asynchronous operation that returns a list of available sources on successful completion.
GetPendingOperations() GetPendingOperations() GetPendingOperations() GetPendingOperations()
Gets the list of all pending photo import operations.
public : static IVectorView<PhotoImportOperation> GetPendingOperations()public static IReadOnlyList<PhotoImportOperation> GetPendingOperations()Public Static Function GetPendingOperations() As IReadOnlyList( Of PhotoImportOperation )// You can use this method in JavaScript.
Returns
IVectorView<PhotoImportOperation>
IReadOnlyList<PhotoImportOperation>
IReadOnlyList<PhotoImportOperation>
IReadOnlyList<PhotoImportOperation>
The list of all pending photo operations.
IsSupportedAsync() IsSupportedAsync() IsSupportedAsync() IsSupportedAsync()
Gets a value indicating if photo import is supported on the current device.
public : static IAsyncOperation<PlatForm::Boolean> IsSupportedAsync()public static IAsyncOperation<bool> IsSupportedAsync()Public Static Function IsSupportedAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Returns
IAsyncOperation<PlatForm::Boolean>
IAsyncOperation<bool>
IAsyncOperation<bool>
IAsyncOperation<bool>
An asynchronous operation that returns true if photo import is supported. Otherwise, returns false.