GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDDriverAPI
@interface GMTDDriverAPI : NSObject <NSCopying>
An abstract superclass for the Driver SDK API classes.
-
Returns the version for this release of the Google On Demand Rides and Deliveries Driver SDK for
iOS. For example, “0.4.4”. The version is in the SDK’s resource bundle.
Declaration
Swift
class func sdkVersion() -> String
Objective-C
+ (nonnull NSString *)SDKVersion;
-
Returns the long formatted version string. It includes the version
string and bundle version in format “ ()”.
For example, “0.4.4 (234.2)”.
Declaration
Swift
class func sdkLongVersion() -> String
Objective-C
+ (nonnull NSString *)SDKLongVersion;
-
Enables reporting of abnormal SDK terminations such as when the app crashes while the SDK is
still running. This allows Google to improve SDK stability when applicable. The default is YES
and value must be updated before the -initWithDriverContext
is called.
This property must be set from the main thread.
Declaration
Swift
class func setAbnormalTerminationReportingEnabled(_ abnormalTerminationReportingEnabled: Bool)
Objective-C
+ (void)setAbnormalTerminationReportingEnabled:
(BOOL)abnormalTerminationReportingEnabled;
-
This abstract superclass cannot be directly instantiated.
Declaration
Objective-C
- (null_unspecified instancetype)init;
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-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003eThe GMTDDriverAPI is an abstract superclass for the Driver SDK API classes and cannot be directly instantiated.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSDKVersion\u003c/code\u003e provides the release version of the Google On Demand Rides and Deliveries Driver SDK for iOS, such as "0.4.4".\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSDKLongVersion\u003c/code\u003e returns a more detailed version string, including both the version and bundle version.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetAbnormalTerminationReportingEnabled\u003c/code\u003e allows for reporting of abnormal SDK terminations, such as app crashes, and must be set before \u003ccode\u003e-initWithDriverContext\u003c/code\u003e is called, from the main thread.\u003c/p\u003e\n"]]],[],null,["GMTDDriverAPI \n\n @interface GMTDDriverAPI : NSObject \u003cNSCopying\u003e\n\nAn abstract superclass for the Driver SDK API classes.\n- `\n ``\n ``\n `\n\n [+SDKVersion](#/c:objc(cs)GMTDDriverAPI(cm)SDKVersion)`\n ` \n Returns the version for this release of the Google On Demand Rides and Deliveries Driver SDK for\n iOS. For example, \"0.4.4\". The version is in the SDK's resource bundle. \n\n Declaration \n Swift \n\n class func sdkVersion() -\u003e String\n\n Objective-C \n\n + (nonnull NSString *)SDKVersion;\n\n- `\n ``\n ``\n `\n\n [+SDKLongVersion](#/c:objc(cs)GMTDDriverAPI(cm)SDKLongVersion)`\n ` \n Returns the long formatted version string. It includes the version\n string and bundle version in format \" ()\". For example, \"0.4.4 (234.2)\". \n\n Declaration \n Swift \n\n class func sdkLongVersion() -\u003e String\n\n Objective-C \n\n + (nonnull NSString *)SDKLongVersion;\n\n- `\n ``\n ``\n `\n\n [+setAbnormalTerminationReportingEnabled:](#/c:objc(cs)GMTDDriverAPI(cm)setAbnormalTerminationReportingEnabled:)`\n ` \n Enables reporting of abnormal SDK terminations such as when the app crashes while the SDK is\n still running. This allows Google to improve SDK stability when applicable. The default is `YES`\n and value must be updated before the `-initWithDriverContext` is called.\n\n This property must be set from the main thread. \n\n Declaration \n Swift \n\n class func setAbnormalTerminationReportingEnabled(_ abnormalTerminationReportingEnabled: Bool)\n\n Objective-C \n\n + (void)setAbnormalTerminationReportingEnabled:\n (BOOL)abnormalTerminationReportingEnabled;\n\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMTDDriverAPI(im)init)`\n ` \n Unavailable \n This abstract superclass cannot be directly instantiated. \n\n Declaration \n Objective-C \n\n - (null_unspecified instancetype)init;"]]