resolveScheduledPickupTime(for:with:)
Resolves the pickup time for the ride.
Declaration
optional func resolveScheduledPickupTime(for intent: INRequestRideIntent, with completion: @escaping @Sendable (INDateComponentsRangeResolutionResult) -> Void)optional func resolveScheduledPickupTime(for intent: INRequestRideIntent) async -> INDateComponentsRangeResolutionResultParameters
- intent:
The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- completion:
The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:
- resolutionResult
The resolution result object containing information about your proposed resolution. For successful resolutions, create a resolution object whose value contains the date and time when you plan to pick up the user. This parameter must not be
nil.
Discussion
Implement this method to verify that you can pick up the user at the requested time. You may specify a pickup time that does not precisely match the requested time. If the pickup time is close to the requested time, return a successful resolution. If the pickup time is earlier than the requested time or significantly later than the requested time, ask the user for confirmation.