The same trick works on Android devices running Android 5.0 and above, you can lock users into a single app using the «screen pinning» feature. (howtogeek.com)
It is compatible with Android devices running on Android 4.3 or later. (suggestphone.com)
Starting today, the app is available globally in the Play Store for device running Android 5.0 Lollipop and above. (9to5google.com)