GoogleNavigation Framework Reference
GMSNavigationAccessoryView
@protocol GMSNavigationAccessoryView <NSObject>
Protocol defining methods that support custom views specifying accessory UI elements applied to
the primary view. Accessory views must implement this protocol in order to be visible.
-
Declaration
Swift
func heightForAccessoryViewConstrained(to size: CGSize, on mapView: GMSMapView) -> CGFloat
Objective-C
- (CGFloat)heightForAccessoryViewConstrainedToSize:(CGSize)size
onMapView:
(nonnull GMSMapView *)mapView;
Return Value
Desired height of the accessory view constrained to the given size.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["The `GMSNavigationAccessoryView` protocol enables customization of accessory UI elements on the main view."],["Implementing this protocol is necessary for accessory views to be displayed."],["The `heightForAccessoryViewConstrainedToSize:onMapView:` method determines the desired height of the accessory view, confined by a given size, within the map view."]]],[]]