Hi Crosswalk team, Can you please guide us with the below ask.
Vishnu From: Neeraj Sahu [mailto:[email protected]] Sent: Tuesday, June 23, 2015 4:04 PM To: [email protected] Cc: 'Vishnu Prakash' Subject: XwalkSettings methods query. Dear CrossWalk Team, Greetings!! May I request you to please help me with the below ask: 1) How can I ignore navigating back of website by pressing Systems back button? 2) I am not able to get the desired functionality (false) passing "false" as arguments to the methods # 1 XwalkSettings .setLoadsImagesAutomatically(boolean) #2 XwalkSettings .setGeolocationEnabled(boolean) Here is my code snippet in order to get the XwalkSettings object : Class xWalkViewInternalClass = Class.forName("org.xwalk.core.internal.XWalkViewInternal"); Constructor<?>[] constructors = xWalkViewInternalClass.getDeclaredConstructors(); Constructor<?> constructor = null; for (int i = 0; i < constructors.length; i++) { constructor = constructors[i]; if (constructor.getGenericParameterTypes().length == 2) { break; } } constructor.setAccessible(true); Object classObj = constructor.newInstance(Settings.getContext(), SurefoxBrowserScreen.getActivity()); Method method = xWalkViewInternalClass.getDeclaredMethod("getSettings"); method.setAccessible(true); Object obj = method.invoke(classObj); return (XWalkSettings) obj; Thanks and Regards Neeraj
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
