# GMSPlacePagination

    @interface GMSPlacePagination : NSObject

Pagination object for {@link GMSPlaceSearchResponse}. There could be more than one page of
results in a single search, use {@link fetchNextPageWithCompletion} to fetch the next page of
results.
- `


  ### [hasNextPage](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlacePagination#/c:objc(cs)GMSPlacePagination(py)hasNextPage)


  ` Returns whether there is a next page of results.

  #### Declaration

  Swift

      var hasNextPage: Bool { get }

  Objective-C

      @property (nonatomic, readonly) BOOL hasNextPage;

- `


  ### [pageSize](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlacePagination#/c:objc(cs)GMSPlacePagination(py)pageSize)


  ` The number of results in the next page of results.

  #### Declaration

  Swift

      var pageSize: Int { get set }

  Objective-C

      @property (nonatomic) NSInteger pageSize;

- `


  ### [-fetchNextPageWithCompletion:](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlacePagination#/c:objc(cs)GMSPlacePagination(im)fetchNextPageWithCompletion:)


  ` Fetches the next page of results.

  #### Declaration

  Swift

      func fetchNextPage() async throws -> any https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Protocols/GMSPlaceSearchResponse.html

  Objective-C

      - (void)fetchNextPageWithCompletion:
          (nonnull void (^)(id<https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Protocols/GMSPlaceSearchResponse.html> _Nullable,
                            NSError *_Nullable))completion;

  #### Parameters

  |---|---|
  | ` completion ` | The completion block to be called when the next page of results is fetched. The completion block takes two parameters: - response: The {@link GMSPlaceSearchResponse} object containing the next page of results. - error: The error object if the fetch fails. |

- `


  ### [-init](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlacePagination#/c:objc(cs)GMSPlacePagination(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;