I simply wants to remove the snapshot in the task switcher, I was able to use the build hint ios.applicationDidEnterBackground. Is there a convenient way to expose applicationWillEnterForeground?
On Tue, Jun 6, 2017 at 2:37 PM, Steve Hannah <[email protected]> wrote: > The stop() method runs on the EDT, and might occur after iOS has "snapped" > a screenshot of your app to use in the task bar. It works this way to > give you a little bit more time inside stop() before iOS will cut your app > off. > > One thing you could try is to register a handler for the > DidEnterBackground event in NSNotificationCenter ( > https://developer.apple.com/documentation/foundation/ > nsnotification.name/1623071-uiapplicationdidenterbackground), in which > you show some sort of native dialog in front of the app screen. > > Steve > > On Tue, Jun 6, 2017 at 11:22 AM, <[email protected]> wrote: > >> Hi >> >> I'm trying to change what's displayed on the current Form when the app >> enters into background so I can hide sensitive information from the snap >> shot. Doing what Apple suggests here https://developer.apple.com/li >> brary/content/qa/qa1838/_index.html >> >> Whatever I do to the currentForm inside stop() seem to take effect after >> it resumes. I tried removeAll components or adding an image but it only >> shows after the app is resumed. Is there a way to manipulate the form like >> in the above article? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CodenameOne Discussions" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> Visit this group at https://groups.google.com/grou >> p/codenameone-discussions. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/codenameone-discussions/5da91d76-cfbd-4733-91b9-7dbe70e2 >> 192c%40googlegroups.com >> <https://groups.google.com/d/msgid/codenameone-discussions/5da91d76-cfbd-4733-91b9-7dbe70e2192c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Steve Hannah > Software Developer > Codename One > http://www.codenameone.com > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/codenameone-discussions/B7ai8vBREIo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > Visit this group at https://groups.google.com/ > group/codenameone-discussions. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/codenameone-discussions/CAGOYrKWpC05TmuWxdZ4AYaJt_ > EDbnjKYfXfGT9oak771tvgoBQ%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWpC05TmuWxdZ4AYaJt_EDbnjKYfXfGT9oak771tvgoBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CADutCxSLsgmGcXuaCZc8DhCNftotyiFH43TY%3DPENX8ptuRddOA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
