Search in sources :

Example 1 with AWSS3StorageListOperation

use of com.amplifyframework.storage.s3.operation.AWSS3StorageListOperation in project amplify-android by aws-amplify.

the class AWSS3StoragePlugin method list.

@NonNull
@Override
public StorageListOperation<?> list(@NonNull String path, @NonNull StorageListOptions options, @NonNull Consumer<StorageListResult> onSuccess, @NonNull Consumer<StorageException> onError) {
    AWSS3StorageListRequest request = new AWSS3StorageListRequest(path, options.getAccessLevel() != null ? options.getAccessLevel() : defaultAccessLevel, options.getTargetIdentityId());
    AWSS3StorageListOperation operation = new AWSS3StorageListOperation(storageService, executorService, cognitoAuthProvider, request, awsS3StoragePluginConfiguration, onSuccess, onError);
    operation.start();
    return operation;
}
Also used : AWSS3StorageListOperation(com.amplifyframework.storage.s3.operation.AWSS3StorageListOperation) AWSS3StorageListRequest(com.amplifyframework.storage.s3.request.AWSS3StorageListRequest) NonNull(androidx.annotation.NonNull)

Aggregations

NonNull (androidx.annotation.NonNull)1 AWSS3StorageListOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageListOperation)1 AWSS3StorageListRequest (com.amplifyframework.storage.s3.request.AWSS3StorageListRequest)1