vb.net - Windows 8 Metro/Immersive App - Force Terminate -
i'm working on porting app ios winrt/8 metro/8 immersive/whatever current name is.
on ios, have ability set application not run in background
yes
cause app quit whenever user leaves app.
i figure out how replicate behavior in winrt.
yes, understand abnormal behavior. yes, have thought through. yes, have extremely reason doing this.i'm assuming during userleavingapp
event, phone call application.current.exit()
, can't seem find userleavingapp
event. thought using onsuspending
(handles me.suspending) in app.xaml.vb, doesn't seem called plenty me.
is there .net equivalent of viewwilldisappear
or something?
any ideas? of import security characteristic of app, , i'd hate have such difficulty in entire platform due such little issue.
thanks!
i'm not seeing application.current.exit() working in onsuspending; although mention suspending isn't happening fast plenty (which design). throwing exception there didn't work me either.
there window.visibilitychanged , if issue exit/exception there, shutdown app when app takes over. said, visibilitychanged fire under other circumstances not sure if cover scenarios or rely on them not changing. see here bit more context.
to echo @filip, response popped in, it's highly unlikely you'll pass certification. exit() phone call tantamount exception.
vb.net microsoft-metro windows-runtime terminate
No comments:
Post a Comment