@JvmOverloads fun setLayout(: NIMMSTADevice?, : Int, : Map<String, String> = mapOf(), : Boolean = true): Task<NimmstaLayout>?
Sets a layout to be the new active layout on screen.
forDevice
- device to set the layout on
resourceId
- The resource containing the layout you want to set
infoMap
- the map of information that should be replaced in the layout
clearOldInfo
- if true previous infoMap will be discarded, when false the new layout will use existing data.
Return
NimmstaLayout that was set and can now be modified. Returns null if forDevice is null.