---
title: "Ep. 19 - Using lock code when app is idle"
description: "Episode 19 of Learn RubyMotion, by Neeraj Singh."
canonical_url: "https://www.bigbinary.com/videos/learn-rubymotion/ep-19-using-lock-code-when-app-is-idle"
markdown_url: "https://www.bigbinary.com/videos/learn-rubymotion/ep-19-using-lock-code-when-app-is-idle.md"
---

# Ep. 19 - Using lock code when app is idle

Episode 19 of Learn RubyMotion, by Neeraj Singh.

## Details

- Series: Learn RubyMotion
- Duration: 01:43
- Published: September 29, 2017
- [Watch on YouTube: https://www.youtube.com/watch?v=MMnOBvcxStM](https://www.youtube.com/watch?v=MMnOBvcxStM)

## Notes

- Show lock screen when application comes to foreground from background.
- [commit 1](https://github.com/bigbinary/lrm/commit/941d7b424ba79f046066f46109f97ee3af1b63df)
- [commit 2](https://github.com/bigbinary/lrm/commit/62e6631270d10d17789cc94c6c450094fe1218a8)
- [commit 3](https://github.com/bigbinary/lrm/commit/6b877e2964005c478a357cab8a038c41f54bcc26)
- [commit 4](https://github.com/bigbinary/lrm/commit/da7fc546aa4a348347beec99b4c73a06464c88ad)
- [sendEvent in UiWindow](https://developer.apple.com/library/ios/documentation/uikit/reference/UIWindow_Class/UIWindowClassReference/UIWindowClassReference.html#//apple_ref/occ/instm/UIWindow/sendEvent:)
- [Source code](https://github.com/bigbinary/lrm)
- git clone https://github.com/bigbinary/lrm.git cd episode-19 bundle exec rake

## Links

- [Human page](https://www.bigbinary.com/videos/learn-rubymotion/ep-19-using-lock-code-when-app-is-idle)
