Instance Method

initWithSummaryVariants:additionalInformationVariants:selectionSummaryVariants:

Initializes a route choice.

Declaration

- (instancetype)initWithSummaryVariants:(NSArray<NSString *> *)summaryVariants additionalInformationVariants:(NSArray<NSString *> *)additionalInformationVariants selectionSummaryVariants:(NSArray<NSString *> *)selectionSummaryVariants;

Parameters

summaryVariants

An array of summary variants. The system displays the first variant that fits in the available screen space, so arrange the variants from most to least preferred display order. You should localize each variant for display to the user. You must provide at least one variant; for example, Via I-280 South.

additionalInformationVariants

An array of variants providing additional information about the route choice. The system displays the first variant that fits in the available screen space, so arrange the variants from most to least preferred display order. You should localize each variant for display to the user. You must provide at least one variant; for example, Fastest Route or Avoids Tolls.

selectionSummaryVariants

An array of selection summary variants. The system displays the first variant that fits in the available screen space, so arrange the variants from most to least preferred display order. You should localize each variant for display to the user. You must provide at least one variant.

Return Value

A newly initialized route choice.