apidocs / com.nimmsta.core.android.device / com.nimmsta.core.shared.device.NIMMSTADevice / setLayout

setLayout

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

Extends NIMMSTADevice with an API, that makes it easy for Android-Users to push layouts out of the android-resources. This requires Android-Specific APIs, so that's why we can only implement it in the Android and not the shared project.

To use setLayout you can do the following: device.setLayout(R.raw.nimmstalayout)

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH