GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTSVehicleState
enum GMTSVehicleState : NSUInteger {}
Enum that defines all vehicle states.
-
Declaration
Objective-C
GMTSVehicleStateUnknown
-
Declaration
Objective-C
GMTSVehicleStateOffline
-
Declaration
Objective-C
GMTSVehicleStateOnline
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\u003eThis page defines the \u003ccode\u003eGMTSVehicleState\u003c/code\u003e enum, which is used to represent the different states of a vehicle.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTSVehicleStateUnknown\u003c/code\u003e is a state represented by the value 0 and denotes an unknown vehicle state.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTSVehicleStateOffline\u003c/code\u003e is a state represented by the value 1, indicating that the vehicle is offline.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMTSVehicleStateOnline\u003c/code\u003e is a state represented by the value 2 and indicates that the vehicle is online.\u003c/p\u003e\n"]]],["The `GMTSVehicleState` enum defines the possible states of a vehicle. These states, represented as unsigned integers, include `unknown` (value 0), indicating an undefined state. `offline` (value 1) means the vehicle is not connected or available. `online` (value 2) signifies that the vehicle is active and accessible. Each state is represented in both Swift (case) and Objective-C (value) programming languages.\n"],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTSVehicleState\n================\n\n enum GMTSVehicleState : NSUInteger {}\n\nEnum that defines all vehicle states.\n- `\n ``\n ``\n `\n\n ### [GMTSVehicleStateUnknown](#/c:@E@GMTSVehicleState@GMTSVehicleStateUnknown)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case unknown = 0\n\n Objective-C \n\n GMTSVehicleStateUnknown\n\n- `\n ``\n ``\n `\n\n ### [GMTSVehicleStateOffline](#/c:@E@GMTSVehicleState@GMTSVehicleStateOffline)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case offline = 1\n\n Objective-C \n\n GMTSVehicleStateOffline\n\n- `\n ``\n ``\n `\n\n ### [GMTSVehicleStateOnline](#/c:@E@GMTSVehicleState@GMTSVehicleStateOnline)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case online = 2\n\n Objective-C \n\n GMTSVehicleStateOnline"]]