TTPoiCategoriesDelegate
Objective-C
@protocol TTPoiCategoriesDelegate <NSObject>
Swift
protocol TTPoiCategoriesDelegate : NSObjectProtocol
@brief POI categories delegate.
-
@brief Method responsible of handling POI categories response, when it gets returned. @discussion Within this callback the user will obtain a response populated with results.
Declaration
Objective-C
- (void)poiCategories:(TTPoiCategories *_Nonnull)poiCategories completedWithResponse:(TTPoiCategoriesResponse *_Nonnull)response;
Swift
optional func poiCategories(_ poiCategories: TTPoiCategories, completedWith response: TTPoiCategoriesResponse)
Parameters
poiCategories
Object of type TTPoiCategories
response
Object of type TTPoiCategoriesResponse
-
@brief Method responsible for handling POI categories response when error occurs. @discussion Within this callback the user will obtain a Throwable fail reason..
Declaration
Objective-C
- (void)poiCategories:(TTPoiCategories *_Nonnull)poiCategories failedWithError:(TTResponseError *_Nonnull)error;
Swift
optional func poiCategories(_ poiCategories: TTPoiCategories, failedWithError error: TTResponseError)
Parameters
poiCategories
Object of type TTPoiCategories
error
Object type TTResponseError.