apidocs / com.nimmsta.core.android.device / NIMMSTADeviceExtension / setLayoutFor

setLayoutFor

@JvmOverloads fun setLayoutFor(forDevice: NIMMSTADevice?, timeout: Long, resourceId: Int, infoMap: Map<String, String> = mapOf(), continuation: ((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.

Parameters

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.