summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnLockScreenStatus.h
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-05-25 08:44:23 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-05-25 08:44:23 -0400
commitfb8e9903a323acaf5fc78819bb3c203567542ab2 (patch)
treee40665103ac7db492e0a40e34cd92f3390defa55 /SmartDeviceLink/SDLOnLockScreenStatus.h
parentf7540a02262832e34c67b0953dd8a1804a046fea (diff)
downloadsdl_ios-fb8e9903a323acaf5fc78819bb3c203567542ab2.tar.gz
Shift files into root directory
Diffstat (limited to 'SmartDeviceLink/SDLOnLockScreenStatus.h')
-rw-r--r--SmartDeviceLink/SDLOnLockScreenStatus.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLOnLockScreenStatus.h b/SmartDeviceLink/SDLOnLockScreenStatus.h
new file mode 100644
index 000000000..3a4a31452
--- /dev/null
+++ b/SmartDeviceLink/SDLOnLockScreenStatus.h
@@ -0,0 +1,47 @@
+//
+// SDLOnLockScreenStatus.h
+// SmartDeviceLink
+//
+
+#import "SDLRPCNotification.h"
+
+@class SDLHMILevel;
+@class SDLLockScreenStatus;
+
+
+/**
+ * To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion.
+ *
+ * This lockscreen must perform the following:
+ * Limit all application control usability from the mobile device with a full-screen static image overlay or separate view.
+ * For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required.
+ * The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application.
+ */
+@interface SDLOnLockScreenStatus : SDLRPCNotification
+
+- (instancetype)init;
+- (instancetype)initWithDictionary:(NSMutableDictionary *)dict;
+
+/**
+ * <p>Get the current driver distraction status(i.e. whether driver distraction rules are in effect, or not)</p>
+ * @return String
+ */
+@property (strong) NSNumber *driverDistractionStatus;
+/**
+ * <p>Get user selection status for the application (has the app been selected via hmi or voice command)</p>
+ * @return Boolean the current user selection status
+ */
+
+@property (strong) NSNumber *userSelected;
+/**
+ * <p>Get the {@linkplain LockScreenStatus} enumeration, indicating if the lockscreen should be required, optional or off </p>
+ * @return {@linkplain LockScreenStatus}
+ */
+@property (strong) SDLLockScreenStatus *lockScreenStatus;
+/**
+ * <p>Get HMILevel in effect for the application</p>
+ * @return {@linkplain HMILevel} the current HMI Level in effect for the application
+ */
+@property (strong) SDLHMILevel *hmiLevel;
+
+@end