init(primaryAction:secondaryButton:travelEstimates:)
Initializes the map panel button configuration with the specified action buttons and travel estimates.
Declaration
init(primaryAction: CPTextButton, secondaryButton: CPButton?, travelEstimates: CPTravelEstimates)Parameters
- primaryAction:
The text button for the primary action.
- secondaryButton:
An optional button you can use to handle a secondary action. The configuration object stores a copy of the provided button in the Secondarybutton property.
- travelEstimates:
The travel estimates to display with the buttons. The configuration object stores a copy of the provided travel estimates.
Return Value
A new map panel button configuration object.