Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class WindowCapability

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_WINDOW_ID

public static final java.lang.String KEY_WINDOW_ID
Constant Value
"windowID"

KEY_TEXT_FIELDS

public static final java.lang.String KEY_TEXT_FIELDS
Constant Value
"textFields"

KEY_IMAGE_FIELDS

public static final java.lang.String KEY_IMAGE_FIELDS
Constant Value
"imageFields"

KEY_IMAGE_TYPE_SUPPORTED

public static final java.lang.String KEY_IMAGE_TYPE_SUPPORTED
Constant Value
"imageTypeSupported"

KEY_TEMPLATES_AVAILABLE

public static final java.lang.String KEY_TEMPLATES_AVAILABLE
Constant Value
"templatesAvailable"

KEY_NUM_CUSTOM_PRESETS_AVAILABLE

public static final java.lang.String KEY_NUM_CUSTOM_PRESETS_AVAILABLE
Constant Value
"numCustomPresetsAvailable"

KEY_BUTTON_CAPABILITIES

public static final java.lang.String KEY_BUTTON_CAPABILITIES
Constant Value
"buttonCapabilities"

KEY_SOFT_BUTTON_CAPABILITIES

public static final java.lang.String KEY_SOFT_BUTTON_CAPABILITIES
Constant Value
"softButtonCapabilities"

KEY_MENU_LAYOUTS_AVAILABLE

public static final java.lang.String KEY_MENU_LAYOUTS_AVAILABLE
Constant Value
"menuLayoutsAvailable"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

WindowCapability()

public WindowCapability()

WindowCapability( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

public WindowCapability(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Parameters

hash

Methods

setWindowID( Integer windowID )

Sets the windowID. The specified ID of the window. Can be set to a predefined window, or omitted for the main window on the main display.

public void setWindowID(Integer windowID)

Parameters

windowID
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`.

getWindowID()

Gets the windowID.

public java.lang.Integer getWindowID()

getTextFields()

Get an array of TextField structures.

public java.util.List getTextFields()

setTextFields( java.util.List<com.smartdevicelink.proxy.rpc.TextField> textFields )

Set an array of TextField structures. It's set of all fields that support text data. {@code 1<= textFields.size() <= 100}

public void setTextFields(java.util.List<com.smartdevicelink.proxy.rpc.TextField> textFields)

Parameters

textFields
the List of textFields

getImageFields()

Get an array of ImageField structures.

public java.util.List getImageFields()

setImageFields( java.util.List<com.smartdevicelink.proxy.rpc.ImageField> imageFields )

Set an array of ImageField structures. A set of all fields that support images. {@code 1<= ImageFields.size() <= 100}

public void setImageFields(java.util.List<com.smartdevicelink.proxy.rpc.ImageField> imageFields)

Parameters

imageFields
the List of imageFields

getImageTypeSupported()

Get an array of ImageType elements.

public java.util.List getImageTypeSupported()

setImageTypeSupported( java.util.List<com.smartdevicelink.proxy.rpc.enums.ImageType> imageTypeSupported )

Set an array of ImageType elements. {@code 0<= imageTypeSupported.size() <= 1000}

public void setImageTypeSupported(java.util.List<com.smartdevicelink.proxy.rpc.enums.ImageType> imageTypeSupported)

Parameters

imageTypeSupported
the List of ImageType

getTemplatesAvailable()

Get an array of templatesAvailable.

public java.util.List getTemplatesAvailable()

setTemplatesAvailable( java.util.List<java.lang.String> templatesAvailable )

Set an array of templatesAvailable. {@code 0<= templatesAvailable.size() <= 100}

public void setTemplatesAvailable(java.util.List<java.lang.String> templatesAvailable)

Parameters

templatesAvailable
the List of String

getNumCustomPresetsAvailable()

Gets the numCustomPresetsAvailable.

public java.lang.Integer getNumCustomPresetsAvailable()

setNumCustomPresetsAvailable( Integer numCustomPresetsAvailable )

Sets the numCustomPresetsAvailable. The number of on-window custom presets available (if any); otherwise omitted. {@code 1<= numCustomPresetsAvailable.size() <= 100}

public void setNumCustomPresetsAvailable(Integer numCustomPresetsAvailable)

Parameters

numCustomPresetsAvailable

setButtonCapabilities( java.util.List<com.smartdevicelink.proxy.rpc.ButtonCapabilities> buttonCapabilities )

Sets the buttonCapabilities portion of the WindowCapability class. {@code 1<= buttonCapabilities.size() <= 100}

public void setButtonCapabilities(java.util.List<com.smartdevicelink.proxy.rpc.ButtonCapabilities> buttonCapabilities)

Parameters

buttonCapabilities
It refers to number of buttons and the capabilities of each on-window button.

getButtonCapabilities()

Gets the buttonCapabilities portion of the WindowCapability class

public java.util.List getButtonCapabilities()

setSoftButtonCapabilities( java.util.List<com.smartdevicelink.proxy.rpc.SoftButtonCapabilities> softButtonCapabilities )

Sets the softButtonCapabilities portion of the WindowCapability class. {@code 1<= softButtonCapabilities.size() <= 100}

public void setSoftButtonCapabilities(java.util.List<com.smartdevicelink.proxy.rpc.SoftButtonCapabilities> softButtonCapabilities)

Parameters

softButtonCapabilities
It refers to number of soft buttons available on-window and the capabilities for each button.

getSoftButtonCapabilities()

Gets the softButtonCapabilities portion of the WindowCapability class

public java.util.List getSoftButtonCapabilities()

setMenuLayoutsAvailable( java.util.List<com.smartdevicelink.proxy.rpc.enums.MenuLayout> menuLayout )

An array of available menu layouts. If this parameter is not provided, only the `LIST` layout is assumed to be available

public void setMenuLayoutsAvailable(java.util.List<com.smartdevicelink.proxy.rpc.enums.MenuLayout> menuLayout)

Parameters

menuLayout
- An array of MenuLayouts

getMenuLayoutsAvailable()

An array of available menu layouts. If this parameter is not provided, only the `LIST` layout is assumed to be available

public java.util.List getMenuLayoutsAvailable()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section