The Presenter receives the input from users via View, then process the user’s data with the help of Model and passing the results back to the View. It does not contain any logic implemented. View is a component which is directly interacts with user like XML, Activity, fragments. It also defines business rules for data means how the data can be changed and manipulated. The Model represents a set of classes that describes the business logic and data. ![]() This pattern divides an application into three major aspects: Model, View, and Presenter. ![]() It is derived from MVC pattern, wherein the controller is replaced by the presenter. The MVP pattern is similar to the MVC pattern. It normally acts as a mediator between the View and the Model. It processes the user’s data through the Model and passing back the results to View. The Controller is responsible to process incoming requests. Model and View interact with each other using the Observer pattern. In MVC pattern View monitors the model for any state change and displays updated model. ![]() View displays the data that is received from the controller as the outcome. The View represents UI components like XML, HTML etc. It also defines the business rules for data means as how the data can be changed and manipulated. Model represents a collection of classes that describes the business logic (business model and the data model). Model means data that is required to display in the view. MVC design pattern divides an application into three major aspects: Model, View, and Controller.
0 Comments
Leave a Reply. |