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;
-
Unavailable
This abstract superclass cannot be directly instantiated.
Declaration
Objective-C
- (null_unspecified instancetype)init;