pythonnative package¶
API reference will be generated here via mkdocstrings.
Key flags and helpers:
pythonnative.utils.IS_ANDROID: platform flag with robust detection for Chaquopy/Android.pythonnative.utils.get_android_context(): returns the current Android Activity/Context when running on Android.pythonnative.utils.set_android_context(ctx): set bypythonnative.Pageon Android; you generally don’t call this directly.pythonnative.utils.get_android_fragment_container(): returns the current Fragment containerViewGroupused for page rendering.pythonnative.utils.set_android_fragment_container(viewGroup): set by the hostPageFragment; you generally don’t call this directly.