GMSPlacePagination
@interface GMSPlacePagination : NSObjectPagination 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.
-
Returns whether there is a next page of results.
Declaration
Swift
var hasNextPage: Bool { get }Objective-C
@property (nonatomic, readonly) BOOL hasNextPage; -
The number of results in the next page of results.
Declaration
Swift
var pageSize: Int { get set }Objective-C
@property (nonatomic) NSInteger pageSize; -
Fetches the next page of results.
Declaration
Swift
func fetchNextPage() async throws -> any GMSPlaceSearchResponseObjective-C
- (void)fetchNextPageWithCompletion: (nonnull void (^)(id<GMSPlaceSearchResponse> _Nullable, NSError *_Nullable))completion;Parameters
completionThe 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.
-
Unavailable
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;