RegisterAppInitFn registers a single setup function that is called before the app starts running. Only one setup function is allowed, so calling this will replace any previously registered setup function.
(fn func() error)
| 53 | // Only one setup function is allowed, so calling this will replace any previously registered |
| 54 | // setup function. |
| 55 | func RegisterAppInitFn(fn func() error) { |
| 56 | engine.GetDefaultClient().RegisterAppInitFn(fn) |
| 57 | } |
| 58 | |
| 59 | // SendAsyncInitiation notifies the frontend that the backend has updated state |
| 60 | // and requires a re-render. Normally the frontend calls the backend in response |
nothing calls this directly
no test coverage detected