summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauricio <mjuare44@ford.com>2019-08-26 17:34:41 +0200
committerMauricio <mjuare44@ford.com>2019-08-26 17:34:41 +0200
commitdb08a0924c8be356e60f4b594922518e2c72d0e1 (patch)
tree19f6c81030b4471e5570689c838b58c81bf5f48d
parent89062f4c3ad2b7bf5fdecc2653fd0eae5ae2a835 (diff)
downloadsdl_ios-db08a0924c8be356e60f4b594922518e2c72d0e1.tar.gz
update documentation
-rw-r--r--SmartDeviceLink/SDLCreateWindow.h52
-rw-r--r--SmartDeviceLink/SDLWindowTypeCapabilities.h1
2 files changed, 12 insertions, 41 deletions
diff --git a/SmartDeviceLink/SDLCreateWindow.h b/SmartDeviceLink/SDLCreateWindow.h
index 8f6ad966b..998a50638 100644
--- a/SmartDeviceLink/SDLCreateWindow.h
+++ b/SmartDeviceLink/SDLCreateWindow.h
@@ -10,10 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
Create a new window on the display with the specified window type.
-
- Windows of different types like MAIN or WIDGET windows can be created. Every application will have a pre-created MAIN window available. A widget is a small window that the app can create to provide information and soft buttons for quick app control. Widgets can be created depending on the capabilities of the system.
-
- Widgets can be associated with a specific App Service type such as `MEDIA` or `NAVIGATION`. As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. If the media app has created a widget with `MEDIA` type associated, this widget will automatically be activated together with the app.
+ @discussion Windows of different types like MAIN or WIDGET windows can be created. Every application will have a pre-created MAIN window available. A widget is a small window that the app can create to provide information and soft buttons for quick app control. Widgets can be created depending on the capabilities of the system. Widgets can be associated with a specific App Service type such as `MEDIA` or `NAVIGATION`. As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. If the media app has created a widget with `MEDIA` type associated, this widget will automatically be activated together with the app.
@since SDL 6.0
*/
@@ -24,10 +21,8 @@ NS_ASSUME_NONNULL_BEGIN
Constructor with the required parameters
@param windowId The type of the window to be created. Main window or widget.
- @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name.
- Multiple apps can share the same window name except for the default main window.
- Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
- MaxLength 100.
+ @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name. Multiple apps can share the same window name except for the default main window. Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
+MaxLength 100.
@param windowType The type of the window to be created. Main window or widget.
*/
- (instancetype)initWithId:(NSInteger)windowId windowName:(NSString *)windowName windowType:(SDLWindowType)windowType;
@@ -36,18 +31,9 @@ NS_ASSUME_NONNULL_BEGIN
Convinience constructor with nullable optional parameters.
@param windowId The type of the window to be created. Main window or widget.
- @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name.
- Multiple apps can share the same window name except for the default main window.
- Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
- MaxLength 100.
+ @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name. Multiple apps can share the same window name except for the default main window. Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`. MaxLength 100.
@param windowType The type of the window to be created. Main window or widget.
- @param associatedServiceType Allows an app to create a widget related to a specific service type.
- As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be
- directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app.
-
- It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI.
-
- This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
+ @param associatedServiceType Allows an app to create a widget related to a specific service type. As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app. It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI. This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
*/
- (instancetype)initWithId:(UInt32)windowId windowName:(NSString *)windowName windowType:(SDLWindowType)windowType associatedServiceType:(nullable NSString *)associatedServiceType;
@@ -56,33 +42,24 @@ NS_ASSUME_NONNULL_BEGIN
Convinience constructor with all the parameters.
@param windowId The type of the window to be created. Main window or widget.
- @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name.
- Multiple apps can share the same window name except for the default main window.
- Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
+ @param windowName The window name to be used by the HMI. The name of the pre-created default window will match the app name. Multiple apps can share the same window name except for the default main window. Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
MaxLength 100.
@param windowType The type of the window to be created. Main window or widget.
- @param associatedServiceType Allows an app to create a widget related to a specific service type.
- As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be
- directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app.
-
- It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI.
-
- This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
+ @param associatedServiceType Allows an app to create a widget related to a specific service type. As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app. It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI. This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
@param duplicateUpdatesFromWindowID Optional parameter. Specify whether the content sent to an existing window should be duplicated to the created window. If there isn't a window with the ID, the request will be rejected with `INVALID_DATA`.
*/
- (instancetype)initWithId:(NSInteger)windowId windowName:(NSString *)windowName windowType:(SDLWindowType)windowType associatedServiceType:(nullable NSString *)associatedServiceType duplicateUpdatesFromWindowID:(UInt32)duplicateUpdatesFromWindowID;
/**
- A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.
+ A unique ID to identify the window.
+ @discussion The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.
*/
@property (strong, nonatomic) NSNumber<SDLInt> *windowID;
/**
- The window name to be used by the HMI. The name of the pre-created default window will match the app name.
- Multiple apps can share the same window name except for the default main window.
- Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`.
- MaxLength 100.
+ The window name to be used by the HMI.
+ @discussion The name of the pre-created default window will match the app name. Multiple apps can share the same window name except for the default main window. Creating a window with a name which is already in use by the app will result in `DUPLICATE_NAME`. MaxLength 100.
*/
@property (strong, nonatomic) NSString *windowName;
@@ -93,12 +70,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
Allows an app to create a widget related to a specific service type.
- As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be
- directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app.
-
- It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI.
-
- This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
+ @discussion As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio. Actions such as skip or play/pause will be directed to this active media app. In case of widgets, the system can provide a single "media" widget which will act as a placeholder for the active media app. It is only allowed to have one window per service type. This means that a media app can only have a single MEDIA widget. Still the app can create widgets omitting this parameter. Those widgets would be available as app specific widgets that are permanently included in the HMI. This parameter is related to widgets only. The default main window, which is pre-created during app registration, will be created based on the HMI types specified in the app registration request.
*/
@property (strong, nonatomic, nullable) NSString *associatedServiceType;
diff --git a/SmartDeviceLink/SDLWindowTypeCapabilities.h b/SmartDeviceLink/SDLWindowTypeCapabilities.h
index 8f112f800..ba53446de 100644
--- a/SmartDeviceLink/SDLWindowTypeCapabilities.h
+++ b/SmartDeviceLink/SDLWindowTypeCapabilities.h
@@ -18,7 +18,6 @@ NS_ASSUME_NONNULL_BEGIN
Init with required parameters
* @param type Type of windows available, to create.
- *
* @param maximumNumberOfWindows Number of windows available, to create.
*/
- (instancetype)initWithType:(SDLWindowType)type maximumNumberOfWindows:(UInt32)maximumNumberOfWindows;