GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTCMapViewSessionDelegate
@protocol GMTCMapViewSessionDelegate <NSObject>
@}
-
A callback triggers after the session state has been updated.
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTCMapViewSessionDelegate\u003c/code\u003e is a protocol used in Objective-C and Swift.\u003c/p\u003e\n"],["\u003cp\u003eIt includes an optional callback function \u003ccode\u003emapViewSession:didUpdateState:\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function \u003ccode\u003emapViewSession:didUpdateState:\u003c/code\u003e is triggered when the session state is updated.\u003c/p\u003e\n"],["\u003cp\u003eThis callback takes the current session and the new state as parameters.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTCMapViewSessionDelegate\n==========================\n\n @protocol GMTCMapViewSessionDelegate \u003cNSObject\u003e\n\n@}\n- `\n ``\n ``\n `\n\n ### [-mapViewSession:didUpdateState:](#/c:objc(pl)GMTCMapViewSessionDelegate(im)mapViewSession:didUpdateState:)\n\n `\n ` \n A callback triggers after the session state has been updated. \n\n #### Declaration\n\n Swift \n\n optional func mapViewSession(_ session: any ../Protocols/GMTCMapViewSession.html, didUpdate state: ../Enums/GMTCMapViewSessionState.html)\n\n Objective-C \n\n - (void)mapViewSession:(nonnull id\u003c../Protocols/GMTCMapViewSession.html\u003e)session\n didUpdateState:(../Enums/GMTCMapViewSessionState.html)state;"]]