TTPlaceByIdDelegate
Objective-C
@protocol TTPlaceByIdDelegate <NSObject>
Swift
protocol TTPlaceByIdDelegate : NSObjectProtocol
TTPlaceByIdDelegate
-
Method responsible to handle placebyid response when placebyid returns response. Within this callback the user will obtain a 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
placebyidObject type TTPlaceById.
responseObject 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
placebyidObject type TTPlaceById.
errorObject type TTResponseError.
TTPlaceByIdDelegate Protocol Reference