AWSDynamoDBPaginatedOutput
Objective-C
@interface AWSDynamoDBPaginatedOutput : NSObject
Swift
class AWSDynamoDBPaginatedOutput : NSObject
The paginated output object.
-
The array of items.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<__kindof AWSDynamoDBObjectModel<AWSDynamoDBModeling> *> *_Nonnull items;
Swift
var items: [AWSDynamoDBObjectModel & AWSDynamoDBModeling] { get }
-
The last evaluated key.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> *lastEvaluatedKey;
Swift
var lastEvaluatedKey: [String : AWSDynamoDBAttributeValue]? { get }
-
Loads the next page of items when
self.lastEvaluatedKey
is notnil
.Declaration
Objective-C
- (id)loadNextPage;
Swift
func loadNextPage() -> Any!
Return Value
task.error
indicates why the request failed, ornil
if the request was successful.task.result
is alwaysnil
. -
Loads the next page of items when
self.lastEvaluatedKey
is notnil
.Declaration
Objective-C
- (void)loadNextPageWithCompletionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;
Swift
func loadNextPage() async throws
Parameters
completionHandler
The completion handler to call when the load request is complete.
error
: An error object that indicates why the request failed, ornil
if the request was successful. -
Resets
self.lastEvaluatedKey
tonil
and reloads the results from the beginning.Declaration
Objective-C
- (id)reload;
Swift
func reload() -> Any!
Return Value
task.error
indicates why the request failed, ornil
if the request was successful.task.result
is alwaysnil
. -
Resets
self.lastEvaluatedKey
tonil
and reloads the results from the beginning.Declaration
Objective-C
- (void)reloadWithCompletionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;
Swift
func reload() async throws
Parameters
completionHandler
The completion handler to call when the load request is complete. error
: An error object that indicates why the request failed, or
nil` if the request was successful.