Creating a non-native visible component

Is it possible to create an extension that is a visible component?

Simple answer, no.

1 Like

And is it possible to get around this by creating an invisible component that will create a visible component on the screen at the UI creation stage (before Screen.Initialize, when the screen is to be displayed for the first time)?

There are dynamic component extensions available that can generate most/all existing visible components.

As far as I know, you can only set variables before Screen initialise.

What is it you want to do ?

1 Like

Can't do it right now, but there's a PR that might make it possible.

When the application opens, the screen created in the Designer first appears, and only then does the screen modified by the blocks used in the Block Editor's Screen.Initialize event appear. I'd like to avoid the initial display of content that shouldn't be visible. (For example, I want to display an image against a container that spans the entire screen, but I need to crop the image appropriately, which isn't possible in the Designer. Therefore, I need an extension that will work while the screen defined in the Designer is loading.)

Place all your Screen1 components inside an arrangement (vertical) and set this to not visible.

Don't run anything you don't want to run in Screen1.Initialise

Whenever what you do want to do on startup is done (load the screen, get dimensions, crop image accordingly, display image ?), then make the vertical arrangement visible

You shouldn't need an extension to do this...

I know this method, but it does not solve the problem because first a blank screen is displayed and only then the image, and I wanted to deal with this to avoid the blank screen flashing (if possible).

I do not see this with a compiled app. When I open the app (app closed) I get a splash screen with the app icon, then the image is displayed straight away, no blank screen. Everything is set in the Designer. This on Android 16. (With companion app it just loads directly to the image)

If I want to modify an image and I do it in the block editor under Screen.Initialize, it will flash an unfinished image. And if I hide the image's parent, it will flash a blank screen.