@JvmOverloads fun setLayoutFor(: NIMMSTADevice?, : Long, : Int, : Map<String, String> = mapOf(), : ((Boolean) -> Unit)? = null): Task<NimmstaLayout>?
Sets a layout to be the new active layout on screen for a given period of time. Afterwards will return to previous layout.
forDevice
- device to set the layout on
timeout
- timespan to show the layout in milliseconds.
resourceId
- The layout resource id you want to set.
infoMap
- the map of information that should be replaced in the layout
continuation
- this is invoked after the layout was reset.
Will provide a boolean false if reset was not done due to another layout override in the meantime.
Return
NimmstaLayout that was set and can now be modified. Returns null if device is null.