java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCRequest
public static final java.lang.String KEY_WINDOW_ID
public static final java.lang.String KEY_WINDOW_NAME
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_ASSOCIATED_SERVICE_TYPE
public static final java.lang.String KEY_DUPLICATE_UPDATES_FROM_WINDOW_ID
Constructs a new CreateWindow object
public CreateWindow()
Constructs a new CreateWindow object indicated by the Hashtable parameter
public CreateWindow(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new CreateWindow object
public CreateWindow(Integer windowID,String windowName,WindowType type)
Sets the windowID. It's 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`.
public com.smartdevicelink.proxy.rpc.CreateWindow setWindowID(Integer windowID)
Gets the windowID.
public java.lang.Integer getWindowID()
Sets a 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`.
public com.smartdevicelink.proxy.rpc.CreateWindow setWindowName(String windowName)
Gets a window name to be used by the HMI.
public java.lang.String getWindowName()
Sets the type of the window to be created. Main window or widget.
public com.smartdevicelink.proxy.rpc.CreateWindow setType(WindowType type)
Gets a WindowType value
public com.smartdevicelink.proxy.rpc.enums.WindowType getType()
Sets the associatedServiceType. It 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.
public com.smartdevicelink.proxy.rpc.CreateWindow setAssociatedServiceType(String associatedServiceType)
Gets the associatedServiceType.
public java.lang.String getAssociatedServiceType()
Sets the duplicateUpdatesFromWindowID. Its a 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`.
public com.smartdevicelink.proxy.rpc.CreateWindow setDuplicateUpdatesFromWindowID(Integer duplicateUpdatesFromWindowID)
Gets the duplicateUpdatesFromWindowID.
public java.lang.Integer getDuplicateUpdatesFromWindowID()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCRequest | getCorrelationID, setCorrelationID, setOnRPCResponseListener, getOnRPCResponseListener |
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |