summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2020-10-20 10:56:04 -0400
committerFrank Elias <francois.elias@livio.io>2020-10-20 10:56:04 -0400
commitd16e40ebaf8e8e91144dc41d8eb9e11696157923 (patch)
tree57e2f2cb3025ed8c215588a9c7da299b81fd723b
parente65236b004893227270cef02c09278c1f42f93af (diff)
downloadsdl_ios-d16e40ebaf8e8e91144dc41d8eb9e11696157923.tar.gz
Add nullable attribute
Add nullable attribute to lockScreenDismissalEnabled and lockScreenDismissalWarning
-rw-r--r--SmartDeviceLink/public/SDLOnDriverDistraction.h4
-rw-r--r--SmartDeviceLink/public/SDLOnDriverDistraction.m8
2 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLink/public/SDLOnDriverDistraction.h b/SmartDeviceLink/public/SDLOnDriverDistraction.h
index f7df06bd8..e08efc583 100644
--- a/SmartDeviceLink/public/SDLOnDriverDistraction.h
+++ b/SmartDeviceLink/public/SDLOnDriverDistraction.h
@@ -33,14 +33,14 @@ NS_ASSUME_NONNULL_BEGIN
Optional, Boolean
*/
-@property (strong, nonatomic) NSNumber<SDLBool> *lockScreenDismissalEnabled;
+@property (strong, nonatomic, nullable) NSNumber<SDLBool> *lockScreenDismissalEnabled;
/**
Warning message to be displayed on the lock screen when dismissal is enabled. This warning should be used to ensure that the user is not the driver of the vehicle, ex. `Swipe up to dismiss, acknowledging that you are not the driver.`. This parameter must be present if "lockScreenDismissalEnabled" is set to true.
Optional, String
*/
-@property (strong, nonatomic) NSString *lockScreenDismissalWarning;
+@property (strong, nonatomic, nullable) NSString *lockScreenDismissalWarning;
@end
diff --git a/SmartDeviceLink/public/SDLOnDriverDistraction.m b/SmartDeviceLink/public/SDLOnDriverDistraction.m
index 40fb3afa2..0ac162913 100644
--- a/SmartDeviceLink/public/SDLOnDriverDistraction.m
+++ b/SmartDeviceLink/public/SDLOnDriverDistraction.m
@@ -30,20 +30,20 @@ NS_ASSUME_NONNULL_BEGIN
return [self.parameters sdl_enumForName:SDLRPCParameterNameState error:&error];
}
-- (void)setLockScreenDismissalEnabled:(NSNumber<SDLBool> *)lockScreenDismissalEnabled {
+- (void)setLockScreenDismissalEnabled:(NSNumber<SDLBool> *_Nullable)lockScreenDismissalEnabled {
[self.parameters sdl_setObject:lockScreenDismissalEnabled forName:SDLRPCParameterNameLockScreenDismissalEnabled];
}
-- (NSNumber<SDLBool> *)lockScreenDismissalEnabled {
+- (NSNumber<SDLBool> *_Nullable)lockScreenDismissalEnabled {
NSError *error = nil;
return [self.parameters sdl_objectForName:SDLRPCParameterNameLockScreenDismissalEnabled ofClass:NSNumber.class error:&error];
}
-- (void)setLockScreenDismissalWarning:(NSString *)lockScreenDismissalWarning {
+- (void)setLockScreenDismissalWarning:(NSString *_Nullable)lockScreenDismissalWarning {
[self.parameters sdl_setObject:lockScreenDismissalWarning forName:SDLRPCParameterNameLockScreenDismissalWarning];
}
-- (NSString *)lockScreenDismissalWarning {
+- (NSString *_Nullable)lockScreenDismissalWarning {
NSError *error = nil;
return [self.parameters sdl_objectForName:SDLRPCParameterNameLockScreenDismissalWarning ofClass:NSString.class error:&error];
}