Activity.View
Returns a view builder for the activity’s view, to be set for each activity class.
protected static View?: (v: Binding) => ViewBuilder;
Notes
- The function is called with a binding that refers to the activity instance, when the view is created.
- The base implementation of this method in the Activity class does nothing. This method must be set for each activity class, typically referring to a function from a dedicated view file.
- The referenced function is called only once for each activity class. Using Hot Module Replacement (HMR), the function is replaced with a new one, and the view is updated accordingly.
Related
class Activity
A class that represents a part of the application that can be activated when the user navigates to it.
