Views

Everything in PythonNative is a view.

Pages

PythonNative Class Android Class iOS Class Implemented
MaterialBottomNavigationView com.google.android.material.bottomnavigation.BottomNavigationView UITabBarController No
MaterialTopNavigationView com.google.android.material.appbar.MaterialToolbar UINavigationController No
Page android.app.Activity UIViewController Yes

Layouts

PythonNative Class Android Class iOS Class Implemented
CollectionView androidx.recyclerview.widget.RecyclerView UICollectionView No
ListView android.widget.ListView UITableView Yes
ScrollView android.widget.ScrollView UIScrollView Yes
StackView android.widget.LinearLayout UIStackView Yes

Views

Lifecycle Events

PythonNative Lifecycle Event Android Activity Lifecycle Event iOS UIViewController Lifecycle Event Implemented
on_create onCreate() viewDidLoad() Yes
on_start onStart() viewWillAppear() Yes
on_resume onResume() viewDidAppear() Yes
on_pause onPause() viewWillDisappear() Yes
on_stop onStop() viewDidDisappear() Yes
on_destroy onDestroy() deinit (no direct equivalent) Yes
on_restart onRestart() N/A (no direct equivalent) Yes
on_save_instance_state onSaveInstanceState() encodeRestorableState(with:) Yes
on_restore_instance_state onRestoreInstanceState() decodeRestorableState(with:) Yes