In Xamarin forms, the OnResume event handler is on the Application class, which is not a NavigationPage, so you cannot do any navigation in OnResume. When my app resumes, if it has been asleep for more than 30 mins, I want it to go back to its home page, not resume to the page where it went to sleep. I have got the 30 minute trap in the OnResume, but I can't do the navigation. Can anyone suggest a way of doing this?
Xamarin – Navigate to default page from OnResume()
onresumexamarinxamarin.forms
Related Solutions
Found in the compiler string resource table but not in the MSDN Library index. Many of them are surely obsolete, some smell like interesting undocumented features like support for modules and testing. Checked up to CS2000:
CS0018: Operator 'xxx' not yet implemented
CS0240: 'xxx' cannot be both abstract and sealed (now CS0418)
CS0679: Other languages may permit the internal virtual member 'xxx' to be overridden
CS0767: Cannot inherit interface 'xxx' with the specified type parameters because it causes method 'yyy' to contain overloads which differ only on ref and out
CS0846: An expression tree may not contain a call or invocation that uses optional arguments
CS0847: An expression tree may not contain an indexed property
CS0848: Indexed property 'xxx' has non-optional arguments which must be provided
CS0849: Indexed property 'xxx' must have all arguments optional
CS0850: Partial declarations of 'xxx' must have the same type parameter names and variance modifiers in the same order
CS0851: Using 'is' to test compatibility with 'dynamic' is essentially identical to testing compatibility with 'object' and will succeed for all non-null values
CS1114: Member 'yyy' on embedded interop type 'xxx' cannot be evaluated while debugging since it is never referenced in the program. Consider casting the source object to type 'dynamic' first or building with the 'Embed Interop Types' property set to false when debugging
CS1543: Added module 'xxx' has unresolved reference to type 'yyy'
CS1544: Added module 'yyy' references module 'xxx' which was not added
CS1595: Delegate 'xxx' has some invalid arguments
CS1735: Ignoring /win32manifest for module because it only applies to assemblies
CS1736: Cannot convert 'xxx' to delegate because some of the return types in the block are not implicitly convertible to the delegate return type
CS1737: Expected parameter
CS1738: Named argument specifications must appear after all fixed arguments have been
specified. Please use language version 7.2 or greater to allow non-trailing main arguments.
CS1739: Filename given with /appconfig is too long or invalid. Re-purposed in Roslyn (C# v6) to: The best overload for 'M' does not have a parameter named 'x'.
CS1903: Unrecognized value 'xxx' provided for '/test' option
CS1904: 'xxx' is not a valid warning number
Best Answer
by default, in a Forms app, you're storing the
MainPage
which should be aNavigationPage
in this case.So you can use it to get to the
Navigation
object.