2

I would like to know where the -(void)unlock (or whatever is called) used when we "slide to unlock" on the LockScreen is.

Has anyone an idea ?

creker
  • 9,400
  • 1
  • 30
  • 47
faku
  • 411
  • 4
  • 19
  • What are you trying to achieve? – Wain Feb 19 '14 at 10:30
  • I recently released a tweak on Cydia : WelcomeMessage, and there are some issues with people who have passcode enabled. I would like to put my welcoming message after the user types his passcode, and then add a little additional time, in that way the message will be displayed a bit longer than now. – faku Feb 19 '14 at 10:32

2 Answers2

3

Try these

iOS 4 - 5

SBAwayController -(void)_finishedUnlockAttemptWithStatus:(char)

Argument will be non zero (I don't quite sure it will always be 1 when device is unlocked) when device is about to be unlocked.

iOS 6

SBAwayController -(void)_finishUnlockWithSound:(char) unlockSource:(int) isAutoUnlock:(char)

iOS 7

SBLockScreenViewController -(void)finishUIUnlockFromSource:(int)
creker
  • 9,400
  • 1
  • 30
  • 47
0

You can use by calling the method GSEventLockDevice (); from your application, and it can be found in GraphicsServices.framework.

From here you can get more idea : how to lock Iphone by programmatically

Community
  • 1
  • 1
Divya Bhaloidiya
  • 5,018
  • 2
  • 25
  • 45
  • Thanks for your answer Divya but that is not what I'm actually looking for. I already saw the post you linked but it doesn't match with my request. I need the (void) called when the user unlocks the device from LockScreen to do ` %orig;` – faku Feb 19 '14 at 10:39