Display an alert over the lock screen?
By : yada
Date : March 29 2020, 07:55 AM
it should still fix some issue CFUserNotificationCreate is your friend. Not in the official iPhone SDK? Too bad, I remember that a year ago on the big presentation of the yet-to-come SDK, an Apple evangelist/chief saying that the SDK would include exactly the same API as used internally by Apple... Pfff...
|
How to display lock screen on app start up?
By : user2922705
Date : March 29 2020, 07:55 AM
like below fixes the issue This was a silly question. I wasn't fully understanding delegates. I'm providing the answer for people that happen to stumble upon this. code :
@interface SampleAppAppDelegate : NSObject <UIApplicationDelegate, CPLockControllerDelegate> {
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:viewController.view];
CPLockController *lockController = [[CPLockController alloc]initWithStyle:CPLockControllerTypeAuth];
lockController.passcode = @"1234";
lockController.delegate = self;
lockController.title = @"Passcode is 1234";
lockController.modalPresentationStyle = UIModalPresentationFormSheet;
[viewController presentModalViewController:lockController animated:NO];
[window makeKeyAndVisible];
}
|
iOS display a lock/unlock slider like the lock screen?
By : notrealfiction
Date : March 29 2020, 07:55 AM
|
Showing a view in WindowManager that can come from "out of screen"
By : wpowell
Date : March 29 2020, 07:55 AM
To fix the issue you can do I'm having the following issue - I'm having a view that I'm putting inside the WindowManager and I would like it to come in translate animation from out of the screen and toward the middle of the screen. , I just faced the same issue and the actual flag is: code :
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
final WindowManager.LayoutParams params = new WindowManager.LayoutParams(
300, 400, WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
PixelFormat.TRANSLUCENT);
|
Show UI (Activity/WindowManager) over lock screen & support in Oreo
By : Amir H
Date : March 29 2020, 07:55 AM
To fix this issue My main goal is to show UI (With EditText, so IME support) Over the lock screen (No matter if there's PIN/Code or simple lock screen). , Add this in onCreate() of your Activity: code :
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
}
|