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 not nil.

    Declaration

    Objective-C

    - (id)loadNextPage;

    Swift

    func loadNextPage() -> Any!

    Return Value

    task.error indicates why the request failed, or nil if the request was successful. task.result is always nil.

  • Loads the next page of items when self.lastEvaluatedKey is not nil.

    Declaration

    Objective-C

    - (void)loadNextPageWithCompletionHandler:
        (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func loadNextPage(completionHandler: ((Error?) -> Void)? = nil)

    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.

  • Resets self.lastEvaluatedKey to nil 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, or nil if the request was successful. task.result is always nil.

  • Resets self.lastEvaluatedKey to nil and reloads the results from the beginning.

    Declaration

    Objective-C

    - (void)reloadWithCompletionHandler:
        (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func reload(completionHandler: ((Error?) -> Void)? = nil)

    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.