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

setLayout

@JvmOverloads fun setLayout(forDevice: NIMMSTADevice?, resourceId: Int, infoMap: Map<String, String> = mapOf(), clearOldInfo: Boolean = true): Task<NimmstaLayout>?

Sets a layout to be the new active layout on screen.

Parameters

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.