summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSlider.h
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLSlider.h')
-rw-r--r--SmartDeviceLink/SDLSlider.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/SmartDeviceLink/SDLSlider.h b/SmartDeviceLink/SDLSlider.h
index fdf143d2b..31a312bd7 100644
--- a/SmartDeviceLink/SDLSlider.h
+++ b/SmartDeviceLink/SDLSlider.h
@@ -11,34 +11,37 @@
*
* Since SmartDeviceLink 2.0
*/
+
+NS_ASSUME_NONNULL_BEGIN
+
@interface SDLSlider : SDLRPCRequest
- (instancetype)initWithNumTicks:(UInt8)numTicks position:(UInt8)position;
-- (instancetype)initWithNumTicks:(UInt8)numTicks position:(UInt8)position sliderHeader:(NSString *)sliderHeader sliderFooter:(NSString *)sliderFooter timeout:(UInt16)timeout;
+- (instancetype)initWithNumTicks:(UInt8)numTicks position:(UInt8)position sliderHeader:(NSString *)sliderHeader sliderFooter:(nullable NSString *)sliderFooter timeout:(UInt16)timeout;
-- (instancetype)initWithNumTicks:(UInt8)numTicks position:(UInt8)position sliderHeader:(NSString *)sliderHeader sliderFooters:(NSArray<NSString *> *)sliderFooters timeout:(UInt16)timeout;
+- (instancetype)initWithNumTicks:(UInt8)numTicks position:(UInt8)position sliderHeader:(NSString *)sliderHeader sliderFooters:(nullable NSArray<NSString *> *)sliderFooters timeout:(UInt16)timeout;
/**
* @abstract Represents a number of selectable items on a horizontal axis
*
* Required, Integer, 2 - 26
*/
-@property (strong) NSNumber<SDLInt> *numTicks;
+@property (strong, nonatomic) NSNumber<SDLInt> *numTicks;
/**
* @abstract An Initial position of slider control
*
* Required, Integer, 1 - 26
*/
-@property (strong) NSNumber<SDLInt> *position;
+@property (strong, nonatomic) NSNumber<SDLInt> *position;
/**
* @abstract A text header to display
*
* Rquired, Max length 500 chars
*/
-@property (strong) NSString *sliderHeader;
+@property (strong, nonatomic) NSString *sliderHeader;
/**
* @abstract A text footer to display
@@ -53,7 +56,7 @@
*
* Optional, Array of Strings, Array length 1 - 26, Max string length 500 chars
*/
-@property (strong) NSMutableArray<NSString *> *sliderFooter;
+@property (strong, nonatomic, nullable) NSMutableArray<NSString *> *sliderFooter;
/**
* @abstract An App defined timeout
@@ -64,6 +67,8 @@
*
* Optional, Integer, 1000 - 65535
*/
-@property (strong) NSNumber<SDLInt> *timeout;
+@property (strong, nonatomic, nullable) NSNumber<SDLInt> *timeout;
@end
+
+NS_ASSUME_NONNULL_END