diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2019-09-27 13:30:57 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2019-09-27 13:30:57 -0400 |
commit | efca7b15597b7108020a8ca94beb080f1cd414de (patch) | |
tree | cfaf5eec081ffb75ac5fb3ca518b290bd0c8bbb0 | |
parent | 8b86dccb51c8714e8dfcc50691eaccfe50acf81a (diff) | |
download | sdl_ios-efca7b15597b7108020a8ca94beb080f1cd414de.tar.gz |
Add appServices parameter to HMICapabilities struct
-rw-r--r-- | SmartDeviceLink/SDLHMICapabilities.h | 11 | ||||
-rw-r--r-- | SmartDeviceLink/SDLHMICapabilities.m | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLHMICapabilities.h b/SmartDeviceLink/SDLHMICapabilities.h index 14b278bda..96c6e6259 100644 --- a/SmartDeviceLink/SDLHMICapabilities.h +++ b/SmartDeviceLink/SDLHMICapabilities.h @@ -49,6 +49,17 @@ NS_ASSUME_NONNULL_BEGIN **/ @property (nullable, copy, nonatomic) NSNumber<SDLBool> *remoteControl; +/** + Availability of app services. True: Available, False: Not Available + + App services is supported since SDL 5.1. If your connection is 5.1+, you can assume that app services is available even though between v5.1 and v6.0 this parameter is `nil`. + + Boolean value. Optional. + + Since SDL 6.0 +**/ +@property (nullable, copy, nonatomic) NSNumber<SDLBool> *appServices; + @end NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/SDLHMICapabilities.m b/SmartDeviceLink/SDLHMICapabilities.m index 5c0815bc4..4955c927f 100644 --- a/SmartDeviceLink/SDLHMICapabilities.m +++ b/SmartDeviceLink/SDLHMICapabilities.m @@ -43,6 +43,14 @@ NS_ASSUME_NONNULL_BEGIN return [self.store sdl_objectForName:SDLRPCParameterNameRemoteControl ofClass:NSNumber.class error:nil]; } +- (void)setAppServices:(nullable NSNumber<SDLBool> *)appServices { + [self.store sdl_setObject:appServices forName:SDLRPCParameterNameAppServices]; +} + +- (nullable NSNumber<SDLBool> *)appServices { + return [self.store sdl_objectForName:SDLRPCParameterNameAppServices ofClass:NSNumber.class error:nil]; +} + @end NS_ASSUME_NONNULL_END |