GoogleNavigation Framework Reference

  • GMSNavigationStepInfoImageOptions customizes the images displayed in navigation steps, like maneuver icons.

  • It allows developers to define the screen metrics used for image rendering, defaulting to the main screen.

  • You can specify the size of maneuver images, with GMSNavigationManeuverImageSizeSquare96 being the default.

GMSNavigationStepInfoImageOptions

@interface GMSNavigationStepInfoImageOptions : NSObject
/**
 * The object which provides screen metrics for the screen the image will be displayed on. In most
 * cases, developers can pass the instance of UIScreen for the screen where the image will be
 * displayed. This property defaults to UIScreen.mainScreen.
 */
@property(nonatomic, nullable) id<GMSNavigationScreenMetrics> screenMetrics;

/**
 * The image size for maneuverImage in `GMSNavigationStepInfo`.
 * Defaults to `GMSNavigationManeuverImageSizeSquare96`.
 */
@property(nonatomic) GMSNavigationManeuverImageSize maneuverImageSize;

- (instancetype)init NS_DESIGNATED_INITIALIZER;

@end