AI-generated Key Takeaways
-
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
-
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.
Declaration
Swift
var screenMetrics: (any GMSNavigationScreenMetrics)? { get set }
Objective-C
@property (nonatomic, nullable) id<GMSNavigationScreenMetrics> screenMetrics;
-
The image size for maneuverImage in
GMSNavigationStepInfo
. Defaults toGMSNavigationManeuverImageSizeSquare96
.Declaration
Swift
var maneuverImageSize: GMSNavigationManeuverImageSize { get set }
Objective-C
@property (nonatomic) GMSNavigationManeuverImageSize maneuverImageSize;
-
Declaration
Swift
init()
Objective-C
- (instancetype)init NS_DESIGNATED_INITIALIZER;