summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-10-02 10:09:35 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-10-02 10:09:35 -0400
commit883a58baef6bc82b1a94a7b3e98fbae81c08d44b (patch)
tree92aeaf342c46c5930744b7d1c61be7731b11c9b2
parent6394d8774173cdab85bae5935b34dcc8df69396d (diff)
downloadsdl_ios-883a58baef6bc82b1a94a7b3e98fbae81c08d44b.tar.gz
Add keepContextAvailable parameter to SDLAudioControlCapabilities
-rw-r--r--SmartDeviceLink/SDLAudioControlCapabilities.h7
-rw-r--r--SmartDeviceLink/SDLAudioControlCapabilities.m8
-rw-r--r--SmartDeviceLink/SDLNames.h1
-rw-r--r--SmartDeviceLink/SDLNames.m1
4 files changed, 17 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLAudioControlCapabilities.h b/SmartDeviceLink/SDLAudioControlCapabilities.h
index b21317753..54c861c64 100644
--- a/SmartDeviceLink/SDLAudioControlCapabilities.h
+++ b/SmartDeviceLink/SDLAudioControlCapabilities.h
@@ -43,6 +43,13 @@ NS_ASSUME_NONNULL_BEGIN
@property (nullable, strong, nonatomic) NSNumber<SDLBool> *sourceAvailable;
/**
+ Availability of the keepContext parameter.
+
+ Optional, Boolean
+ */
+@property (nullable, strong, nonatomic) NSNumber<SDLBool> *keepContextAvailable;
+
+/**
* @abstract Availability of the control of audio volume.
*
* Optional, Boolean
diff --git a/SmartDeviceLink/SDLAudioControlCapabilities.m b/SmartDeviceLink/SDLAudioControlCapabilities.m
index 32832c627..4ec2d6385 100644
--- a/SmartDeviceLink/SDLAudioControlCapabilities.m
+++ b/SmartDeviceLink/SDLAudioControlCapabilities.m
@@ -49,6 +49,14 @@ NS_ASSUME_NONNULL_BEGIN
return [store sdl_objectForName:SDLNameSourceAvailable];
}
+- (void)setKeepContextAvailable:(nullable NSNumber<SDLBool> *)keepContextAvailable {
+ [store sdl_setObject:keepContextAvailable forName:SDLNameKeepContextAvailable];
+}
+
+- (nullable NSNumber<SDLBool> *)keepContextAvailable {
+ return [store sdl_objectForName:SDLNameKeepContextAvailable];
+}
+
- (void)setVolumeAvailable:(nullable NSNumber<SDLBool> *)volumeAvailable {
[store sdl_setObject:volumeAvailable forName:SDLNameVolumeAvailable];
}
diff --git a/SmartDeviceLink/SDLNames.h b/SmartDeviceLink/SDLNames.h
index 6df9c402e..514899a7c 100644
--- a/SmartDeviceLink/SDLNames.h
+++ b/SmartDeviceLink/SDLNames.h
@@ -275,6 +275,7 @@ extern SDLName const SDLNameIsHighlighted;
extern SDLName const SDLNameIsMediaApplication;
extern SDLName const SDLNameIsSubscribed;
extern SDLName const SDLNameKeepContext;
+extern SDLName const SDLNameKeepContextAvailable;
extern SDLName const SDLNameKeyboardLayout;
extern SDLName const SDLNameKeyboardProperties;
extern SDLName const SDLNameKeypressMode;
diff --git a/SmartDeviceLink/SDLNames.m b/SmartDeviceLink/SDLNames.m
index 58527c3cd..62ad20ecf 100644
--- a/SmartDeviceLink/SDLNames.m
+++ b/SmartDeviceLink/SDLNames.m
@@ -272,6 +272,7 @@ SDLName const SDLNameIsHighlighted = @"isHighlighted";
SDLName const SDLNameIsMediaApplication = @"isMediaApplication";
SDLName const SDLNameIsSubscribed = @"isSubscribed";
SDLName const SDLNameKeepContext = @"keepContext";
+SDLName const SDLNameKeepContextAvailable = @"keepContextAvailable";
SDLName const SDLNameKeyboardLayout = @"keyboardLayout";
SDLName const SDLNameKeyboardProperties = @"keyboardProperties";
SDLName const SDLNameKeypressMode = @"keypressMode";