iOS Question [b4xpages] - Clear or recreate all pages

LucasHeer

Active Member
Licensed User
Longtime User
Hello!

Is there any way to destroy or reinitialize every page?

Reinitializing the PageManager and re-creating the pages works, but I think this might cause high memory usage?
B4X:
Dim PagesManager As B4XPagesManager
PagesManager.Initialize(Main.NavControl)
 

LucasHeer

Active Member
Licensed User
Longtime User
Unlikely but still it is a mistake as B4XPages isn't supposed to be reinitialized.
B4XPages are never destroyed.

Why do you want to recreate the pages?

The app has different organizations that show different views and theme colors. You can only log into 1 organization at a time, but they have different colors.
Many of my views are created in B4XPages_Created and the properties are based the current global "theme colors"

I thought of ways around this if B4XPages shouldn't be reinitialized:
1. Delete and recreate views on B4XAppear
2. Change colors of views in B4XAppear
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…