TTPlaceByIdDelegate
@protocol TTPlaceByIdDelegate <NSObject>
TTPlaceByIdDelegate
-
Method responsible to handle placebyid response when placebyid returns response. Within this callback user will obtain Response populated with Results.
Declaration
Objective-C
- (void)placebyid:(TTPlaceById *_Nonnull)placebyid completedWithResponse:(TTPlaceByIdResponse *_Nonnull)response;
Swift
optional func placebyid(_ placebyid: TTPlaceById, completedWith response: TTPlaceByIdResponse)
Parameters
placebyid
Object type TTPlaceById.
response
Object type TTPlaceByIdResponse.
-
Method responsible to handle TTPlaceById response when TTPlaceById returns error. Within this callback user will obtain Throwable fail reason
Declaration
Objective-C
- (void)placebyid:(TTPlaceById *_Nonnull)placebyid failedWithError:(TTResponseError *_Nonnull)error;
Swift
optional func placebyid(_ placebyid: TTPlaceById, failedWithError error: TTResponseError)
Parameters
placebyid
Object type TTPlaceById.
error
Object type TTResponseError.